Hello guys, I am trying to create a Summoning Horn for a custom quest, all I want is and script that upon using item, npcid 67699 is spawned to (map: 169, X: -218, Y: 2885, Z: 95.6, orientation: 95.5055) and after 45 seconds if npcid 67699 has not already been killed it despawns.
The spell used with item for gossip script is (33208, Gossip NPC Periodic - Talk)
The Script which I have attempted at and using is:
Code:
function emeralddrakehorn(item, event, player)
if player:IsInCombat() == false then
item:GossipCreateMenu(34832, player, 0)
item:GossipMenuAddItem(5, "Blow this horn if you wish to challenge the Emerald Drake for ownership as a mount!", 1, 0)
item:GossipSendMenu(player)
else
player:SendAreaTriggerMessage("You are currently in Combat!")
end
end
function emeralddrakehorn(item, event, player, id, intid, code)
if(intid == 1) then
item:GossipCreateMenu(3433, player, 0)
item:GossipMenuAddItem(5, "Blow Horn", 200, 0)
item:GossipSendMenu(player)
end
if(intid == 200) then
player:SpawnCreature(67699, -218, 2885, 95.6, 95.5055, 14, 45000)
player:GossipComplete()
end
end
RegisterItemGossipEvent(80077, 1, "emeralddrakehorn")
RegisterItemGossipEvent(80077, 2, "emeralddrakehorn")
The Problems with my script are, I am creating multiple "summoning horns" I just need one working script i can edit to make more of. But with this script I would create a copy using different ids for item and creature however all of the "summoning horns" would spawn the same creature.
also
The menus for the item do not work, when using horn it would instantly spawn npc without the gossip menus, however this is unimportant to me I don't need there to be any gossip menus.
If anyone can help me out your help would be greatly appreciated - +Repx4,
Thanks ~freeride474~