Thanks stoneharry you're the best
!
---------- Post added at 08:23 AM ---------- Previous post was at 08:18 AM ----------
tbh tho, it doesn't fully work
here's the code
Code:
local itemid = 1335
function Item_Trigger(item, event, player)
Item_menu(item, player)
end
function Item_menu(item, player)
item:GossipCreateMenu(2, player, 0)
item:GossipMenuAddItem(4, "Mount me on a Dragon", 2, 0)
item:GossipMenuAddItem(4, "Mount me on a Wasp", 4, 0)
item:GossipMenuAddItem(4, "Dismount", 3, 0)
item:GossipSendMenu(player)
end
function OnSelect(item, event, player, id, intid, code)
if (intid == 2) then
player:SetFlying()
player:ModifyRunSpeed(21)
player:SetMount(22841)
player:GossipComplete()
end
if (intid == 4) then
player:SetFlying()
player:ModifyRunSpeed(15)
player:SetMount(22641)
player:GossipComplete()
end
if (intid == 3) then
player:SetMovementType(256)
player:ModifyRunSpeed(7.5)
player:SetMount(0)
player:GossipComplete()
end
end
RegisterItemGossipEvent(1335,1,"Item_Trigger")
RegisterItemGossipEvent(1335,2,"OnSelect")