[DiscordArchive] hello where can you download the eluna code generator?
[DiscordArchive] hello where can you download the eluna code generator?
Archived author: avirex94 • Posted: 2021-02-12T01:36:21.634000+00:00
Original source
hello where can you download the eluna code generator?
Archived author: Naruon • Posted: 2021-02-12T03:28:08.843000+00:00
Original source
ok finally nailed it!
Archived author: Naruon • Posted: 2021-02-12T03:28:10.514000+00:00
Original source
local NPCID = 190003
function On_Gossip(event, player, pUnit)
player:GossipMenuAddItem(3,"I'd like to learn to ride please!",0,1)
player:GossipMenuAddItem(3,"Goodbye",0,999)
player:GossipSendMenu(1, pUnit)
end
function On_Select(event, player, pUnit, sender, intid, code)
ridchk = player:HasSpell(33388)
if (ridchk == true) then
player:SendBroadcastMessage("You already posess this skill!")
player:GossipComplete()
else
if (intid == 1) then
player:LearnSpell(33388)
player:AddItem(190001,1)
player:SendBroadcastMessage("Riding granted & Mount Token added to inventory.")
player:GossipComplete()
end
end
if (intid == 999) then
player:GossipComplete()
end
end
RegisterCreatureGossipEvent(NPCID, 1, On_Gossip)
RegisterCreatureGossipEvent(NPCID, 2, On_Select)