Where are you changing ObjectTimer to 120?
|
|
Hey everyone Im working on a nice little feature for my server which requires and object to spawn on a timer, iv come up with this code to do it but im not sure what file to add it into?
I added it to objectmanager, Client.java, and clickobject.java and i get an error sayingCode:if (c.ObjectTimer = 120) { c.getPA().checkObjectSpawn(2403, 2873, 10201, 1, 10); } c.sendMessage("my message!!"); break;
Cannot find symbol
c.ObjectTimer
^
If you can solve my problem i would highly appreciate it
thanks

Where are you changing ObjectTimer to 120?
Im not changing it any were? Im trying to add that code...

i see? why not just start an event when you need it?
It'd help if you included what your using it for.Code:EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer b) { c.getPA().checkObjectSpawn(2403, 2873, 10201, 1, 10); c.sendMessage("Spawned object"); b.stop } }, 1000);
Im tyring to make a hide and seek system were an object spawns itself and send out a message to through the server saying hide and seek is a go, And i need the object to spawn on a timer to space out the event
Will that code work for making it spawn every 4 hours and sending a message?
| « [PI] Need help adding custome Mini-Game [PI] | [PI] Untradable Items Upon Death [PI] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |