Difference between revisions of "RoM Functions"
From SolarStrike wiki
(→Functionlist) |
(→Functionlist) |
||
Line 1: | Line 1: | ||
= Functionlist = | = Functionlist = | ||
− | <source lang="lua"> | + | <source lang="lua">changeProfileOption(_option, _value);</source> |
change profile options and print values in MM protocol | change profile options and print values in MM protocol | ||
− | <source lang="lua"> | + | <source lang="lua">openGiftbag( [[_player_level] , _maxslot] );</source> |
− | open giftbag (at the moment level 1-10) | + | open giftbag (at the moment level 1-10), items for mage and priest |
<source lang="lua">addMessage( message );</source> | <source lang="lua">addMessage( message );</source> | ||
Send a message to the ingame system chat channel. | Send a message to the ingame system chat channel. | ||
Line 11: | Line 11: | ||
local ret1, ret2 = RoMScript( "GetPlayerWorldMapPos();" );</source> | 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. | 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"> | + | <source lang="lua">sendMacro( _script );</source> |
Same as "RoMScript. Additionally you will see a message in the MM window. | Same as "RoMScript. Additionally you will see a message in the MM window. |
Revision as of 03:49, 10 September 2009
Functionlist
changeProfileOption(_option, _value);
change profile options and print values in MM protocol
openGiftbag( [[_player_level] , _maxslot] );
open giftbag (at the moment level 1-10), items for mage and priest
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.
sendMacro( _script );
Same as "RoMScript. Additionally you will see a message in the MM window.