Thread: Please help me

Results 1 to 3 of 3
  1. #1 Please help me 
    Registered Member Analed's Avatar
    Join Date
    Jan 2010
    Posts
    326
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    how can i make a single area to a multi area

    that means if a npc or player is in a single area only 1 can atk but in a multi more can atk

    pls help i need that for godwars place
    Reply With Quote  
     

  2. #2  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    Quote Originally Posted by owner erde View Post
    how can i make a single area to a multi area

    that means if a npc or player is in a single area only 1 can atk but in a multi more can atk

    pls help i need that for godwars place
    Well first off...
    You need to declare a boolean like this

    Code:
    public boolean inmulti() {
    if(absX >= xminimum && absX <= xmaximum && absY >= yminimum && absY <= yminimum || absX >= xminimum && absX <= xmaximum && absY >= yminimum && absY <= yminimum) { // to seperate zones add a || after the y minimum and created another, this void has 2 zones
    return true;
    } else {
    return false;
    }
    }
    then in your attacking npc, and attacking player, and magic on npc and magic on player you need to overide the only be able to attack one.

    so like
    Code:
    if(inmulti() && incombat == true) {
    attack coding here
    } else if(!inmulti() && incombat == true) {
    sendMessage("You are already in combat.");
    other coding here
    }
    and progressivly code it based off the inmulti boolean


    Signature made by Mr. Ervis

    Any questions, MSN me; [email protected]
    Reply With Quote  
     

  3. #3  
    Registered Member Analed's Avatar
    Join Date
    Jan 2010
    Posts
    326
    Thanks given
    6
    Thanks received
    3
    Rep Power
    0
    okokokok


    i want to put my chaos ele here x:3483 and y:9943
    tele there and make please a multi area for me (need a example)
    Reply With Quote  
     


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
  •