Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2008, 12:24 PM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Question 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);
quest::castspell($mobid,2761);
$client->UseDiscipline(2761,$mobid);
$client->castspell($mobid,2761);
$mob->SetOwnerID($userid);
$npc->SetOwnerID($userid);
Im running out of ideas. I tried running bots before, but users were using 5 bots per box in all the zones. I'd like to limit which zones, and to 1 pet/bot/npc per user. Figured it could be done in quest code, but its just not working. Any ideas how it can be done? I've check all the QuestObjects in the wiki's and the tutorial, etc. Please help.
Reply With Quote
  #2  
Old 10-30-2008, 02:29 AM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default

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 {

if ($text=~/hail/i) {
quest::say ("I will be your pet"); 
$client->MakePet(null, TestPet, "Light Elemental");
}
}
This summons a pet called "Light Elemental"

Kayen
GM Stormhaven
Reply With Quote
  #3  
Old 10-30-2008, 09:27 AM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Your a life saver! Thanks! (Will test soon)
Reply With Quote
  #4  
Old 10-30-2008, 11:28 AM
thepoetwarrior
Discordant
 
Join Date: Aug 2007
Posts: 307
Default

Update: Users are happy
Reply With Quote
  #5  
Old 10-30-2008, 03:48 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default

Glad I could help!

Kayen
GM Stormhaven
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:55 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3