I don't mind doing source code changes, I just need to find out how to make the that are summoned by the makepet function to zone with you. Preferably until you or the pet dies. (Even stays when you camp out, like mage pets.) I suppose making an item check in players inventory for a 'mercenary' item in EVENT_ENTERZONE may work but I am unsure if $hasitem works in player.pl
I was thinking this may work but I haven't confirmed it:
item 80000 = Merc Pet Coin (LORE, NO DROP, NO RENT) <-Decays when you log out
Quote:
Originally Posted by player.pl
sub EVENT_ENTERZONE {
if($hasitem == "80000" && $ulevel >= 10) { #checks if player is high enough for merc (assuming merc is lvl 10+)
quest::makepet(null, MercPet10, "Merc");
}
}
|
I'm away from home but do you think this would work?