Error with player.lua
Error with player.lua
Everything was going fine this morn when I was doing mini-games.
Now I create a path, and try to use it (Just waypoints, nothing else) it crashes like this.
Tried it like 7 times.
Error is referencing player.lua. I checked and it has to do with distance of mob.
Now I create a path, and try to use it (Just waypoints, nothing else) it crashes like this.
Tried it like 7 times.
Error is referencing player.lua. I checked and it has to do with distance of mob.
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Error with player.lua
you may need to post your profile so we can check your setup, but I suspect that the MELEE_DISTANCE option in your profile is set to "" or the like.
Re: Error with player.lua
"RoM general" is for topics not related specifiacally to botting. This topic is about the bot. So I'm moving it to the main forum.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Error with player.lua
Thx for moving this Rock5.
Profile:
Profile:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<profile>
<options>
<!-- Try the bot with a new char mage -->
<!-- At the pioneer village. Use demo.xml waypoint file -->
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<option name="USE_HP_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_MANA_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="50" />
<option name="MP_REST" value="15" />
<!-- Shopping options, how many of what do you want to keep in your inventory -->
<option name="HEALING_POTION" value="99" />
<option name="MANA_POTION" value="99" />
<option name="ARROW_QUIVER" value="0" />
<option name="THROWN_BAG" value="0" />
<option name="POISON" value="0" />
<!-- either false or arrow or thrown -->
<option name="RELOAD_AMMUNITION" value="false" /> <!-- false|arrow|thrown -->
<!-- Combat options -->
<option name="COMBAT_TYPE" value="ranged" /> <!-- leave empty or choose ranged/melee if not using class default -->
<option name="COMBAT_RANGED_PULL" value="true" /> <!-- only important for melees -->
<option name="COMBAT_DISTANCE" value="217" />
<option name="MAX_FIGHT_TIME" value="15" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="true" />
<option name="MAX_TARGET_DIST" value="225" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="7" />
<option name="TARGET_LEVELDIF_BELOW" value="50" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="" /> <!-- leave empty to show a list --><!-- Battlefield_Steel fireboot_outpost cot_tele-->
<option name="RETURNPATH" value="" />
<option name="PATH_TYPE" value="waypoints" /> <!-- waypoints | wander -->
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="QUICK_TURN" value="false" />
<!-- Loot settings -->
<option name="LOOT" value="true" />
<option name="LOOT_IN_COMBAT" value="true" />
<option name="LOOT_DISTANCE" value="225" />
<option name="LOOT_PAUSE_AFTER" value="2" /> <!-- probability in % for a short rest -->
<option name="LOOT_ALL" value="true" /> <!-- Loot all nearby dead mobs after combat -->
<!-- Auto selling options when used with player:merchant -->
<option name="INV_AUTOSELL_ENABLE" value="false" /> <!-- true | false -->
<option name="INV_AUTOSELL_FROMSLOT" value="1" /> <!-- 1 = bag 1 slot 1 -->
<option name="INV_AUTOSELL_TOSLOT" value="60" /> <!-- 30 = last slot bag 1 -->
<option name="INV_AUTOSELL_QUALITY" value="white,green" /> <!-- white,green,blue,purple -->
<!-- Harvest options -->
<option name="HARVEST_DISTANCE" value="120" />
<option name="HARVEST_WOOD" value="false" /> <!-- Choose which types to harvest. -->
<option name="HARVEST_HERB" value="false" /> <!-- "true" = harvest, "false" = do not harvest -->
<option name="HARVEST_ORE" value="false" />
<!-- Log out and resurrect settings -->
<option name="LOGOUT_TIME" value="0" /> <!-- in minutes, 0 = timer disabled -->
<option name="LOGOUT_SHUTDOWN" value="true" />
<option name="LOGOUT_WHEN_STUCK" value="true" />
<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
<option name="MAX_DEATHS" value="10" /> <!-- Log out after this many deaths -->
<!-- For more options and documentation see the RoM Bot Wiki: -->
<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot -->
</options>
<friends>
<!-- names of friends we help fighting or enemys we don't want to attack -->
<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer -->
<friend name="MyOtherCharacter1" />
<friend name="Battlefield Bandit" />
<friend name="Elite_Mob_Name1" />
<friend name="Elite_Mob_Name2" />
</friends>
<mobs>
<!-- names of mobs we want to attack -->
<!-- if no names defined we will attack all mobs -->
<!-- <mob name="Pink_Skipper" /> -->
<!-- <mob name="Green_Moss_Monster" /> -->
<mob name="" />
</mobs>
<hotkeys>
<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
<hotkey name="MACRO" modifier="" key="VK_0" />
</hotkeys>
<skills_knight>
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="90" hpper="90" />
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="90" hpper="50" />
<skill name="KNIGHT_MANA_RETURN" hotkey="MACRO" priority="91" manaper="60" />
<skill name="PRIEST_HOLY_AURA" hotkey="MACRO" priority="90" hpper="30" />
<skill name="KNIGHT_HOLY_SHIELD" hotkey="MACRO" priority="90" hpper="40" />
<skill name="KNIGHT_HOLY_STRIKE" hotkey="MACRO" priority="90" />
<skill name="PRIEST_BLESSED_SPRING_WATER" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="KNIGHT_RESOLUTION" hotkey="MACRO" priority="90" inbattle="false" />
<skill name="KNIGHT_HOLY_SEAL" hotkey="MACRO" priority="90" />
<skill name="KNIGHT_ENHANCED_ARMOR" hotkey="MACRO" priority="90" />
<skill name="KNIGHT_SHIELD_OF_ATONEMENT" hotkey="MACRO" priority="70" />
<skill name="KNIGHT_SHIELD_OF_DISCIPLINE" hotkey="MACRO" priority="40" />
</skills_knight>
<skills_mage>
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="90" hpper="80" />
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="100" hpper="50" />
<skill name="PRIEST_HOLY_AURA" hotkey="MACRO" priority="100" hpper="40" />
<skill name="MAGE_FLAME" hotkey="MACRO" priority="80" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="80" />
<skill name="MAGE_PLASMA_ARROW" hotkey="MACRO" priority="81" />
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="80" />
<skill name="PRIEST_RISING_TIDE" hotkey="MACRO" priority="80" />
<skill name="MAGE_INTENSIFICATION" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_FIRE_WARD" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_ESSENCE_OF_MAGIC" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="PRIEST_BLESSED_SPRING_WATER" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="30" inbattle="false" />
<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="MACRO" priority="30" inbattle="false" />
</skills_mage>
<skills_priest>
<skill name="PRIEST_REGENERATE" hpper="90" modifier="" hotkey="VK_1" priority="90" />
<skill name="PRIEST_URGENT_HEAL" hpper="50" modifier="" hotkey="VK_2" priority="80" />
<skill name="PRIEST_RISING_TIDE" hotkey="VK_3" priority="90" />
<skill name="PRIEST_BONE_CHILL" pullonly="true" hotkey="VK_4" priority="90" />
<skill name="PRIEST_BLESSED_SPRING_WATER" rebuffcut="6" modifier="" hotkey="VK_5" priority="40" inbattle="false" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_6" priority="20" rebuffcut="6" inbattle="false" />
<skill name="KNIGHT_ENHANCED_ARMOR" modifier="" hotkey="VK_8" priority="90" rebuffcut="6" inbattle="true" />
<skill name="PRIEST_GRACE_OF_LIFE" rebuffcut="6" modifier="" hotkey="VK_7" priority="20" inbattle="false" />
</skills_priest>
<onLoad>
if player.Class1 == 1 or player.Class1 == 3 or player.Class1 == 6 or player.Class1 == 7 then
settings.profile.options.COMBAT_TYPE = "melee"
settings.profile.options.COMBAT_RANGED_PULL = "false"
settings.profile.options.COMBAT_DISTANCE = "95"
cprintf(cli.lightblue,"Combat Type changed to Melee.\nCombat Pull changed to FALSE\nCombat Distance changed to 95\n");
else
settings.profile.options.COMBAT_TYPE = "ranged"
settings.profile.options.COMBAT_RANGED_PULL = "true"
settings.profile.options.COMBAT_DISTANCE = "200"
cprintf(cli.lightblue,"Combat Type changed to Ranged.\nCombat Pull changed to TRUE\nCombat Distance changed to 215\n");
end
</onLoad>
<onDeath>
</onDeath>
<onLeaveCombat>
local dura = inventory:getMainHandDurability();
printf("Durability: %s\n", dura);
if inventory:itemTotalCount("Simple Repair Hammer") >= 1 then
if ( 90 > dura ) then
inventory:useItem("Simple Repair Hammer");
RoMScript("PickupEquipmentItem(15)")
printf("Weapon repaired.\n");
else
printf("Weapon ok, keep going.\n");
end
else
printf("Not enough hammers to repair... Good luck !\n");
end
<!-- Housekeeper Buffs -->
useGoodie("speed")
useGoodie("defense")
useGoodie("luck")
if player.Class1 == 1 or player.Class1 == 3 or player.Class1 == 6 or player.Class1 == 7 then
-- Not a caster
useGoodie("patt3")
else -- End Non-Caster Buffs
-- Caster Buffs
useGoodie("matt3")
useGoodie("casting")
useGoodie("mdmg2")
end -- End Caster Buffs
player:lootAll()
if( os.difftime(os.time(), player.BotStartTime) > 10800 ) then
local _tmpTime = os.difftime(os.time(), player.BotStartTime)/3600
printf("Running for: %s hours, Going to logout in house.\n", tostring(_tmpTime));
loadPaths("logout");
end;
</onLeaveCombat>
<onLevelup>
</onLevelup>
<onSkillCast>
</onSkillCast>
</profile>
-
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Error with player.lua
well...that all looks ok...are you modifying COMBAT_DISTANCE in your waypoint file at all?
Re: Error with player.lua
Nope.
Just basic Waypoints.
Just basic Waypoints.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-25974" z="29945" y="-9"> </waypoint>
<!-- # 2 --><waypoint x="-25934" z="30186" y="0"> </waypoint>
<!-- # 3 --><waypoint x="-25721" z="30126" y="4"> </waypoint>
<!-- # 4 --><waypoint x="-25519" z="30070" y="-1"> </waypoint>
<!-- # 5 --><waypoint x="-25297" z="30184" y="-3"> </waypoint>
<!-- # 6 --><waypoint x="-25041" z="30461" y="0"> </waypoint>
<!-- # 7 --><waypoint x="-24923" z="30593" y="13"> </waypoint>
<!-- # 8 --><waypoint x="-24885" z="30751" y="55"> </waypoint>
<!-- # 9 --><waypoint x="-24870" z="30871" y="83"> </waypoint>
<!-- # 10 --><waypoint x="-24835" z="31018" y="110"> </waypoint>
<!-- # 11 --><waypoint x="-24831" z="31166" y="161"> </waypoint>
<!-- # 12 --><waypoint x="-24935" z="31100" y="179"> </waypoint>
<!-- # 13 --><waypoint x="-24896" z="31238" y="176"> </waypoint>
<!-- # 14 --><waypoint x="-24834" z="31309" y="177"> </waypoint>
<!-- # 15 --><waypoint x="-24733" z="31217" y="162"> </waypoint>
<!-- # 16 --><waypoint x="-24707" z="31061" y="124"> </waypoint>
<!-- # 17 --><waypoint x="-24749" z="30844" y="72"> </waypoint>
<!-- # 18 --><waypoint x="-24797" z="30621" y="18"> </waypoint>
<!-- # 19 --><waypoint x="-24615" z="30517" y="-3"> </waypoint>
<!-- # 20 --><waypoint x="-24582" z="30372" y="-6"> </waypoint>
<!-- # 21 --><waypoint x="-24644" z="30270" y="-1"> </waypoint>
<!-- # 22 --><waypoint x="-24703" z="30108" y="0"> </waypoint>
<!-- # 23 --><waypoint x="-24836" z="30186" y="1"> </waypoint>
<!-- # 24 --><waypoint x="-24945" z="30218" y="0"> </waypoint>
<!-- # 25 --><waypoint x="-25194" z="30183" y="-7"> </waypoint>
<!-- # 26 --><waypoint x="-25293" z="30081" y="-5"> </waypoint>
<!-- # 27 --><waypoint x="-25382" z="29934" y="-1"> </waypoint>
<!-- # 28 --><waypoint x="-25374" z="29817" y="-2"> </waypoint>
<!-- # 29 --><waypoint x="-25537" z="29713" y="24"> </waypoint>
<!-- # 30 --><waypoint x="-25525" z="29544" y="14"> </waypoint>
<!-- # 31 --><waypoint x="-25897" z="29503" y="21"> </waypoint>
<!-- # 32 --><waypoint x="-26000" z="29821" y="-18"> </waypoint>
</waypoints>
Re: Error with player.lua
profile onload has
use
also
use
I know in your actual profile options it has " " but that is purely the way the table works, when changing the info by using " " you are making it a string and not boolean or numerical.
Code: Select all
settings.profile.options.COMBAT_DISTANCE = "95"
settings.profile.options.COMBAT_DISTANCE = "200"
Code: Select all
settings.profile.options.COMBAT_DISTANCE = 95
settings.profile.options.COMBAT_DISTANCE = 200
also
Code: Select all
settings.profile.options.COMBAT_RANGED_PULL = "false"
settings.profile.options.COMBAT_RANGED_PULL = "true"
Code: Select all
settings.profile.options.COMBAT_RANGED_PULL = false
settings.profile.options.COMBAT_RANGED_PULL = true
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Error with player.lua
Will try that now.
Weird cause it was working fine this morn.
BRB
Weird cause it was working fine this morn.
BRB
Re: Error with player.lua
Yup that fixed it.
Thx Lisa, you Rock !
Thx Lisa, you Rock !
Who is online
Users browsing this forum: No registered users and 0 guests