RoM Variables

From SolarStrike wiki
Jump to: navigation, search

Player Variables[edit]

Player User Fields[edit]

Thats only a small selection of some important variables. Please look at the coding if you want more.

self.free_field1 = nil;				-- free field for user use
self.free_field2 = nil;				-- free field for user use
self.free_field3 = nil;				-- free field for user use
self.free_counter1 = 0;				-- free counter for user use
self.free_counter2 = 0;				-- free counter for user use
self.free_counter3 = 0;				-- free counter for user use		
self.free_flag1 = false;			-- free flag for user use
self.free_flag2 = false;			-- free flag for user use
self.free_flag3 = false;			-- free flag for user use		


General Player Fields[edit]

example:
if( player.Level > 9 ) then
   printf("do some other coding stuff");
end;


player.BotStartTime
player.BotStartTime_nr

Bot start time. 'player.BotStartTime' will be reseted if you pause the bot by pressing 'END'. 'player.BotStartTime_nr' will not be reseted.

example:
if( os.difftime(os.time(), player.BotStartTime) > 3600 ) then
   printf("do some other coding stuff");
end;

Player Fight and Target Variables[edit]

player.Fights

Counter for the number of the fights.

example:
if( player.Fights-player.free_counter1 > 300 ) then
    player.free_counter1 = player.Fights;
    loadPaths("l4-5.xml");
end


player.mobs[mobname]

Counter for the number of the fights per mob

example:
if( player.mobs["Fungus"] > 25 ) then
    printf("do some other coding stuff");
end

Inventory Variables[edit]

The most inventory fields are accessible by using the inventory functions. Fore more informations about that see the inventory function.