Difference between revisions of "RoM Functions"
From SolarStrike wiki
(→Functionlist) |
|||
Line 5: | Line 5: | ||
open giftbag (at the moment level 1-10) | open giftbag (at the moment level 1-10) | ||
<source lang="lua">addMessage( message );</source> | <source lang="lua">addMessage( message );</source> | ||
− | + | Send a message to the ingame system chat channel. | |
+ | <source lang="lua">RoMScript( _script ); | ||
+ | |||
+ | example: | ||
+ | local ret1, ret2 = RoMScript( "GetPlayerWorldMapPos();" );</source> | ||
+ | Send a macro to the client and execute it ingame by pressing the MACRO hotkey. There are up to 10 return values possible. | ||
<source lang="lua">send_macro( _script );</source> | <source lang="lua">send_macro( _script );</source> | ||
− | + | Same as "RoMScript. Additionally you will see a message in the MM window. |
Revision as of 19:46, 8 September 2009
Functionlist
change_profile_option(_option, _value);
change profile options and print values in MM protocol
open_giftbag( [[_player_level] , _maxslot] );
open giftbag (at the moment level 1-10)
addMessage( message );
Send a message to the ingame system chat channel.
RoMScript( _script );
example:
local ret1, ret2 = RoMScript( "GetPlayerWorldMapPos();" );
Send a macro to the client and execute it ingame by pressing the MACRO hotkey. There are up to 10 return values possible.
send_macro( _script );
Same as "RoMScript. Additionally you will see a message in the MM window.