anyone ? >.>
|
|

Code:if (objectID == OBJID && (objectX == xxxx) && (objectY == yyyy)) { if(System.currentTimeMillis() - lastAction > actionInterval){ actionInterval = 10000; lastAction = System.currentTimeMillis(); addItem(xxx, x); setAnimation(xxx); } }
Did you even see the video? when I click the object it teles me back.

Oh, show me the code for the objects.
Thats the cupboardif (objectID == 10783 && (objectX == 3360) && (objectY == 9632)) {
if(System.currentTimeMillis() - lastAction > actionInterval){
actionInterval = 10000;
lastAction = System.currentTimeMillis();
addItem(6896, 1);
}
}
That's when you leaveif(objectID == 10782){
toX = 3363;
toY = 3320;
heightLevel = 0;
deleteItem(6893, getItemSlot(6893), 28);
deleteItem(6894, 28);
deleteItem(6895, 28);
deleteItem(6896, 28);
deleteItem(6897, 28);
}
that's how you get inside the gameif(objectID == 10778 || objectID == 10779 || objectID == 10781){
toX = 3363;
toY = 9649;
}
When you click on any object in the room it teles you to the same spot

Add this to the end of your codes
So it only works on the objects that are on those coords.Code:&& (objectX == xxxx) && (objectY == yyyy)) {

The ones that teleport you back.
| « 317: Buy X | Skeletal Wyvern id's » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |