Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function enchanter(pUnit, event, player)
- pUnit:GossipCreateMenu(300, player, 0)
- pUnit:GossipMenuAddItem(10, "|cFF008000Enchant my items, please.|R", 1, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- function enchanterselect(pUnit, event, player, id, intid, code)
- if (intid == 1) then
- if (player:GetItemCount(2858) ~= nil) then
- if (player:GetItemCount(2858) < 20) then
- pUnit:SendChatMessageToPlayer(15, 0, "You haven't enough \124cffa335ee\124Hitem:2858:0:0:0:0:0:0:0:0\124h[Blood]\124h\124r to feed me.", player)
- else
- pUnit:GossipCreateMenu(301, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Headpiece.|R", 2, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shoulders.|R", 3, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak.|R", 4, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest.|R", 5, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Wrists.|R", 6, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves.|R", 7, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots.|R", 8, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Legs.|R", 9, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon.|R", 10, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- end
- if (intid == 2) then
- pUnit:GossipCreateMenu(302, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+30 Spellpower, +20 critical strike rating|R", 11, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+30 Spellpower, +10 Mp5|R", 12, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+37 stamina, +20 defense rating", 13, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+50 attack power, +20 critical strike rating|R", 14, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+30 stamina, +25 resilience rating|R", 15, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+50 attack power, +20 resilience rating|R", 16, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+29 spell power, +20 resilience rating|R", 17, 0)
- pUnit:GossipMenuAddItem(5, "Back.", 1, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 11) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59970, 0, 0) -- heres your fucking number, means the same.
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 12) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59960, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 13) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59955, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 14) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59954, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 15) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(61271, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 16) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59777, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 17) then
- local pItem = player:GetEquippedItemBySlot(1)
- if pItem ~= nil then
- pItem:AddEnchantment(59778, 0, 0)
- player:RemoveItem(2858, 20)
- pUnit:GossipComplete(player)
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete(player)
- end
- end
- if (intid == 3) then
- pUnit:GossipCreateMenu(302, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+26 intellect, +20 critical strike rating|R", 11, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+26 intellect, +20 spirit|R", 12, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+37 stamina, +20 dodge rating", 13, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+50 attack power, +20 critical strike rating|R", 14, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+30 stamina, +25 resilience rating|R", 15, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+50 attack power, +20 resilience rating|R", 16, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000+29 spell power, +20 resilience rating|R", 17, 0)
- pUnit:GossipMenuAddItem(5, "Back.", 1, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- RegisterUnitGossipEvent(85001, 1, "enchanter")
- RegisterUnitGossipEvent(85001, 2, "enchanterselect")
Advertisement
Add Comment
Please, Sign In to add comment