Thread: [emulous]poison while in area.

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [emulous]poison while in area. 
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    I am using emulous.
    I have an avatar handler with 4 avatars. skeleton,mage,range and human.
    Each avatar has their own area in the world.

    I am wondering how do I make it if you walk into another avatars area you get poisoned.

    Code:
    Avatarhandler.Skeleton = 1
    Avatarhandler.Mage = 1
    Avatarhandler.Range = 1
    Avatarhandler.Human = 1
    Can some please explain to me or give me a code that will allow me to do that? Any help would be greatly appreciated.

    Other:

    This has nothing to do with what is above. But can someone please give me the sendquests for modern and ancient magics?
    Reply With Quote  
     

  2. #2  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    people come on.. I gotten no help on anything
    Reply With Quote  
     

  3. #3  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Code:
    public boolean otherWorld() {
    if( absX >= coords && absY >= coords && absX <= coords && absY <= coords) {
    return true;
    else
    return false;
    }
    }
    Then in Walking or clicking packet;

    Code:
    if(otherWorld() && !AvatarHandler.human == 1) {
    c.getPA().startTeleport(3232, 3232, "modern");
    }

    I made it teleport instead. Since Emulous does not having poison to start off with.
    Reply With Quote  
     

  4. #4  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    ok thanks for replying and that works instead of poison. But can you add a timer or something. So when they walk in they get a message saying your in the wrong place blah blah blah you will be teleported to blah in 20 seconds. Then 20 seconds pass and they get teleported some where.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Guess I'll give it to you on a silver platern ;P

    Code:
    public boolean otherWorld() {
    if( absX >= coords && absY >= coords && absX <= coords && absY <= coords) {
    return true;
    else
    return false;
    }
    }
    Then in Walking or clicking packet;

    Code:
    if(otherWorld() && !AvatarHandler.human == 1) {
    c.sendMessage("You are not in your world. You will be teleported in: "+tehTimer+" seconds");
    tehTimer = 40;
    if(tehTimer == 2) {
    c.getPA().startTeleport(3232, 3232, "modern");
    }
    }
    Declare

    Code:
     public int tehTimer = 0;
    Add to proccess or where ever othre place you see fit.

    Code:
    if(tehTimer > 0) {
    tehTimer -= 1;
    }
    It's set to 40 because usually process is 500ms which means you have to x2 your timer. 20x2 = 40.

    And then when it reaches 1 or 2 seconds left, it simply teleports you.
    Reply With Quote  
     

  6. #6  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    thank you sooo much it was a big help
    Reply With Quote  
     

  7. #7  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    No problem.
    Reply With Quote  
     

  8. #8  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    ok there is a slight problem. It never teleports. It just says the message every time you click to walk.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Swarfega's Avatar
    Join Date
    Sep 2007
    Age
    29
    Posts
    873
    Thanks given
    0
    Thanks received
    1
    Rep Power
    373
    Where did you add

    Code:
    if(tehTimer > 0) {
    tehTimer -= 1;
    }
    Reply With Quote  
     

  10. #10  
    Registered Member
    rmb7's Avatar
    Join Date
    Nov 2008
    Posts
    1,023
    Thanks given
    2
    Thanks received
    12
    Rep Power
    200
    in process in client.java and in walking.java i changed it to c.tehTimer
    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
  •