What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to check if an NPC is present?

Megser

Well-Known Member
Joined
Apr 17, 2010
Messages
1,389
Reaction score
73
For some quests you need to use an item to summon an npc, in my case throw an item on a fire to spawn an NPC. But if he's already there he will instead de-spawn when I use the item on the brazier and will just keep to try turning in the quest when he's not there. Anything that checks if an NPC is present?

like:

PHP:
<If Condition IsNpcAvailable(33889)
     <TurnIn QuestName="Mission Improbable" QuestId="13808" TurnInName="Krokk"
TurnInId="33889" />
</If>

Thanks in advance.
 
For some quests you need to use an item to summon an npc, in my case throw an item on a fire to spawn an NPC. But if he's already there he will instead de-spawn when I use the item on the brazier and will just keep to try turning in the quest when he's not there. Anything that checks if an NPC is present?.

You might try...
HTML:
<If Condition="HasQuestAvailable(npc_id, &quot;quest_type&quot;)">
    <TurnIn ... />
</If>

Dig around on the Condition page--there may be something else you can use, too.

cheers,
chinajade
 
Back
Top