i need help with a LUA teleport item and buff item... menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    i need help with a LUA teleport item and buff item...

    i need to know what class or subclass or what flag i should have a on a item i want to be a teleport stone i will +rep someone who can help me with this issue but basically it is a teleporter but instead of being a npc its a item in your inventory

    thanx for the help, trujillo

    i need help with a LUA teleport item and buff item...
  2. #2
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    class 15 subclass 0 Field4 = -1

  3. #3
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i tried that and it didnt work...
    and i tried class 0 subclass 8 and field4 -1

  4. #4
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i will copy my table this is with arcemu 3.2 so just match the columns up if your using arc as well
    Code:
    80018	15	0	-1	World Teleporter	6418	1	0	0	0	0	0	-1	-1	0	0	0	0	0	0	0	0	0	0	1	0	10	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	1000	0	0	20759	0	0	1000	0	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			-1	0	0	0	0
    The big gaps are Null

  5. #5
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanx that was alot of help +rep

  6. #6
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So is it working now?

  7. #7
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea but my scripts arent working like it pulls up a menu but then wont let me select anything from the menu

  8. #8
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need lua help

    my lua script wont work
    i got the item to work and when i use the item it pulls the menu up but then i cant select anything from the menu
    Code:
    function BuffStone_OnUse(item, event, player)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!") 
    else 
    item:GossipCreateMenu(3544, player, 0)
    item:GossipMenuAddItem(1, "nether infusion", 1, 0)
    item:GossipMenuAddItem(1, "defensive aura", 2, 0)
    item:GossipMenuAddItem(1, "berserker aura", 3, 0)
    item:GossipMenuAddItem(1, "arena prep", 4, 0)
    item:GossipMenuAddItem(1, "dance vibe", 5, 0)
    item:GossipMenuAddItem(1, "greater blessing of kings", 6, 0)
    item:GossipMenuAddItem(1, "immune to disarm", 7, 0)
    item:GossipMenuAddItem(1, "song of sylvannas", 8, 0)
    item:GossipMenuAddItem(1, "battle supremacy", 9, 0)
    item:GossipSendMenu(player)
    end
    end
    
    function BuffStone_OnSelect(item, event, player, id, intid, code, misc)
    if(intid == 1) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(38688, player)
    item:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(41105, player)
    item:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(41107, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 4) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(32728, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 5) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(29521, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 6) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(25898, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 7) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(32737, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 8) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(59756, player)
    itemGossipSendMenu(player) 
    end
    
    if(intid == 9) then
    item:GossipCreateMenu(61, player, 0)
    item:FullCastSpellOnTarget(45743, player)
    itemGossipSendMenu(player) 
    end
    end
    
    RegisterUnitGossipEvent(100395, 1, "BuffStone_OnUse")
    RegisterUnitGossipEvent(100395, 2, "BuffStone_OnUse")

  9. #9
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    example

    You have this
    Code:
    RegisterUnitGossipEvent(100395, 1, "BuffStone_OnUse")
    RegisterUnitGossipEvent(100395, 2, "BuffStone_OnUse")
    When you clearify it as OnSelect and Gossip?
    so
    Code:
    RegisterUnitGossipEvent(100395, 1, "BuffStone_Gossip")
    RegisterUnitGossipEvent(100395, 2, "BuffStone_OnSelect")

  10. #10
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanx i will see if that works

  11. #11
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok wow now a even worse and more annoying problem it only casts beserker aura because in mysql i used that as the spell because otherwise i had to target a creature to use my stone

  12. #12
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im not sure, im still learning lua my self, sorry. i tried ^^

  13. #13
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol ok thanx
    and does the spell you use make it so it allows you to use the stone without targeting a enemy?

  14. #14
    Bloodsin's Avatar Member
    Reputation
    13
    Join Date
    Jun 2007
    Posts
    165
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ill send u the lua for mine
    Filebeam - Beam up that File Scottie!
    Just change the local npcid = (to your item)
    and Unit: to Item:
    and the registerevent to the Item ID

  15. #15
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok and i ment the mysql thing lol

Page 1 of 2 12 LastLast

Similar Threads

  1. Need help with an LUA script.
    By Ryoken in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-21-2009, 09:30 PM
  2. Need help with Gossip Lua with Functions (3 rep to whoever fixes)
    By stoneharry in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-14-2008, 03:30 PM
  3. +Rep for Help with Universal Lua Teleporter
    By Lytle69 in forum WoW EMU Questions & Requests
    Replies: 16
    Last Post: 12-12-2008, 07:30 AM
  4. NEed help with change price on items.
    By jerrkan in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-19-2008, 09:16 AM
  5. Need help with a simple teleport hack
    By Login Error in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-27-2008, 02:25 AM
All times are GMT -5. The time now is 03:54 AM. 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