What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

About Commands

turbocross

New Member
Joined
Mar 23, 2010
Messages
231
Hi, is it possible to get the bot to do a command, like invite player x, only once upon loading?
 
Keep all your questions in one thread homie, your pretty much spamming the dev forum at this point.

Lua.DoString("InviteUnit(\"playername\")");
 
Keep all your questions in one thread homie, your pretty much spamming the dev forum at this point.

Lua.DoString("InviteUnit(\"playername\")");

Exactly, dont spam it too much, think about something big you wanna do, then break it apart and ask - in the same thread - everything you want.

If you want it using a string...

string playerName = "turbocross";

Lua.DoString("InviteUnit(\""+ playerName +"\")");

the original function is used like InviteUnit("turbocross"), so to call it correctly you also need to pass the " on each side, you do this by escaping that character with the \ char, so, \" becomes " when used as a literal.
 
I see, they're all different questions but I'll try to create just one thread then.

Lua.DoString seems to be a big function, is there a list for the commands we can use with the Lua.DoString?

This way I don't have to bugger on the forum so much. :D
 
Lua.DoString will execute WoW LUA commands. It's a good idea if you search a number of WoW LUA related websites to get a better understanding of what can be done through LUA code.
 
Lua.DoString will execute WoW LUA commands. It's a good idea if you search a number of WoW LUA related websites to get a better understanding of what can be done through LUA code.

Oh, yes, I have seen that LUA before but didn't really get into it much.. :o
 
Back
Top