Jump to content
  • 0

get creature data of summoner player from npc


Question

Posted

Hi, first of all sorry for too many questions, I have custom skill which summons npc buffer for player... and what I want is get that player creaturedata in that npc buffer ai for some reasons....

 

i tried c0,c1,c2,c3,c4,master,summoner_id but they are null

Edit: myself.sm.master was solution.

 

Close admin.

4 answers to this question

Recommended Posts

  • 0
Posted

EventHandler CREATED(i0, c0)

{
        c0 = GetCreatureFromID(myself.sm.summoner_id);

}

 

You really should study existing retail AI and scripts, almost all your topics can be answered by having a look there :)

  • 0
Posted (edited)
14 minutes ago, Blitzkrieg said:

EventHandler CREATED(i0, c0)

{
        c0 = GetCreatureFromID(myself.sm.summoner_id);

}

 

You really should study existing retail AI and scripts, almost all your topics can be answered by having a look there 🙂

yes my bad, but I cant find one answer nowhere, how to limit user to summon only one npc and not many same time.

 

buffer was last part for my server after this i will not bodhte nobody here 😄

Edited by girogius
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..