Likes: 0
Results 1 to 4 of 4
Thread: LUA Quick Question
-
08-02-09, 12:27 AM #1
LUA Quick Question
Register to remove this adis 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
-
11-02-09, 01:25 PM #2
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)
-
11-02-09, 02:24 PM #3
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
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.
-
12-02-09, 03:06 PM #4
Register to remove this adThanks alot, need this myself really :P
Metal are supreme.
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog