forked from 2009Scape/Server
Made it so the game doesn't spam you when a familiar can't be called and just remains silent.
This commit is contained in:
parent
12c193f6f6
commit
a231a5a0bc
1 changed files with 5 additions and 3 deletions
|
|
@ -536,11 +536,13 @@ public abstract class Familiar extends NPC implements Plugin<Object> {
|
|||
/**
|
||||
* Calls the familiar.
|
||||
*/
|
||||
//int spamTimer = 0;
|
||||
public boolean call() {
|
||||
Location destination = getSpawnLocation();
|
||||
if (destination == null) {
|
||||
owner.getPacketDispatch().sendMessage("Your familiar is too big to fit here. Try calling it again when you are standing");
|
||||
owner.getPacketDispatch().sendMessage("somewhere with more space.");
|
||||
if (destination == null && spamTimer == 0) {
|
||||
//owner.getPacketDispatch().sendMessage("Your familiar is too big to fit here. Try calling it again when you are standing");
|
||||
//owner.getPacketDispatch().sendMessage("somewhere with more space.");
|
||||
//spamTimer = 50;
|
||||
return false;
|
||||
}
|
||||
setInvisible(getZoneMonitor().isRestricted(ZoneRestriction.FOLLOWERS) && !owner.getLocks().isLocked("enable_summoning"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue