PDA

View Full Version : Instant 70 npc lua



Boxxy
16-08-08, 12:54 AM
local npcid = 123456---change to the npcs ids

function NPC_main_menu(pUnit, player)
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "Make me level 70", 1, 0)
pUnit:GossipSendMenu(player)
end
function NPC_on_gossip_talk(pUnit, event, player)
NPC_main_menu(pUnit, player)
end
function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
if(intid == 1) then
pUnit:SendChatMessage(12, 0, "Happy raiding")
player:SetPlayerLevel(70) ----can change to whatever level
player:GossipComplete()
end
end
RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk")
RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select")


Feel free to edit it no credits needed.