Thread: Mage Training Arena

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Mage Training Arena 
    HuntYourRep
    Guest
    [Only registered and activated users can see links. ]
    When I search the cupboard it just teles me back.
    Reply With Quote  
     

  2. #2  
    HuntYourRep
    Guest
    anyone ? >.>
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Mar 2007
    Posts
    960
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    Code:
    if (objectID == OBJID && (objectX == xxxx) && (objectY == yyyy)) {
                            if(System.currentTimeMillis() - lastAction > actionInterval){
                             actionInterval = 10000;
                           lastAction = System.currentTimeMillis();
    			addItem(xxx, x);
                            setAnimation(xxx);
    			}
                          }
    Reply With Quote  
     

  4. #4  
    HuntYourRep
    Guest
    Did you even see the video? when I click the object it teles me back.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Mar 2007
    Posts
    960
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    Oh, show me the code for the objects.
    Reply With Quote  
     

  6. #6  
    HuntYourRep
    Guest
    if (objectID == 10783 && (objectX == 3360) && (objectY == 9632)) {
    if(System.currentTimeMillis() - lastAction > actionInterval){
    actionInterval = 10000;
    lastAction = System.currentTimeMillis();
    addItem(6896, 1);
    }
    }
    Thats the cupboard
    if(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 when you leave
    if(objectID == 10778 || objectID == 10779 || objectID == 10781){
    toX = 3363;
    toY = 9649;
    }
    that's how you get inside the game
    When you click on any object in the room it teles you to the same spot
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Mar 2007
    Posts
    960
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    Add this to the end of your codes
    Code:
     && (objectX == xxxx) && (objectY == yyyy)) {
    So it only works on the objects that are on those coords.
    Reply With Quote  
     

  8. #8  
    HuntYourRep
    Guest
    which ones
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Mar 2007
    Posts
    960
    Thanks given
    64
    Thanks received
    40
    Rep Power
    704
    The ones that teleport you back.
    Reply With Quote  
     

  10. #10  
    HuntYourRep
    Guest
    still teles me to that spot
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •