Difference between revisions of "RoM Leveling"

From SolarStrike wiki
Jump to: navigation, search
(Automatic Skill Leveling)
(Open Bags and equipt amore)
Line 35: Line 35:
 
The first number means the tab from the skill book. Numer 4 addresses the third tab. :-) The second number is the number of the skill on that page.
 
The first number means the tab from the skill book. Numer 4 addresses the third tab. :-) The second number is the number of the skill on that page.
  
= Open Bags and equipt amore =
+
= Open Bags And Equipt Armor =
 
You can automaticly open the present bags and equipt armor from the bags.  
 
You can automaticly open the present bags and equipt armor from the bags.  
  

Revision as of 20:51, 6 September 2009

Connecting waypoint files

For automatic leveling, you have to connect different waypoint files. Starting from one waypoint file, you change to the next, if you reach a given level.

You start at the spawn point in Pionier Village and walk to your first botting place:

<waypoints type="TRAVEL" >
   <!-- # 3 --><waypoint x="-3779" z="-8480"></waypoint>
   ...
   <!-- # 8 --><waypoint x="-3034" z="-9034">load_paths("l2-3.xml");</waypoint>
</waypoints>
If you reach your first botting place, you load the waypoint file for that place with the command
load_paths( [waypointfile] | [returnpath] );

You can do that also if you reach a given level, to go to the next botting place:

	<!-- #14 --><waypoint x="-1931" z="-9750">
	if( player.Level > 4) then
		load_paths("l5-6.xml");
  	end	
	</waypoint>

Automatic Skill Leveling

Use the <onLeaveCombat> event in your profile to automatic level up your skills

<onLeaveCombat>
		if( player.Level > player.free_counter1 and
		    player.Level == 2 ) then
			RoMScript("SetSpellPoint( 4, 2 );");
			yrest(1000);
			RoMScript("SetSpellPoint( 4, 2 );");
		elseif( player.Level > player.free_counter1) then
			player.free_counter1 = player.Level;
			RoMScript("SetSpellPoint( 4, 2 );");
	  	end	
</onLeaveCombat>
If you want to test the skill numbers you need, you can enter the following script into the ingame chat. It will print the skill name for the selected skill number into the chat.
/script _SkillName = GetSkillDetail(4,2); SendSystemChat(_SkillName);

The first number means the tab from the skill book. Numer 4 addresses the third tab. :-) The second number is the number of the skill on that page.

Open Bags And Equipt Armor

You can automaticly open the present bags and equipt armor from the bags.

That's only an example what you can do now. That funtionality will change within the bot in the next time.

<source lang="lua"><onLeaveCombat> if( player.Level > player.free_counter1 and

   player.Level == 2 ) then yrest(2000);
   	yrest(1000);

RoMScript("UseBagItem( CheckForItem('Abenteurer-Geschenkbeutel') )"); yrest(3000); RoMScript("UseBagItem( CheckForItem('Stoffg\195\188rtel (Geschenk des Pionierdorfs)') )"); player.free_counter1 = player.Level; RoMScript("SetSpellPoint( 4, 2 );"); yrest(1000); RoMScript("SetSpellPoint( 4, 2 );"); elseif( player.Level > player.free_counter1 and

   player.Level == 3 ) then yrest(2000);

RoMScript("UseBagItem( CheckForItem('Pionier-Geschenkbeutel') )"); yrest(2000); RoMScript("UseBagItem( CheckForItem('Ohrringe (Geschenk des Pionierdorfs)') )"); player.free_counter1 = player.Level; RoMScript("SetSpellPoint( 4, 2 );"); end</onLeaveCombat> In that example we use a new ingame macro function CheckForItem for selecting an ingame item by name.