[Guide] Scripting Items In LUA menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 25 of 25
  1. #16
    Rayuski's Avatar Member
    Reputation
    3
    Join Date
    May 2009
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    guide

    awesome, i like it

    [Guide] Scripting Items In LUA
  2. #17
    Kreach's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Been looking for one in LUA for ages nice on!
    +rep

  3. #18
    Contox's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome! I've been looking for this^^

  4. #19
    kemkoi's Avatar Active Member
    Reputation
    15
    Join Date
    Oct 2008
    Posts
    70
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good guide !

  5. #20
    malulululu's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It´s not

    function Item_OnUse(Item,Event,player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0, "My First Menu Item", 1, 0)
    item:GossipSendMenu(player)
    end

    RegisterItemGossipEvent(125667, 1, "Item_OnUse")
    It´s

    function Item_OnUse(Item,Event,player)
    Item:GossipCreateMenu(100, player, 0)
    Item:GossipMenuAddItem(0, "My First Menu Item", 1, 0)
    Item:GossipSendMenu(player)
    end

    RegisterItemGossipEvent(125667, 1, "Item_OnUse")

  6. #21
    malulululu's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It´s
    function Item_OnSelect(item,Event,Player)
    if intid == 1 then
    Player:Teleport (1, -3113.75, 839.355, 91.666
    end
    end
    and not

    if intid == 1 then
    player:Teleport (1, -3113.75, 839.355, 91.666
    end
    end

  7. #22
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha! Decided to come back to this community and see how my stuff was going.

    Thanks for all the positive feedback guys.

    Ok.. malulululu =.= Have you ever heard of variables? Cause that is what those are the names are irrelevant you could use "peanut" instead of "player" if you really wanted.
    Don't Forget To Give Rep To People Who Help You.

  8. #23
    bellios's Avatar Private
    Reputation
    1
    Join Date
    Dec 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kreegoth View Post
    Ive written alot of Creature encounters in LUA and portals and such have had no issues with it.. For some reason i cannot get the item scripting to work for me at all.. Any idea what ive done wrong?

    Code:
    function Item_OnUse(Item,Event,player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0, "Bring me to the Bomb Site", 1, 0)
    item:GossipSendMenu(player)
    end
    
    function Item_OnSelect(item,Event,Player)
    if intid == 1 then
    player:Teleport (1, -3113.75, 839.355, 91.6668)
    end
    end
    
    RegisterItemGossipEvent(118728, 1, "Item_OnUse")
    RegisterItemGossipEvent(118728, 2, "Item_OnUse")

    try
    Code:
    function Item_OnUse(Item, Event, player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0, "Bring me to the Bomb Site", 1, 0)
    item:GossipSendMenu(player)
    end
    
    function Item_OnSelect(item, Event, Player)
    if (intid == 1) then
    player:Teleport (1, -3113.75, 839.355, 91.6668)
    end
    end
    
    RegisterItemGossipEvent(118728, 1, "Item_OnUse")
    RegisterItemGossipEvent(118728, 2, "Item_OnSelect")
    i think that should do it. ive only been using lua for a day now. you just left out spaces and parenthesis, and i changed 2nd register to onselect, since that was your second function. if its wrong, someone please tell me, im still new to this :/

  9. #24
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Item_OnUse(item, Event, player)
    item:GossipCreateMenu(100, player, 0)
    item:GossipMenuAddItem(0, "Bring me to the Bomb Site", 1, 0)
    item:GossipSendMenu(player)
    end
    
    function Item_OnSelect(item, Event, player)
    if (intid == 1) then
    player:Teleport (1, -3113.75, 839.355, 91.6668)
    end
    end
    
    RegisterItemGossipEvent(118728, 1, "Item_OnUse")
    RegisterItemGossipEvent(118728, 2, "Item_OnSelect")
    The caps have it. All variables are case sensitive.
    Don't Forget To Give Rep To People Who Help You.

  10. #25
    thebigman's Avatar Contributor Reliable Trader
    CoreCoins Purchaser
    Reputation
    89
    Join Date
    Dec 2008
    Posts
    605
    Thanks G/R
    2/0
    Trade Feedback
    26 (96%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not sure if it was already said but the item needs to cast a spell when you click it to open the LUA menu. e.g. hearthstone. You can make it have a dummy spell though (one without visuals) and itll work just the same.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Lua Script] Item Requests
    By Sirgee in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-18-2012, 04:56 PM
  2. What is wrong with this item teleportation Lua script ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 08-13-2009, 08:50 AM
  3. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
  4. [GUIDE] - Scripting for Antrix, Making Mobs Talk, Cast Spells, etc
    By Greed in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 12-10-2007, 07:51 PM
  5. [Guide]-finding items and getting NPC ID's-
    By fireguild1 in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 11-05-2007, 09:59 PM
All times are GMT -5. The time now is 03:22 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search