runiker
08-02-09, 12:27 AM
is there a way to check if the player is horde or ally in lua other then looking for each one?
stoneharry
11-02-09, 01:25 PM
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)
Here's what I put together.. and it works. I can also make it say their in combat.
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:
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:
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
Blindguard
12-02-09, 03:06 PM
Thanks alot, need this myself really :P
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.