[Release] Warp stone lua menu

User Tag List

Results 1 to 9 of 9
  1. #1
    Noobcraft's Avatar Member
    Reputation
    141
    Join Date
    Aug 2007
    Posts
    598
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Warp stone lua

    This was posted on arcemu however the script was broken and didnt work i remade it and it now works


    Code:
     
    local itemid = 92340
    function Item_Trigger(item, event, player)
        Item_menu(item, player)
    end
    function Item_menu(item, player)
     
        if (player:IsInCombat() == true) then
        player:SendAreaTriggerMessage("You are in combat!") 
        else                          
        item:GossipCreateMenu(3543, player, 0)
        item:GossipMenuAddItem(4, "GmIsland", 50, 0) ----you can change these,the numbers 50,20,21 are all connected to the teleport scripts remember to connect them to the right number.
        item:GossipMenuAddItem(4, "Level Road no pvp", 20, 0)
        item:GossipMenuAddItem(4, "Level Road Pvp allowed", 21, 0)
        item:GossipSendMenu(player)
        end
    end
    function OnSelect(item, event, player, id, intid, code)
     
        if (intid == 20) then
        player:Teleport(1, 4657.35, -3739.4, 1415.79) ----------these are connected to the options (gmisland level zones etc) most arent used so you can edit them and add them to the options
        player:GossipComplete()
        end
        if (intid == 21) then
        player:Teleport(1, 5137.83, -2357.04, 1418.38)
        player:GossipComplete()
        end
        if (intid == 22) then
        player:Teleport(1, -1278.849609, 126.752800, 131.329880)
        player:GossipComplete()
        end
        if (intid == 23) then
        player:Teleport(530, 9414.009766, -7278.341797, 14.201572)
        player:GossipComplete()
        end
        if (intid == 24) then
        player:Teleport(0, -8908.250000, 558.204956, 93.432388)
        player:GossipComplete()
        end
        if (intid == 25) then
        player:Teleport(1, 9952.001953, 2280.712891, 1341.393921)
        player:GossipComplete()
        end
        if (intid == 26) then
        player:Teleport(0, -4925.266602, -951.037842, 501.551971)
        player:GossipComplete()
        end
        if (intid == 27) then
        player:Teleport(530, -3992.824951, -11858.342773, 0.297733)
        player:GossipComplete()
        end
        if (intid == 50) then
        player:Teleport(1, 16222.6, 16265.9, 14.2085)
        player:GossipComplete()
        end
     
        if (intid == 1000) then
        local prace = player:GetPlayerRace()                         
        item:GossipCreateMenu(3543, player, 0)
        if ( race[prace] == 1 ) then
        item:GossipMenuAddItem(0, "Deff", 10, 0)
        end
        if ( race[prace] == 2) then
        item:GossipMenuAddItem(0, "Deff", 11, 0)
        end
        item:GossipMenuAddItem(4, "Deff", 50, 0)
        item:GossipMenuAddItem(4, "Deff", 1, 0)
        item:GossipSendMenu(player)
        end
    end
     
    RegisterItemGossipEvent(itemid,1,"Item_Trigger")
    RegisterItemGossipEvent(itemid,2,"OnSelect")
    Heres the item

    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
       (92340, 15, 0, -1, 'MMoPro Teleport Stone', '', '', '', 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);
    Picture


    Feel free to edit it no credits needed,expect to see a update on this soon with resrection sickness and buffer addon!!!

    Bugs:You will get a error for the lua in the arcemu-world cmd window but these errors do not interfere with the script its self and thier is no bug with the item so dont worry about it.



    [Release] Warp stone lua
  2. #2
    Shao111's Avatar Active Member
    Reputation
    33
    Join Date
    Jul 2007
    Posts
    281
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks nice! I can't test cause I use Mangos, but, +Rep for the contribution!

  3. #3
    treeko11's Avatar Member
    Reputation
    11
    Join Date
    Jan 2008
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sweet, i'll probably use this on my server

  4. #4
    scotty562's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool. I can't wait to play with this. Can I add more locations into the lua code without having to do anything to the sql entry?

    Ok so I copied the lua code into a txt file and named it warp stone.lua. I then put it in the lua folder. I then executed the sql code into my database. I started up my server and added the item to my inventory. The item looks fine, but I can't interact with it... What am I doing wrong?

    I'm running Apple's_Ascent_5.0 and I went into the arcemu-world.conf and it looks like lua is turned on (<ScriptBackends LUA="1" AS="0">).

    I'd really like to get this working so I can start customizing it .
    Last edited by scotty562; 08-23-2008 at 09:26 AM.

  5. #5
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way to make it so you can have GM options on it visible only if your GM?

    Like

    if (player:IsGM() == true) then
    item:GossipMenuAddItem(4, "GM Island", 20, 0)
    else
    blah blah blah

  6. #6
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nvm. Thats only in Blua code.

  7. #7
    Biden's Avatar Member
    Reputation
    27
    Join Date
    Mar 2008
    Posts
    146
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wat do u name this lua script? so that it will work

  8. #8
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing special is needed, just end it with .lua.

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  9. #9
    Graphicx9's Avatar Member
    Reputation
    1
    Join Date
    Oct 2006
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do i add more locations?

Similar Threads

  1. [Release] Warp NPC Lua !! ( First Lua Release by Me )
    By Hyldran0 in forum WoW EMU General Releases
    Replies: 17
    Last Post: 01-22-2009, 09:32 AM
  2. [Release] Warp Stone + More! (Lua)
    By Dr. Livingstone in forum WoW EMU General Releases
    Replies: 17
    Last Post: 10-30-2008, 07:54 PM
  3. [LUA Release] Warp Npc (Noob friendly)
    By Lytle69 in forum WoW EMU General Releases
    Replies: 6
    Last Post: 10-03-2008, 06:06 PM
  4. [Release/Info] Custom LUA Bosses!
    By Gastricpenguin in forum World of Warcraft Emulator Servers
    Replies: 38
    Last Post: 02-08-2008, 12:14 PM
All times are GMT -5. The time now is 01:29 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search