Jump to content

Mangosone morpher


stefan100

Recommended Posts

Hi guys. may someone help me here?
 

local NPC_ID = 292929 --ID del NPC

function Morph_Gossip(event, plr, unit)
    plr:GossipMenuAddItem(0, "Blood Elf", 0, 1001, 0)
    plr:GossipMenuAddItem(0, "Illidan", 0, 1002, 0)
    plr:GossipMenuAddItem(0, "Female Draenei", 0, 1003, 0)
    plr:GossipMenuAddItem(0, "Ermus", 0, 1004, 0)
    plr:GossipSendMenu(1, unit)
end

function Morph_Event(event, plr, unit, arg2, intid)
    if(plr:HasItem(70000, 5)) then
        if(intid == 1001) then
            plr:SetDisplayId(20578) --Blood elf
        elseif(intid == 1002) then
            plr:SetDisplayId(21135) --Illidan
        elseif(intid == 1003) then
            plr:SetDisplayId(20323) --Female Draenei
        elseif(intid == 1004) then
            plr:SetDisplayId(22323) --Ermus
        end
        plr:RemoveItem(29434, 5)
        plr:SendAreaTriggerMessage("|cff00ff00 You have been morphed.!")
    else
        plr:SendAreaTriggerMessage("You don't have enough PvP Token!")
    end
end

RegisterCreatureGossipEvent(NPC_ID, 1, Morph_Gossip)
RegisterCreatureGossipEvent(NPC_ID, 2, Morph_Event)



This is simple morph npc..can someone give me better or help me to modify it?
I want to morph free without any tokens needed or any things...+ when you click example: Illidan it show you menu and which say: ,,Please enter code here'' so please remove this and make the npc to morph you for free with one click :D

This is old and oudated script, but i cannot find any to work for MangosOne ...please help me to improve it better then players should use it too , or give me another one and tell me how to add it, thanks :)

Link to comment
Share on other sites

Removed cost, the popups and reduced script size

local NPC_ID = 292929 -- ID del NPC

local function Morph_Gossip(event, plr, unit)
    plr:GossipMenuAddItem(0, "Blood Elf", 1, 20578)
    plr:GossipMenuAddItem(0, "Illidan", 1, 21135)
    plr:GossipMenuAddItem(0, "Female Draenei", 1, 20323)
    plr:GossipMenuAddItem(0, "Ermus", 1, 22323)
    plr:GossipSendMenu(1, unit)
end

local function Morph_Event(event, plr, unit, sender, displayid)
    if sender == 1 then
        plr:SetDisplayId(displayid)
        plr:SendAreaTriggerMessage("|cff00ff00 You have been morphed!")
    end
    plr::GossipComplete()
end

RegisterCreatureGossipEvent(NPC_ID, 1, Morph_Gossip)
RegisterCreatureGossipEvent(NPC_ID, 2, Morph_Event)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use