Graham's Event Manager

Apr 14, 2010
19
0
0
I was using this for my pc

Code:
public void InBoat () {
    EventManager.getSingleton().addEvent (new Event() {
        public void execute(EventContainer c) {
            if(objectID == 14315 && System.currentTimeMillis() - lastAction > actionInterval) {
                sM("You enter the boat, "+PlayerHandler.pcWaitTimer+" till next game starts.");
                toX = 2660;
                toY = 2639;
                actionInterval = 2500;
                lastAction = System.currentTimeMillis();
                PcPanel1();
                if(!inPcBoat()) {
                    c.stop();
                    }
                }
            }
        }, 600);
    };

and when I compile I get these errors

Code:
client.java:11820: cannot find symbol
symbol: variable objectID
                                if(objectID == 14315 && System.currentTimeMillis
() - lastAction > actionInterval) {
                                   ^
1 error
Press any key to continue . . .
 
Either:
Import the class that contains the variable 'objectID'
Make sure the variable is correct. (Capitalization is key)
Declare the variable in the class containing that method.
 
Ok I got it to work without errors but now a few things happen

1. when you clikc to cross the ganplank to get onto the pc boat, your char runs across it and then is teleported onto the boat.

2. the interface showing showing your points and stuff doesnt show up, and I re edited the code so here is the new revision, so need some help on it.


public void InBoat () {
EventManager.getSingleton().addEvent (new Event() {
public void execute(EventContainer c) {
int objectID = inStream.readUnsignedWordBigEndianA();
if(objectID == 14315 && System.currentTimeMillis() - lastAction > actionInterval) {
sM("You enter the boat, "+PlayerHandler.pcWaitTimer+" till next game starts.");
toX = 2660;
toY = 2639;
sendQuest("Points: "+pcPoints+" ", 14442);
actionInterval = 2500;
lastAction = System.currentTimeMillis();
PcPanel1();
if(!inPcBoat()) {
c.stop();
}
}
}
}, 600);
};
 

Users who are viewing this thread (total: 1, members: 0, guests: 1)

Who read this thread (total members: 1)