Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local npcid = 600075
- local tokenid = 600182
- local T = {
- [1] = { "Torment 1", 1, --
- {"One-Handed Axe of starry heavens (100 Token)", 0, 400},
- {"Two-Handed Axe of starry heavens (100 Token)", 0, 401},
- {"Bow of starry heavens (100 Token)", 0, 402},
- {"Gun of starry heavens (100 Token)", 0, 403},
- {"One-Handed Sword of starry heavens (100 Token)", 0, 404},
- {"Two-Handed Sword of starry heavens (100 Token)", 0, 405},
- {"Stave of starry heavens (100 Token)", 0, 406},
- {"Wand of starry heavens (100 Token)", 0, 407},
- {"Dagger of starry heavens (100 Token)", 0, 408},
- {"One-Handed Mace of starry heavens (100 Token)", 0, 418},
- {"Two-Handed Mace of starry heavens (100 Token)", 0, 419},
- },
- [2] = { "Torment 2", 2, --
- {"One-Handed Axe of starry heavens (500 Token)", 0, 409},
- {"Two-Handed Axe of starry heavens (500 Token)", 0, 410},
- {"Bow of starry heavens (500 Token)", 0, 411},
- {"Gun of starry heavens (500 Token)", 0, 412},
- {"One-Handed Sword of starry heavens (500 Token)", 0, 413},
- {"Two-Handed Sword of starry heavens (500 Token)", 0, 414},
- {"Stave of starry heavens (500 Token)", 0, 415},
- {"Wand of starry heavens (500 Token)", 0, 416},
- {"Dagger of starry heavens (500 Token)", 0, 417},
- {"One-Handed Mace of starry heavens (500 Token)", 0, 420},
- {"Two-Handed Mace of starry heavens (500 Token)", 0, 421},
- },
- };
- --[[ CODE STUFFS! DO NOT EDIT BELOW ]]--
- --[[ UNLESS YOU KNOW WHAT YOU'RE DOING! ]]--
- function Vendor_Gossip(event, player, unit)
- if (#T <= 100) then
- for i, v in ipairs(T) do
- player:GossipMenuAddItem(0, v[1], 0, i)
- end
- end
- player:GossipSendMenu(1, unit)
- end
- function Vendor_OnSelect(event, player, unit, sender, intid, code)
- if(intid == 0) then
- Vendor_Gossip(event, player, unit)
- elseif(intid <= 100) then
- for i, v in ipairs(T[intid]) do
- if (i > 2) then
- player:GossipMenuAddItem(0, v[1], 0, v[3])
- end
- end
- player:GossipMenuAddItem(0, "Back", 0, 0)
- player:GossipSendMenu(1, unit)
- end
- --1axet1
- if(intid == 400) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600183, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --2axet1
- if(intid == 401) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600184, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --bt1
- if(intid == 402) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600185, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --gt1
- if(intid == 403) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600186, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --1hst1
- if(intid == 404) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600187, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --2hst1
- if(intid == 405) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600188, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --st1
- if(intid == 406) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600189, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --wt1
- if(intid == 407) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600190, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --dt1
- if(intid == 408) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600191, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --1mt1
- if(intid == 418) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600192, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --2mt1
- if(intid == 419) then
- if player:GetItemCount(tokenid) >100 then
- player:RemoveItem(tokenid, 100)
- player:AddItem(600193, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- --1axet2
- if(intid == 409) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600183) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600183, 1)
- player:AddItem(600194, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --2axet2
- if(intid == 410) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600184) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600184, 1)
- player:AddItem(600195, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --bt2
- if(intid == 411) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600185) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600185, 1)
- player:AddItem(600196, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --gt2
- if(intid == 412) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600186) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600186, 1)
- player:AddItem(600197, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --1hst2
- if(intid == 413) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600187) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600187, 1)
- player:AddItem(600198, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --2hst2
- if(intid == 414) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600188) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600188, 1)
- player:AddItem(600199, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --st2
- if(intid == 415) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600189) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600189, 1)
- player:AddItem(600200, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --wt2
- if(intid == 416) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600190) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600190, 1)
- player:AddItem(600201, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --dt2
- if(intid == 417) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600191) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600191, 1)
- player:AddItem(600202, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --1mt2
- if(intid == 420) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600192) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600191, 1)
- player:AddItem(600203, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- --2mt2
- if(intid == 421) then
- if player:GetItemCount(tokenid) >500 then
- if player:GetItemCount(600193) >0 then
- player:RemoveItem(tokenid, 500)
- player:RemoveItem(600193, 1)
- player:AddItem(600204, 1)
- player:SendBroadcastMessage("Hier habt Ihr euer Item!")
- player:GossipComplete()
- else
- player:SendBroadcastMessage("Du hast nicht genug Gutscheine!")
- player:GossipComplete()
- end
- end
- end
- end
- RegisterCreatureGossipEvent(npcid, 1, Vendor_Gossip)
- RegisterCreatureGossipEvent(npcid, 2, Vendor_OnSelect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement