LUA thread! Post nonworking LUA's or FIX non working LUA's menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35
  1. #31
    DrZoyburg's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    and @ DrZoyburg what am i looking for could u please tell me whats wrong first?
    sorry for taking so long to respond, just getting off a 3-12hr shifts, when you try to open the pda it says "can not open file" and nothing happens, tried to add a folder to db so it would look for it but still nothing happens.

    Doc

    LUA thread! Post nonworking LUA's or FIX non working LUA's
  2. #32
    Shalitas's Avatar Active Member CoreCoins Purchaser
    Reputation
    27
    Join Date
    Dec 2006
    Posts
    108
    Thanks G/R
    1/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey guys, the script is actually loading properly and working till I click on a menu.
    When I click on a menu, it just wont do anything, any help please?


    ERR_MSG = "You don't have enough tokens to buy this item.";


    function Event_Guide(unit, event, player, misc)
    unit:GossipCreateMenu(1, player, 0)
    unit:GossipMenuAddItem(0, "10 Donations Token Items", 4, 0)
    unit:GossipMenuAddItem(0, "20 Donations Token Items", 5, 0)
    unit:GossipSendMenu(player)
    end

    function Event_Submenu(unit, event, player, id, intid, code, misc)

    if(intid == 1) then
    unit:GossipCreateMenu(16, player, 0)
    unit:GossipMenuAddItem(0, "10 Donations Token Items", 4, 0)
    unit:GossipMenuAddItem(0, "20 Donations Token Items", 5, 0)
    unit:GossipSendMenu(player)
    end


    --10 token items
    if(intid == 4) then
    unit:GossipCreateMenu(21, player, 0)
    unit:GossipMenuAddItem(0, "Gurubashi Dagger of Annihilation", 24, 0)
    unit:GossipMenuAddItem(0, "Gurubashi Spectral glaive", 25, 0)
    unit:GossipMenuAddItem(0, "[Back]", 1, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 24) then
    if player:GetItemCount(100001) > 9 then
    player:RemoveItem(100001, 10)
    player:AddItem(99993, 1)
    player:GossipComplete()
    else
    player:SendChatMessage(12, 0, ERR_MSG)
    end
    end

    if(intid == 25) then
    if player:GetItemCount(100001) > 9 then
    player:RemoveItem(100001, 10)
    player:AddItem(99994, 1)
    player:GossipComplete()
    else
    player:SendChatMessage(12, 0, ERR_MSG)
    end
    end

    --20 token items
    if(intid == 5) then
    unit:GossipCreateMenu(21, player, 0)
    unit:GossipMenuAddItem(0, "Gurubashi Hand of the Ancient", 29, 0)
    unit:GossipMenuAddItem(0, "Gurubashi Staff of Destruction", 30, 0)
    unit:GossipMenuAddItem(0, "Gurubashi Arcanite Fury", 31, 0)
    --unit:GossipMenuAddItem(0, "Item 6", 32, 0)
    --unit:GossipMenuAddItem(0, "Item 3", 33, 0)
    unit:GossipMenuAddItem(0, "[Back]", 1, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 29) then
    if player:GetItemCount(100001) > 19 then
    player:RemoveItem(100001, 20)
    player:AddItem(99991, 1)
    player:GossipComplete()
    else
    player:SendChatMessage(12, 0, ERR_MSG)
    end
    end

    if(intid == 30) then
    if player:GetItemCount(100001) > 19 then
    player:RemoveItem(100001, 20)
    player:AddItem(99992, 1)
    player:GossipComplete()
    else
    player:SendChatMessage(12, 0, ERR_MSG)
    end
    end

    if(intid == 31) then
    if player:GetItemCount(100001) > 19 then
    player:RemoveItem(100001, 20)
    player:AddItem(99995, 1)
    player:GossipComplete()
    else
    player:SendChatMessage(12, 0, ERR_MSG)
    end
    end

    end

    RegisterUnitGossipEvent(555555, 1, "Event_Guide")
    RegisterUnitGossipEvent(555555, 2, "Event_Subme")
    +rep to the one who fix it !!
    Follow me @ Twitch.tv/ShalitasWins

  3. #33
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function Event_Submenu(unit, event, player, id, intid, code, misc)

    RegisterUnitGossipEvent(555555, 2, "Event_Subme")

    Don't know if the forums cut that off but it needs to say Submenu in the register.

  4. #34
    Shalitas's Avatar Active Member CoreCoins Purchaser
    Reputation
    27
    Join Date
    Dec 2006
    Posts
    108
    Thanks G/R
    1/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya fixed it now it actually working, but err msg is not being told when you dont have the tokens
    Follow me @ Twitch.tv/ShalitasWins

  5. #35
    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)
    Originally Posted by DrZoyburg View Post
    sorry for taking so long to respond, just getting off a 3-12hr shifts, when you try to open the pda it says "can not open file" and nothing happens, tried to add a folder to db so it would look for it but still nothing happens.

    Doc
    pda? added a folder into the db?
    Don't Forget To Give Rep To People Who Help You.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. The sobber thread! Post sad endings here
    By Zantas in forum The Back Room
    Replies: 1
    Last Post: 05-15-2010, 07:49 PM
  2. Zolofighter threads - post in here
    By KuRIoS in forum World of Warcraft Bots and Programs
    Replies: 29
    Last Post: 04-16-2009, 06:35 AM
  3. [Now open] Ascent Help-me Thread. POST QUESTIONS HERE.
    By Equ1N0X in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-07-2008, 09:28 AM
  4. New Thread Post/Search
    By Scarmaker in forum Suggestions
    Replies: 2
    Last Post: 01-04-2007, 02:58 PM
All times are GMT -5. The time now is 05:36 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