You didn't supply any code for anyone to work with.
|
remove
well if you have erasedpkz summon (pretty sure you do) in walking class put something like
if (c.absX >= ### && c.absY >= ### && c.lastsummon > 0) {
c.absX--;
c.sendMessage("You cannot bring a summoning here!");
//return;//if the c.absX-- doesnt work, uncomment the return
}
Do Exactly This, (100% Right)
Go To Player.java
And Declare this Boolean:
Then go to NPC handler, and where you made the method for when you summon a familiarpublic boolean cannotSummon() {
if(absX >= ##### && absX <= ##### && absY >= ##### && absY <= ##### ||
absX >= ##### && absX <= ##### && absY >= ##### && absY <= ##### ||
inDuelArena()) {
return true;
}
return false;
}
Right this:
That should be it If you need anymore help, I'll do it for youif(c.cannotSummon()) {
c.sendMessage("Your npc will spawn when your out of the home area");
}else{
(what would normally happen when you summon (Wont release Mine))
}
what would normally happen when you summon (Wont release Mine))
what do you mean?
bump......
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |