LuaHypArc -- Help me! menu

User Tag List

Results 1 to 4 of 4
  1. #1
    facka138b's Avatar Member
    Reputation
    10
    Join Date
    Mar 2008
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LuaHypArc -- Help me!

    Would my script check if the players GM is "j"?


    local ENTRY = NPC ID HERE
    local Plr_In = player:GetName()
    local Plr_Acc = CharDBQuery("SELECT acct FROM characters WHERE name = '"..Plr_In.."'", 0)
    local Plr_GM = CharDBQuery("SELECT gm FROM accounts WHERE acct = '"..Plr_Acc.."'", 0)


    function Vendor_OnGossip(pUnit, event, player, pMisc)
    if (Plr_GM == j) then
    pUnit:VendorRemoveAllItems()
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(3, "Weapons", 1, 0)
    pUnit:GossipMenuAddItem(3, "Armor", 2, 0)
    else
    player:SendAreaTriggerMessage("You're not a VIP or GM. please dont waste my time!")
    pUnit:GossipSendMenu(player)
    end
    end

    function Vendor_OnSelect(pUnit,event,player,id,intid,code)

    if (intid == 1) then
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    pUnit:VendorAddItem(WEAPON ENTRY HERE,1,0)
    player:SendVendorWindow(pUnit)
    end

    if (intid == 2) then
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    pUnit:VendorAddItem(ARMOR ENTRY HERE,1,0)
    player:SendVendorWindow(pUnit)
    end
    end

    RegisterUnitGossipEvent(ENTRY, 1, "Vendor_OnGossip")
    RegisterUnitGossipEvent(ENTRY, 2, "Vendor_OnSelect")

    LuaHypArc -- Help me!
  2. #2
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can only test it.

    I would presume it should be fine yes, but you will have to test it.

    And please use [code] tags! <3




  3. #3
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1418
    Join Date
    Oct 2007
    Posts
    2,805
    Thanks G/R
    301/311
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kiev View Post
    You can only test it.

    I would presume it should be fine yes, but you will have to test it.

    And please use [code] tags! <3
    this .

  4. #4
    pantryboy's Avatar Member
    Reputation
    44
    Join Date
    Sep 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use the :CanUseCommand() function.

    Code:
    if (player:CanUseCommand("j") == true) then

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. need help with luahyparc!
    By trujillo in forum WoW EMU Questions & Requests
    Replies: 18
    Last Post: 03-01-2010, 03:18 AM
  3. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 05:12 AM. 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