Difference between revisions of "RoM Leveling"

From SolarStrike wiki
Jump to: navigation, search
(Connecting waypoint files)
Line 12: Line 12:
 
You can do that also if you reach a given level, to go to the next botting place:
 
You can do that also if you reach a given level, to go to the next botting place:
 
<source lang="xml"> <!-- #14 --><waypoint x="-1931" z="-9750">
 
<source lang="xml"> <!-- #14 --><waypoint x="-1931" z="-9750">
if( player.Level > 2) then
+
if( player.Level > 4) then
load_paths("l3_goto_4_baeren");
+
load_paths("l5-6.xml");
 
   end
 
   end
 
</waypoint></source>
 
</waypoint></source>
 +
 
= Automatic Skill Leveling =
 
= Automatic Skill Leveling =
 
Use the <onLeaveCombat> event in your profile to automatic level up your skills
 
Use the <onLeaveCombat> event in your profile to automatic level up your skills

Revision as of 20:49, 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 number, 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);

Open Bags and equipt amore

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.