Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 4 of 4
  1. #1
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    18
    Reputation
    113

    LUA Quick Question


    Register to remove this ad
    is there a way to check if the player is horde or ally in lua other then looking for each one?




    › See More: LUA Quick Question



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Scout
    stoneharry's Avatar
    Join Date
    Feb 2009
    Posts
    16
    Post Thanks / Like
    Rep Power
    16
    Reputation
    10
    Yes you can,
    Check this: http://www.sos-server.com/library.html
    99% of the normal lua commands (most are broke on most Lua engines)

  4. #3
    Contributor
    QQrofl's Avatar
    Join Date
    Jan 2009
    Posts
    153
    Post Thanks / Like
    Rep Power
    17
    Reputation
    132
    Here's what I put together.. and it works. I can also make it say their in combat.

    Code:
     local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    Can't use in combat:

    Code:
    if (player:IsInCombat() == true) then
     player:SendAreaTriggerMessage("You are in combat, sorry!")
        else                          
      unit:GossipCreateMenu(3543, player, 0)
     local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then

    Also a Item:

    Code:
    if (player:IsInCombat() == true) then
     player:SendAreaTriggerMessage("You are in combat, Sorry!")
        else                          
      item:GossipCreateMenu(3543, player, 0)
     local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then




    Trinity C++ Event Scriptor, ArcEmu C++ Event Scriptor. I have done countless projects to entertain people, so many nostalgic moments, but the best has soon to come.

  5. #4
    First Sergeant
    Blindguard's Avatar
    Join Date
    Jan 2009
    Location
    Orgrimmar
    Posts
    159
    Post Thanks / Like
    Rep Power
    16
    Reputation
    54

    Register to remove this ad
    Thanks alot, need this myself really :P
    Metal are supreme.

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 02:12 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org