How do I make an NPC my pet?
I want to put NPC's in some zones that a user can hail them, and make them their pet for that zone as a charmed mob and/or pet. These will be non-aggro NPC's at zoneline with level and stats appropriate for the current zone.
An easy way that I dont want, is to put Dire Charm (actually, Spell ID 2761 Dominating Gaze) onto an item as a clickie to perminately charm an NPC. So Im trying to use quest code. The stuff I've tried already are Code:
quest::selfcast($mobid,2761); |
Here is a way I came up with a while ago and it works for what you want.
Here is how to do it. You need to add a new pet to the pet dbase, just do it in Navcat. Make sure to create the pet as an NPC in your dbase. Then use the following... $client->MakePet(null, DBPetName, "Pet Name"); DBPetName is the pet dbase name for the new pet "Pet Name" is the of the pet the player will get. Code:
sub EVENT_SAY { Kayen GM Stormhaven |
Your a life saver! Thanks! (Will test soon)
|
Update: Users are happy
|
Glad I could help!
Kayen GM Stormhaven |
All times are GMT -4. The time now is 01:02 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.