LUA issue.. menu

User Tag List

Thread: LUA issue..

Results 1 to 6 of 6
  1. #1
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA issue..

    Can someone please post here how i would make a buffer NPC check for a players level before they cast buffs? Say i want her to check if the player is over lvl 45 and if it is give the menu if not it gives a message saying you need to be higher level?/.

    i tried things such as

    pUnit:Getplayerlevel()
    if <45 then
    (insert my gossip script)

    But it didnt work so what im looking for is someone to either write up so i can take it apart and make it work myself next time or someone to just explain the correct syntax and structure i would use to do this .. thanks

    LUA issue..
  2. #2
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try.

    Code:
    if player:GetLevel() == 45  then


  3. #3
    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)
    Code:
    if player:GetLevel() >= 45  then
    (gossip menu)
    else
    player:SendAreaTriggerMessage("You are not high enough level!")

  4. #4
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yah SoundDead's looks a bit more correct


  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)
    Why can't I message you on MSN. It's being gay :'(

  6. #6
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bah i figured it out .. Normal Lua doesnt have a function for it.. Ill have to recompile and add Lua++.. well me and bapes figured it out LOL

Similar Threads

  1. Lua Issues
    By zatlantis in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-12-2009, 05:17 AM
  2. Lua issues
    By Evilbuffy in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 04-27-2009, 02:42 PM
  3. Lua issue ( hide seek script)
    By zozoka in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 09-30-2008, 04:24 PM
  4. LUA Issues
    By orion5814 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-20-2008, 04:03 PM
  5. [LUA Issue] Sudden self-targetting
    By Whitethebunny in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 06-07-2008, 09:06 PM
All times are GMT -5. The time now is 09:10 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