Difference between revisions of "RoM Leveling"
(→Open Bags And Equipt Armor) |
(→Automatic Skill Leveling) |
||
Line 23: | Line 23: | ||
if( player.Level > player.free_counter1 and | if( player.Level > player.free_counter1 and | ||
player.Level == 2 ) then | player.Level == 2 ) then | ||
− | + | send_macro("SetSpellPoint( 4, 2 );"); | |
yrest(1000); | yrest(1000); | ||
− | + | send_macro("SetSpellPoint( 4, 2 );"); | |
elseif( player.Level > player.free_counter1) then | elseif( player.Level > player.free_counter1) then | ||
player.free_counter1 = player.Level; | player.free_counter1 = player.Level; | ||
− | + | send_macro("SetSpellPoint( 4, 2 );"); | |
end | end | ||
</onLeaveCombat></source>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. | </onLeaveCombat></source>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. |
Revision as of 22:40, 7 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>
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
send_macro("SetSpellPoint( 4, 2 );");
yrest(1000);
send_macro("SetSpellPoint( 4, 2 );");
elseif( player.Level > player.free_counter1) then
player.free_counter1 = player.Level;
send_macro("SetSpellPoint( 4, 2 );");
end
</onLeaveCombat>
/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.
<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. You have to download that small lua file and install it within your addon folder.