So when i click the log of gnome agility course it calls everything but it doesnt walk across the log after the task is done it gives the xp but it wont walk
If someone can help me then that would be nice
Server cmd when clicking the object
Code:
[6-4-12 14:21]: [Client-1-Nighel]: serverobjs size 0
[6-4-12 14:21]: [Client-1-Nighel]: atObject: 2474,3435 objectID: 2295
[6-4-12 14:21]: Agility
Objectclick
Code:
if (Agility.agilityObstacle(client, objectID, objectX, objectY)) {
System.out.println("Agility");
return;
}
Code:
case 2295 :
walkAcross(c, 762, 2474, 3435, 2474, 3429, 8 * 1, 6, 2);
if (c.course1 == 0) {
c.course1 = 1;
}
return true;
Code:
public static void walkAcross(final Client c, final int anim, int startX, int startY, int endX, int endY, final int xp, final int time, final int face) {
if(c.isRunning2) {
c.isRunning2 = false;
c.getPA().sendFrame36(504, 1);
c.getPA().sendFrame36(173, 1);
} else {
c.isRunning2 = true;
c.getPA().sendFrame36(504, 0);
c.getPA().sendFrame36(173, 0);
}
setAnimation(c, anim);
int x = endX - startX;
int y = endY - startY;
c.walkTo(x, y);
Server.getTaskScheduler().schedule(new Task(1, false) {
@Override
protected void execute() {
setAnimation(c, anim);
stop();
}
});
Server.getTaskScheduler().schedule(new Task(time, false) {
@Override
protected void execute() {
c.stopPlayerPacket = false;
if (c.course2 == 4) {
completeWildernessCourse(c);
}
c.addSkillXP(xp, Config.AGILITY);
setAnimationBack(c);
stop();
}
});
}