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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-22-2008, 12:00 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default npc finds player and gives an item?

i made a new spell that spawns a pet. not i wish to get the owner of that pet have the npc give the owner a random item then kill off the pet. how would i do that?

i know to kill the pet i make the owner cast reclaim energy.
i know how to pick a random item

what i dont know is how to get the pets owner and then make them call the script parts related to the client.

this is what im working with so far.

Code:
sub EVENT_SPAWN 
{
quest::say("im up.");
$target = $npc->GetOwnerID();
$clientwho = $EntityList->GetClientByID($target);
$clientset->SummonItem(1333);
}
of course this don't work and its pissing me off been working on this for hours.. anyone go a clue on how to do this or a diff way to do it even?

what im trying to do is have a gift time when someone cast the spell on it it summons a invis pet (so he can run a script) gives a random item then despawns.. it dont even have to be a pet actually i would prefer that but i figure its easyer to get the pet owner then the person that caster the spell.
Reply With Quote
 


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:24 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3