123456789101112131415161718192021222324252627282930313233343536373839404142 |
- --[[
- Script Name : SpawnScripts/Nektulos/qstunseenhandbarrel1.lua
- Script Author : Premierio015
- Script Date : 2021.06.19 07:06:48
- Script Purpose :
- :
- --]]
- local ProveYourself = 5256
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 10, "InRange")
- end
- function InRange(NPC, Spawn)
- if GetQuestStep(Spawn, ProveYourself) == 3 then
- AddPrimaryEntityCommand(Spawn, NPC, "Leave the supplies", 3, "Leave the supplies", "", 100)
- SpawnSet(NPC, "show_command_icon", 1)
- SpawnSet(NPC, "display_hand_icon", 1)
- end
- end
- function casted_on(NPC, Spawn, SpellName)
- if SpellName == 'Leave the supplies' then
- if not QuestStepIsComplete(Spawn, ProveYourself, 3) then
- zone = GetZone(Spawn)
- SpawnByLocationID(zone, 100433)
- SetStepComplete(Spawn, ProveYourself, 3)
- SetAccessToEntityCommand(Spawn,NPC,"Leave the supplies", 0)
- SpawnSet(NPC, "show_command_icon", 0)
- SpawnSet(NPC, "display_hand_icon", 0)
- end
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
|