Thread: How to fix Corp Beast SafeSpot?

Results 1 to 6 of 6
  1. #1 How to fix Corp Beast SafeSpot? 
    Registered Member remcowp's Avatar
    Join Date
    Jan 2011
    Posts
    651
    Thanks given
    57
    Thanks received
    37
    Rep Power
    12
    Hello Rune-Server,

    Everyone in my server is abusing this safespot, and im not gonna ban people for it lol.
    So how do i fix this safespot?



    Help would be appreciated verry much.

    Remco
    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Just make a check if people are within x and y they can attack him otherwise not...


    Reply With Quote  
     

  3. #3  
    Registered Member remcowp's Avatar
    Join Date
    Jan 2011
    Posts
    651
    Thanks given
    57
    Thanks received
    37
    Rep Power
    12
    Quote Originally Posted by reader View Post
    Just make a check if people are within x and y they can attack him otherwise not...
    How do i make one ? Could you give me an example?
    Reply With Quote  
     

  4. #4  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Well im on my ipad but i can try. do something like:

    Public boolean corparea() {

    If ( c.absX > x && c.absX< x && c.absY > y && c.absY < y) {
    Return true;
    }
    Return false;
    }

    Then in attacknpc method in npc or npchandler add something like this:

    If (corparea()) {
    Return;
    }


    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Like reader said, you can do something like

    Code:
    Public boolean inCorpZone() {
    return( c.absX > x && c.absX< x && c.absY > y && c.absY < y);
    }
    and then go to CombatAssistant.java and find

    Code:
    				if (armaNpc(i) && !usingCross && !usingBow && !c.usingMagic && !usingCrystalBow() && !usingOtherRangeWeapons) {				
    					resetPlayerAttack();
    					c.sendMessage("You can only use mage or range aramadyl NPCs");
    					return;
    				}
    and add something like

    Code:
    				if (Server.npcHandler.npcs[i].npcType == 8133 && !inCorpZone()) {				
    					resetPlayerAttack();
    					c.sendMessage("Nice Try");
    					return;
    				}
    Or simply remove the gates.
    Reply With Quote  
     

  6. #6  
    Registered Member remcowp's Avatar
    Join Date
    Jan 2011
    Posts
    651
    Thanks given
    57
    Thanks received
    37
    Rep Power
    12
    Thanks guys, have it fixed, well the Corp can still attack you when outside of the cage, i have to look at that later.
    Thanks to everyone=]
    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

Similar Threads

  1. How to fix some basic errors
    By Zachyboo in forum Tutorials
    Replies: 9
    Last Post: 12-17-2007, 10:35 PM
  2. [DYI]How to:Fix 100 Errors.
    By RSSJ in forum Tutorials
    Replies: 15
    Last Post: 12-12-2007, 09:24 PM
  3. Replies: 5
    Last Post: 09-26-2007, 10:26 PM
  4. How To Fix Bans And Ip Bans (Newb Friendly)
    By Crazy Cam10 in forum Tutorials
    Replies: 3
    Last Post: 09-10-2007, 08:54 PM
  5. How to fix your ::npc command :D
    By RSSJ in forum Tutorials
    Replies: 3
    Last Post: 08-08-2007, 06:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •