[Release] Teleport/Morph/Rez Sickness Remover NPC! menu

These ads disappear when you log in.

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Dr. Livingstone's Avatar Knight-Lieutenant
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)

    [Release] Teleport/Morph/Rez Sickness Remover NPC!

    Well I've spent some time combining almost all my work into one general NPC! Here it is for your pleasure. If you want to use any part of it go ahead. Just some credit

    Code:
    local npcid = 100000
    function warp_on_gossip_talk(unit, event, player)
    	unit:CreatGossipMenuForPlayer(3543, player)
    	unit:MenuAddItem(player, 0, "Alliance Cities", 1, 0)
    	unit:MenuAddItem(player, 0, "Horde Cities", 7, 0)
    	unit:MenuAddItem(player, 0, "Azeroth Instances", 2, 0)
    	unit:MenuAddItem(player, 0, "Outland Instances", 3, 0)
    	unit:MenuAddItem(player, 0, "Gurubashi Arena", 6, 0)
    	unit:MenuAddItem(player, 0, "Morphs", 8, 0)
    	unit:MenuAddItem(player, 0, "Remove Rez Sickness", 5, 0)
    	unit:MenuSendToPlayer(player)
    end
    
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    	
    	if(intid == 2) then
    	unit:CreatGossipMenuForPlayer(3542, player)
    	unit:MenuAddItem(player, 2, "Azeroth Raids", 101, 0)
    	unit:MenuAddItem(player, 2, "Shadowfang Keep", 10, 0)
    	unit:MenuAddItem(player, 2, "Scarlet Monestary", 11, 0)
    	unit:MenuAddItem(player, 2, "Stratholme", 12, 0)
    	unit:MenuAddItem(player, 2, "Scholomance", 13, 0)
    	unit:MenuAddItem(player, 2, "Gnomeregan", 14, 0)
    	unit:MenuAddItem(player, 2, "Uldaman", 15, 0)
    	unit:MenuAddItem(player, 2, "Sunken Temple", 16, 0)
    	unit:MenuAddItem(player, 2, "Blackrock Spire", 17, 0)
    	unit:MenuAddItem(player, 2, "Deadmines", 21, 0)
    	unit:MenuAddItem(player, 2, "Zul'Farrak", 18, 0)
    	unit:MenuAddItem(player, 2, "Ragefire Chasm", 19, 0)
    	unit:MenuAddItem(player, 2, "Wailing Caverns", 20, 0)
    	unit:MenuAddItem(player, 2, "Blackfathom Depths", 22, 0)
    	unit:MenuAddItem(player, 2, "Razorfen Downs", 23, 0)
    	unit:MenuAddItem(player, 2, "Razorfen Kraul", 24, 0)
    	unit:MenuAddItem(player, 2, "Maraudon", 25, 0)
    	unit:MenuAddItem(player, 2, "Dire Maul", 26, 0)
    	unit:MenuAddItem(player, 2, "[Back]", 100, 0)
    	unit:MenuSendToPlayer(player)
    end
    
    	if(intid == 3) then
    	unit:CreatGossipMenuForPlayer(3542, player)
    	unit:MenuAddItem(player, 3, "Outland Raids", 102, 0)
    	unit:MenuAddItem(player, 3, "Hellfire Citadel", 27, 0)
    	unit:MenuAddItem(player, 3, "Coilfang Reservoir", 28, 0)
    	unit:MenuAddItem(player, 3, "Auchindoun", 29, 0)
    	unit:MenuAddItem(player, 3, "Caverns of Time", 30)
    	unit:MenuAddItem(player, 3, "Tempest Keep", 31)
    	unit:MenuSendToPlayer(player)
    end
    	
    	if(intid == 7) then
    	unit:CreatGossipMenuForPlayer(3542, player)
    	unit:GossipMenuAddItem(4, "Ironforge", 32, 0)
        unit:GossipMenuAddItem(4, "Stormwind", 33, 0)
        unit:GossipMenuAddItem(4, "Darnassus", 34, 0)
        unit:GossipMenuAddItem(4, "Exodar", 35, 0)
    	unit:GossipSendMenu(player)
    	end
    	
    	if(intid == 1) then
    	unit:CreatGossipMenuForPlayer(3542, player)
    	unit:GossipMenuAddItem(5, "Orgrimmar", 36, 0)
        unit:GossipMenuAddItem(5, "Thunder Bluff", 37, 0)
        unit:GossipMenuAddItem(5, "Undercity", 38, 0)
        unit:GossipMenuAddItem(5, "Silvermoon", 39, 0)
        unit:GossipSendMenu(player)
        end
    
    	if(intid == 5) then
    	pUnit:CastSpellOnTarget(15007) 
    	player:UnlearnSpell(15007)
    	pUnit:GossipComplete(player)
    end
    
    if(intid == 6) then
    player:Teleport(1, 1498.845215, -4414.937988, 22.203)
    end
    
    if(intid == 7) then
    player:Teleport(1, 1530.256592, 210.98, -43.1)
    end
    
    if(intid == 8) then
    player:Teleport(0, -1284.997437, 179.616898, 129)
    end
    
    if(intid == 9) then
    player:Teleport(0, 9459.475586, -7280.01, 14.23)
    end
    
    if(intid == 10) then
    player:Teleport(0, -246.061758, 1533.107544, 77.09)
    end
    
    if(intid == 11) then
    player:Teleport(0, 2892.173584, -811.338379, 160.34)
    end
    
    if(intid == 12) then
    player:Teleport(0, 3354.986084, -3379.198486, 144.7871937)
    end
    
    if(intid == 13) then
    player:Teleport(0, 1243.319825, -2591.356201, 90.192810)
    end
    
    if(intid == 14) then
    player:Teleport(0, -5182.606934, 617.909424, 405.46)
    end
    
    if(intid == 15) then
    player:Teleport(0, -6070.064941, -2955.942627, 209.78)
    end
    
    if(intid == 16) then
    player:Teleport(0, -10451.191406, -3822.810303, 18.07)
    end
    
    if(intid == 17) then
    player:Teleport(0, -7495.056129, -1116.887695, 265.74)
    end
    
    if(intid == 21) then
    player:Teleport(0, -11209.875000, 1669.595093, 24.933108)
    end
    
    if(intid == 22) then
    player:Teleport(1, 4139.332031, 891.448730, -18.947780)
    end
    
    if(intid == 23) then
    player:Teleport(1, -4653.043945, -2501.171143, 81.194329)
    end
    
    if(intid == 24) then
    player:Teleport(1, -4464.919922, -1666.239990, 81.892128)
    end
    
    if(intid == 25) then
    player:Teleport(349, 752.909973, -616.530029, -33.110001)
    end
    
    if(intid == 26) then
    player:Teleport(1, -3752.292725, 1044.019287, 162.183167)
    end
    
    if(intid == 1) then
    player:Teleport(37, 107.608002, 1014.510010, 296.203003)
    end
    
    if(intid == 27) then
    player:Teleport(530, -275.470123, 3111.767334, 31.456154)
    end
    
    if(intid == 28) then
    player:Teleport(530, 741.431335, 6866.434082, -69.119469)
    end
    
    if(intid == 29) then
    player:Teleport(530, -3336.829102, 4933.846191, -100.439507)
    end
    
    if(intid == 30) then
    player:Teleport(1, -8480.312500, -4308.177246, -208.442169)
    end
    
    if(intid == 31) then
    player:Teleport(530, 3098.636475, 1515.429565, 190.300446)
    end
    
    if(intid == 6) then
    player:Teleport(0, -13264.169922, 151.133057, 35.005310)
    end
    
    if(intid == 32) then
    player:Teleport(0, -4981.250000, -881.541992, 501.659729)
    end
    
    	
    if(intid == 33) then
    player:Teleport(0, -8913.230469, 554.632996, 93.794456)
    end
    	
    if(intid == 34) then
    player:Teleport(0, 9945.129883, 2616.889893, 1316.459961)
    end
    	
    if(intid == 35) then
    player:Teleport(0, -3994.848633, -11862.791016, 0.269375)
    end
    
    if(intid == 36) then
    player:Teleport(1, 1502.709961, -4415.419922, 21.552349)
    end
        
    if(intid == 37) then
    player:Teleport(1, -1284.529419, 158.671707, 129.994247)
    end
        
    if(intid == 38) then
    player:Teleport(0, 1831.260010, 238.529999, 60.520733)
    end
        
    if(intid == 39) then
    player:Teleport(530, 9414.179688, -72578.970215, 14.203904)
    end
    
        if (intid == 8) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Human", 40, 0)
        unit:GossipMenuAddItem(5,"Murloc", 41, 0)
        unit:GossipMenuAddItem(5,"Hogger", 42, 0)
        unit:GossipMenuAddItem(5,"Robot", 43, 0)
        unit:GossipMenuAddItem(5,"Goblin", 44, 0)
        unit:GossipMenuAddItem(5,"Wisp", 45, 0)
        unit:GossipMenuAddItem(5,"Dragon", 46, 0)
        unit:GossipMenuAddItem(5,"Lumberjack", 47, 0)
        unit:GossipMenuAddItem(5,"Tauren", 48, 0)
        unit:GossipMenuAddItem(5,"Worm", 49, 0)
        unit:GossipMenuAddItem(5,"Hydra", 50, 0)
        unit:GossipMenuAddItem(4,"[Next]", 997, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 40) then
        player:SetModel(6074)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 41) then
        player:SetModel(15395)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 42) then
        player:SetModel(384)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 43) then
        player:SetModel(6889)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 44) then
        player:SetModel(18290)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 45) then
        player:SetModel(17607)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 46) then
        player:SetModel(308)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 47) then
        player:SetModel(741)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 48) then
        player:SetModel(20618)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 49) then
        player:SetModel(13009)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 50) then
        player:SetModel(6737)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 997) then
        unit:GossipCreateMenu(100, player, 0)
        unit:GossipMenuAddItem(5,"Defias Bandit", 51, 0)
        unit:GossipMenuAddItem(5,"VanCleef", 52, 0)
        unit:GossipMenuAddItem(5,"Ooze", 53, 0)
        unit:GossipMenuAddItem(5,"Santa!", 54, 0)
        unit:GossipMenuAddItem(5,"Santa's Lil'Helper!", 55, 0)
        unit:GossipMenuAddItem(5,"Dark Iron", 56, 0)
        unit:GossipMenuAddItem(5,"Infernal", 57, 0)
        unit:GossipMenuAddItem(5,"Cow", 58, 0)
        unit:GossipMenuAddItem(5,"Abomonation", 59, 0)
    	unit:GossipMenuAddItem(5, "[Back]", 8, 0)
        unit:GossipSendMenu(player)
        end
    
        if (intid == 51) then
        player:SetModel(116)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 52) then
        player:SetModel(2029)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 53) then
        player:SetModel(4393)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 54) then
        player:SetModel(13369)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 55) then
        player:SetModel(15698)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 56) then
        player:SetModel(7797)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 57) then
        player:SetModel(10905)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 58) then
        player:SetModel(2442)
        player:SetScale(1)
        player:GossipComplete()
        end
    
        if (intid == 59) then
        player:SetModel(12818)
        player:SetScale(1)
        player:GossipComplete()
        end
    
          
    RegisterUnitGossipEvent(100000, 1, "On_GossipMenu")
    RegisterUnitGossipEvent(100000, 2, "On_GossipSelect")
    RegisterGossipEvent(100000 , 3, "warp_on_gossip_talk")
    RegisterGossipEvent(100000 , 4, "warp_on_gossip_select")
    SQL
    Code:
     INSERT INTO items
       (`entry`, `class`, `subclass`, `field4`, `name1`, `name2`, `name3`, `name4`, `displayid`, `quality`, `flags`, `buyprice`, `sellprice`, `inventorytype`, `allowableclass`, `allowablerace`, `itemlevel`, `requiredlevel`, `RequiredSkill`, `RequiredSkillRank`, `RequiredSkillSubRank`, `RequiredPlayerRank1`, `RequiredPlayerRank2`, `RequiredFaction`, `RequiredFactionStanding`, `Unique`, `maxcount`, `ContainerSlots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `delay`, `ammo_type`, `range`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `description`, `page_id`, `page_language`, `page_material`, `quest_id`, `lock_id`, `lock_material`, `sheathID`, `randomprop`, `unk203_1`, `block`, `itemset`, `MaxDurability`, `ZoneNameID`, `mapid`, `bagfamily`, `TotemCategory`, `socket_color_1`, `unk201_3`, `socket_color_2`, `unk201_5`, `socket_color_3`, `unk201_7`, `socket_bonus`, `GemProperties`, `ReqDisenchantSkill`, `unk2`)
    VALUES
       (150000, 15, 0, -1, 'MMOwned Teleporter', '', '', '', 35133, 1, 0, 0, 0, 0, -1, -1, 100, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1500, 0, 0, 46642, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Noobcraft got lazy and he made this....', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 0, NULL, 0, 0, 0, 0, 0, 0, 0, NULL, -1, 0);

    These ads disappear when you log in.

  2. #2
    Oggranarr's Avatar Sergeant
    Reputation
    13
    Join Date
    Sep 2007
    Posts
    68
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    All combined into the teleporter is not what Ive seen much

    +rep from me

  3. #3
    dod's Avatar Corporal
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    it wont work for me

  4. #4
    stoneharry's Avatar Moderator Harry

    CoreCoins User Authenticator enabled
    Reputation
    1518
    Join Date
    Sep 2007
    Posts
    4,377
    Thanks G/R
    102/95
    Trade Feedback
    0 (0%)
    It looks nice +Rep x2
    Yet I have actually seen others combined...
    Ah well, still nice effert and your contributing
    and Dod, check the other post you asked on

    Edit: Got to spread, sorry

  5. #5
    Dr. Livingstone's Avatar Knight-Lieutenant
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Thanks for the compliments. Going to work on some new stuff shortly. Been busy with server stuff.

  6. #6
    MysterioussouL's Avatar Banned
    Reputation
    339
    Join Date
    Feb 2008
    Posts
    431
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Nice a combined npc , thanks for sharing +Rep
    Edited : Rep on cooldown

  7. #7
    ApexEmu's Avatar Banned
    Reputation
    5
    Join Date
    Oct 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    You need Lua++ for this to work, +Rep

  8. #8
    LJN's Avatar Lieutenant Commander
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Originally Posted by dod View Post
    it wont work for me
    You don't need lua++ for this. You will need to enable it. Find in your ascent.confg or any world config you have and search for lua. Then change the value to "1"
    ahhhh

  9. #9
    y2kss66's Avatar Lieutenant Commander
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    nice job! +Rep

  10. #10
    Dr. Livingstone's Avatar Knight-Lieutenant
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Hmmm shouldn't need Lua++... Thanks for the comments!

  11. #11
    Ryoken's Avatar Corporal
    Reputation
    12
    Join Date
    Sep 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Very nice, worked for me.

  12. #12
    Dr. Livingstone's Avatar Knight-Lieutenant
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Glad to see that it helped out. You guys have any feedback on what you would like to see added to it?

  13. #13
    zable's Avatar Private
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    i dont know why, but when i spawn the teleporter i get invalid id, and when i add items...... wtf a gem :S

  14. #14
    zable's Avatar Private
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    but enyway good lua scipt +Rep

  15. #15
    Dr. Livingstone's Avatar Knight-Lieutenant
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Did you do a server restart after running the SQL?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Teleport NPC ( if all others fail)
    By matydunkk in forum WoW EMU General Releases
    Replies: 8
    Last Post: 11-15-2008, 05:17 PM
  2. Replies: 40
    Last Post: 11-04-2008, 04:03 PM
  3. [Release] Warp/Rez Sick Remover NPC
    By Dr. Livingstone in forum WoW EMU General Releases
    Replies: 3
    Last Post: 09-30-2008, 11:19 PM
  4. [Release] Teleporter NPC (LUA++)
    By Vaudville in forum WoW EMU General Releases
    Replies: 9
    Last Post: 09-23-2008, 09:55 AM
All times are GMT -5. The time now is 05:28 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search