Difference between revisions of "RoM Leveling"
(→Automatic Skill Leveling) |
(→Open Bags And Equipt Armor) |
||
Line 44: | Line 44: | ||
player.Level == 2 ) then yrest(2000); | player.Level == 2 ) then yrest(2000); | ||
yrest(1000); | yrest(1000); | ||
− | + | send_macro("UseBagItem( CheckForItem('Abenteurer-Geschenkbeutel') )"); | |
yrest(3000); | yrest(3000); | ||
− | + | send_macro("UseBagItem( CheckForItem('Stoffg\195\188rtel (Geschenk des Pionierdorfs)') )"); | |
player.free_counter1 = player.Level; | player.free_counter1 = player.Level; | ||
− | + | send_macro("SetSpellPoint( 4, 2 );"); | |
yrest(1000); | yrest(1000); | ||
RoMScript("SetSpellPoint( 4, 2 );"); | RoMScript("SetSpellPoint( 4, 2 );"); | ||
elseif( player.Level > player.free_counter1 and | elseif( player.Level > player.free_counter1 and | ||
player.Level == 3 ) then yrest(2000); | player.Level == 3 ) then yrest(2000); | ||
− | + | send_macro("UseBagItem( CheckForItem('Pionier-Geschenkbeutel') )"); | |
yrest(2000); | yrest(2000); | ||
− | + | send_macro("UseBagItem( CheckForItem('Ohrringe (Geschenk des Pionierdorfs)') )"); | |
player.free_counter1 = player.Level; | player.free_counter1 = player.Level; | ||
− | + | send_macro("SetSpellPoint( 4, 2 );"); | |
end | end | ||
</onLeaveCombat></source> | </onLeaveCombat></source> | ||
In that example we use a new ingame macro function [http://forum.runesofmagic.com/showthread.php?t=62431&page=2 CheckForItem] for selecting an ingame item by name. You have to download that small lua file and install it within your addon folder. | In that example we use a new ingame macro function [http://forum.runesofmagic.com/showthread.php?t=62431&page=2 CheckForItem] for selecting an ingame item by name. You have to download that small lua file and install it within your addon folder. |
Revision as of 18: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);
send_macro("UseBagItem( CheckForItem('Abenteurer-Geschenkbeutel') )");
yrest(3000);
send_macro("UseBagItem( CheckForItem('Stoffg\195\188rtel (Geschenk des Pionierdorfs)') )");
player.free_counter1 = player.Level;
send_macro("SetSpellPoint( 4, 2 );");
yrest(1000);
RoMScript("SetSpellPoint( 4, 2 );");
elseif( player.Level > player.free_counter1 and
player.Level == 3 ) then yrest(2000);
send_macro("UseBagItem( CheckForItem('Pionier-Geschenkbeutel') )");
yrest(2000);
send_macro("UseBagItem( CheckForItem('Ohrringe (Geschenk des Pionierdorfs)') )");
player.free_counter1 = player.Level;
send_macro("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.