PDA

View Full Version : How should i fix my "mp checker"



melkaan
11-19-2012, 09:06 PM
I downloaded this script that works the first round, but when it comes back after a refill it will refill every 5 min.. how could i fix this? it is really annoying and i cannot bot afk for longer than 5-10min..
Here is the script that i use :

<panel name="Self Healer">
<control name="SpellList">
<item spell="exura vita" mana="120" vcomp="0" vsign="1" vrandom="0" vvalue="20" enabled="1"/>
<item spell="exura gran" mana="65" vcomp="0" vsign="1" vrandom="0" vvalue="65" enabled="1"/>
<item spell="exura" mana="20" vcomp="0" vsign="1" vrandom="0" vvalue="80" enabled="1"/>
</control>
<control name="ItemList">
<item id="237" vcomp="0" vsign="2" vrandom="1" vvalue="350" enabled="1"/>
<item id="266" vcomp="0" vsign="1" vrandom="1" vvalue="50" enabled="0"/>
<item id="268" vcomp="0" vsign="2" vrandom="0" vvalue="100" enabled="0"/>
</control>
</panel>
<panel name="Support">
<control name="HiHealSpell" value="Exura"/>
<control name="HiHealHealth" value="90"/>
<control name="HiHealRange" value="5"/>
<control name="HiHealMana" value="20"/>
<control name="HiHealEnable" value="0"/>
<control name="LoHealSpell" value="Exura Gran"/>
<control name="LoHealHealth" value="65"/>
<control name="LoHealPerc" value="5"/>
<control name="LoHealMana" value="70"/>
<control name="LoHealEnable" value="0"/>
<control name="PotHealID" value="236"/>
<control name="PotHealHealth" value="30"/>
<control name="PotHealRange" value="5"/>
<control name="PotHealEnable" value="0"/>
<control name="ManaRestoreID" value="237"/>
<control name="ManaRestoreMana" value="1060"/>
<control name="ManaRestoreEnable" value="0"/>
</panel>
<panel name="Frag Helper">
<control name="HoldTarg" value="0"/>
<control name="ComboEnable" value="0"/>
</panel>
<panel name="Tools">
<control name="LightEnable" value="1"/>
<control name="XRayEnable" value="0"/>
<control name="ShowLookIDs" value="0"/>
<control name="ShowManaBar" value="1"/>
<control name="ShowBPInfo" value="1"/>
<control name="EnableAntiIdle" value="0"/>
<control name="EnableEatFood" value="1"/>
<control name="EnableAdvancedInfo" value="0"/>
</panel>
<panel name="Combo Options">
<control name="ComboSayLeader" value=""/>
<control name="ComboSayPhrase" value=""/>
<control name="ComboSayEnable" value="0"/>
<control name="ComboShotLeader" value=""/>
<control name="ComboShotType" value="0"/>
<control name="ComboShotEnable" value="0"/>
<control name="ComboExivaLeader" value=""/>
<control name="ComboExivaEnable" value="0"/>
<control name="ComboParaWatch" value="0"/>
<control name="ComboParaEnable" value="0"/>
<control name="ComboPartyWatch" value="0"/>
<control name="ComboPartyEnable" value="0"/>
<control name="ComboAttackSpell" value="Exevo Gran Mas Frigo"/>
<control name="ComboAttackSpellEnable" value="0"/>
<control name="ComboAttackRuneID" value="3155"/>
<control name="ComboAttackRuneEnable" value="0"/>
<control name="ComboFocusType" value="0"/>
</panel>
<panel name="HUD">
<control name="HUDItemList">
<item textColor="9" x="5" y="5" pos="4" checked="1"/>
<item textColor="8" x="5" y="5" pos="6" checked="0"/>
<item textColor="7" x="5" y="16" pos="0" checked="1"/>
<item textColor="6" x="5" y="5" pos="8" checked="0"/>
<item textColor="1" x="5" y="5" pos="10" checked="1"/>
<item textColor="13" x="5" y="5" pos="5" checked="1"/>
<item textColor="13" x="5" y="5" pos="1" checked="1"/>
<item textColor="0" x="0" y="0" pos="0" checked="1"/>
</control>
<control name="HPPercOnClick" value="0"/>
<control name="MPPercOnClick" value="0"/>
<control name="MPPercClickEnable" value="0"/>
<control name="MPPercClickEnable" value="0"/>
</panel>
<panel name="Recent Loot">
<control name="LootMonsterList">
</control>
<control name="DisplaySelectLoot" value="0"/>
<control name="HideNothingLoot" value="0"/>
</panel>
<panel name="Spell Timers">
<control name="ShowHasteTimer" value="1"/>
<control name="ShowManaTimer" value="1"/>
<control name="ShowInvisibleTimer" value="1"/>
<control name="ShowBuffTimers" value="1"/>
</panel>
<panel name="Kill Counters">
<control name="KillCounterBox">
</control>
<control name="DisplaySelectCounters" value="0"/>
<control name="DisplayCountRatios" value="0"/>
</panel>
<panel name="Battle Information">
<control name="ShowTakenDamage" value="1"/>
<control name="ShowDealtDamage" value="1"/>
<control name="ShowTarget" value="1"/>
<control name="ShowFollow" value="1"/>
<control name="ShowExiva" value="1"/>
</panel>
<panel name="Experience Information">
<control name="ShowHourlyExp" value="1"/>
<control name="ShowExpTogo" value="1"/>
<control name="ShowTimeLeft" value="1"/>
</panel>
<panel name="Condition Manager">
<control name="PoisonCureLimit" value="6"/>
<control name="PoisonCureMana" value="20"/>
<control name="PoisonCureEnable" value="0"/>
<control name="DeathCureLimit" value="10"/>
<control name="DeathCureMana" value="40"/>
<control name="DeathCureEnable" value="0"/>
<control name="PhysicalCureLimit" value="5"/>
<control name="PhysicalCureMana" value="30"/>
<control name="PhysicalCureEnable" value="0"/>
<control name="FireCureLimit" value="20"/>
<control name="FireCureMana" value="30"/>
<control name="FireCureEnable" value="0"/>
<control name="EnergyCureLimit" value="15"/>
<control name="EnergyCureMana" value="30"/>
<control name="EnergyCureEnable" value="0"/>
<control name="ParaCureEnable" value="0"/>
<control name="ParaCureMana" value="50"/>
<control name="ParaCureSpell" value="Utani Hur"/>
<control name="HasteCastMana" value="3400"/>
<control name="HasteCastSpell" value="Utani Hur"/>
<control name="HasteCastEnable" value="1"/>
<control name="InvisibleCastMana" value="50"/>
<control name="InvisibleCastEnable" value="0"/>
<control name="ShieldCastMana" value="50"/>
<control name="ShieldCastEnable" value="0"/>
<control name="RecoveryCastEnable" value="0"/>
<control name="RecoveryCastType" value="0"/>
<control name="RecoveryCastMana" value="50"/>
<control name="RecoveryCheckPzEnable" value="1"/>
</panel>
<panel name="Equipment Manager">
<control name="AmmoRefillID" value="3450"/>
<control name="AmmoRefillEnable" value="0"/>
<control name="WeaponRefillID" value="7368"/>
<control name="WeaponRefillEnable" value="0"/>
</panel>
<panel name="Targeting">
<control name="TargetingList">
<item type="Water Elemental" spl="exori vis" rne="3158" chs="2" atk="1" max="98" min="0" prio="2" prox="7" count="1"/>
<item type="Water Elemental" spl="exori vis" rne="3158" chs="2" atk="0" max="100" min="99" prio="2" prox="7" count="1"/>
<item type="Water Elemental" spl="exevo gran mas vis" rne="3202" chs="2" atk="0" max="100" min="0" prio="4" prox="7" count="4"/>
<item type="Quara Mantassin Scout" spl="exori vis" rne="3158" chs="0" atk="1" max="100" min="0" prio="0" prox="7" count="1"/>
</control>
</panel>
<panel name="Walker">
<control name="WaypointList">
<item text="hunting:" tag="255"/>
<item text="Node (32543, 32850, 9)" tag="0"/>
<item text="Node (32547, 32842, 9)" tag="0"/>
<item text="Node (32559, 32833, 9)" tag="0"/>
<item text="Node (32564, 32823, 9)" tag="0"/>
<item text="Node (32560, 32815, 9)" tag="0"/>
<item text="Node (32560, 32805, 9)" tag="0"/>
<item text="Node (32553, 32810, 9)" tag="0"/>
<item text="Node (32540, 32819, 9)" tag="0"/>
<item text="Node (32540, 32827, 9)" tag="0"/>
<item text="Node (32545, 32827, 9)" tag="0"/>
<item text="Node (32540, 32820, 9)" tag="0"/>
<item text="Node (32536, 32810, 9)" tag="0"/>
<item text="Node (32526, 32800, 9)" tag="0"/>
<item text="Node (32519, 32793, 9)" tag="0"/>
<item text="Node (32516, 32789, 9)" tag="0"/>
<item text="Node (32516, 32779, 9)" tag="0"/>
<item text="Node (32514, 32767, 9)" tag="0"/>
<item text="Node (32497, 32769, 9)" tag="0"/>
<item text="Node (32495, 32781, 9)" tag="0"/>
<item text="Node (32497, 32795, 9)" tag="0"/>
<item text="Node (32496, 32804, 9)" tag="0"/>
<item text="Node (32501, 32808, 9)" tag="0"/>
<item text="Node (32511, 32806, 9)" tag="0"/>
<item text="Node (32518, 32812, 9)" tag="0"/>
<item text="Node (32515, 32820, 9)" tag="0"/>
<item text="Node (32511, 32819, 9)" tag="0"/>
<item text="Node (32502, 32817, 9)" tag="0"/>
<item text="Node (32496, 32826, 9)" tag="0"/>
<item text="Node (32512, 32822, 9)" tag="0"/>
<item text="Node (32519, 32832, 9)" tag="0"/>
<item text="Node (32529, 32837, 9)" tag="0"/>
<item text="Node (32537, 32841, 9)" tag="0"/>
<item text="checkMP:" tag="255"/>
<item text="Leaving:" tag="255"/>
<item text="Node (32550, 32856, 9)" tag="0"/>
<item text="Stand (32553, 32860, 9)" tag="1"/>
<item text="portLeave:" tag="255"/>
<item text="Stand (32553, 32860, 9)" tag="1"/>
<item text="GoOut:" tag="255"/>
<item text="Stand (32558, 32860, 9)" tag="1"/>
<item text="Stand (32560, 32860, 8)" tag="1"/>
<item text="Node (32569, 32859, 7)" tag="0"/>
<item text="Node (32577, 32841, 7)" tag="0"/>
<item text="Node (32586, 32834, 7)" tag="0"/>
<item text="Node (32599, 32830, 7)" tag="0"/>
<item text="Node (32612, 32821, 7)" tag="0"/>
<item text="Node (32636, 32818, 7)" tag="0"/>
<item text="Node (32652, 32814, 7)" tag="0"/>
<item text="Node (32658, 32788, 7)" tag="0"/>
<item text="Node (32666, 32787, 7)" tag="0"/>
<item text="Node (32678, 32784, 7)" tag="0"/>
<item text="Stand (32679, 32776, 7)" tag="1"/>
<item text="npcOne:" tag="255"/>
<item text="Node (32629, 32766, 7)" tag="0"/>
<item text="Node (32631, 32751, 7)" tag="0"/>
<item text="Node (32631, 32741, 7)" tag="0"/>
<item text="Stand (32629, 32739, 7)" tag="1"/>
<item text="deport:" tag="255"/>
<item text="Node (32631, 32743, 7)" tag="0"/>
<item text="Stand (32629, 32749, 7)" tag="1"/>
<item text="Node (32627, 32743, 6)" tag="0"/>
<item text="indeport:" tag="255"/>
<item text="Ladder (32626, 32742, 6)" tag="2"/>
<item text="Stand (32624, 32741, 5)" tag="1"/>
<item text="sellVial:" tag="255"/>
<item text="Stand (32626, 32742, 5)" tag="1"/>
<item text="Stand (32632, 32740, 6)" tag="1"/>
<item text="GoldDeposit:" tag="255"/>
<item text="WithdrawMoney:" tag="255"/>
<item text="Ladder (32630, 32742, 6)" tag="2"/>
<item text="Stand (32624, 32741, 5)" tag="1"/>
<item text="BuyingPotion:" tag="255"/>
<item text="Stand (32626, 32742, 5)" tag="1"/>
<item text="dpchecktwo:" tag="255"/>
<item text="leavedp:" tag="255"/>
<item text="Stand (32625, 32749, 6)" tag="1"/>
<item text="Node (32621, 32755, 7)" tag="0"/>
<item text="Node (32621, 32768, 7)" tag="0"/>
<item text="Ladder (32618, 32771, 7)" tag="2"/>
<item text="Node (32624, 32773, 6)" tag="0"/>
<item text="Backpack:" tag="255"/>
<item text="Node (32629, 32781, 6)" tag="0"/>
<item text="Stand (32629, 32785, 6)" tag="1"/>
<item text="Node (32624, 32785, 7)" tag="0"/>
<item text="Node (32613, 32789, 7)" tag="0"/>
<item text="Node (32599, 32797, 7)" tag="0"/>
<item text="Node (32584, 32798, 7)" tag="0"/>
<item text="Node (32580, 32803, 7)" tag="0"/>
<item text="Node (32579, 32812, 7)" tag="0"/>
<item text="Node (32572, 32820, 7)" tag="0"/>
<item text="Node (32570, 32833, 7)" tag="0"/>
<item text="Node (32569, 32850, 7)" tag="0"/>
<item text="Stand (32560, 32860, 7)" tag="1"/>
<item text="Stand (32558, 32860, 8)" tag="1"/>
<item text="Stand (32556, 32860, 9)" tag="1"/>
<item text="Stand (32555, 32860, 9)" tag="1"/>
<item text="PortGo:" tag="255"/>
<item text="Stand (32553, 32860, 9)" tag="1"/>
<item text="Node (32550, 32856, 9)" tag="0"/>
</control>
</panel>
<panel name="Walker Options">
<control name="ropeOption" value="0"/>
<control name="shovelOption" value="0"/>
</panel>
<panel name="Looter">
<control name="LootList" first="0">
<item ID="236" action="1"/>
<item ID="3052" action="1"/>
<item ID="3028" action="1"/>
<item ID="3032" action="1"/>
<item ID="3026" action="1"/>
<item ID="3029" action="1"/>
<item ID="281" action="1"/>
<item ID="9303" action="1"/>
<item ID="5895" action="1"/>
<item ID="3049" action="1"/>
<item ID="11489" action="1"/>
<item ID="237" action="0"/>
<item ID="3035" action="0"/>
<item ID="3031" action="2"/>
<item ID="3052" action="1"/>
</control>
</panel>
<panel name="Pathfinder">
<control name="walkOnFireEnable" value="1"/>
<control name="walkOnFurnitureEnable" value="1"/>
<control name="showDiagnoticEnable" value="0"/>
<control name="walkWithMapclicks" value="0"/>
</panel>
<panel name="Mount">
</panel>
<panel name="Special Areas">
<control name="AreaList">
</control>
</panel>
<panel name="Alarms">
<control name="disAlarm" value="0"/>
<control name="damAlarm" value="0"/>
<control name="lhpAlarm" value="0"/>
<control name="lhpAlarmPercent" value="50"/>
<control name="pmAlarm" value="0"/>
<control name="creatureAlarm" value="0"/>
<control name="attackAlarm" value="1"/>
<control name="playerAlarm" value="0"/>
<control name="playerAlarmLog" value="0"/>
<control name="stuckAlarm" value="1"/>
<control name="alarmPartyIgnore" value="0"/>
</panel>
<panel name="Scripter">
<control name="FoundScriptList">
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
<item/>
</control>
<control name="RunningScriptList">
<item/>
<item/>
<item/>
</control>
</panel>
<panel name="Advertising">
<control name="watchSellingWords" value="item, item2"/>
<control name="watchSellingEnable" value="0"/>
<control name="watchBuyingWords" value="item, item2"/>
<control name="watchBuyingEnable" value="0"/>
<control name="blockLinksEnable" value="0"/>
<control name="reduceSpamEnable" value="0"/>
</panel>

Hendy
11-19-2012, 09:38 PM
You need a lua file with the code in it.

martinpwnage
11-19-2012, 09:41 PM
Yeah this is a .XBST file its only the waypoints/labels and one-liners, you need execute a lua file to go with this that check manas to refill and manas to leave the spawn and such.

melkaan
11-19-2012, 10:01 PM
ye i use this one
----------------Water Elemental Port Hope--------
-------------------------------------------------
Pots = 130 ----- amount to refill
-------------------------------------------------
--END OF SETTINGS--------------------------------



--- DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU'RE DOING ---



registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")


function onWalkerSelectLabel(labelName)
if (labelName == "checkMP") then
if (Self.ItemCount(237) < 58) then
gotoLabel("Leaving")
else
gotoLabel("hunting")
end

elseif (labelName == "dpchecktwo") then
if (Self.ItemCount(237) < 100) then
gotoLabel("deport")
else
gotoLabel("leavedp")
end

elseif (labelName == "PortEnter") then
delayWalker(3500)
Self.UseItemFromGround(32554, 32860, 9)

elseif (labelName == "portleave") then
delayWalker(3500)
Self.UseItemFromGround(32554, 32860, 9)

elseif (labelName == "PortGo") then
delayWalker(3500)
Self.UseItemFromGround(32554, 32860, 9)

elseif (labelName == "GoOut") then
delayWalker(3500)
Self.UseItemFromGround(32554, 32860, 9)


elseif (labelName == "npcOne") then
delayWalker(5000)
Self.SayToNpc ({"hi", "center", "yes"}, 65,10)

elseif (labelName == "sellVial") then
delayWalker(8000)
Self.SayToNpc ({"hi", "vial", "yes"}, 65,10)

elseif (labelName == "GoldDeposit") then
delayWalker(8000)
Self.SayToNpc ({"hi", "deposit all", "yes"}, 65,10)

elseif (labelName == "WithdrawMoney") then
delayWalker(9000)
Self.SayToNpc ({"withdraw 10400", "yes"}, 65,10)

elseif (labelName == "BuyingPotion") then
mp = ((Pots-Self.ItemCount(237)))
setWalkerEnabled(false)
wait(900)
Self.SayToNpc({"hi", "trade"}, 65)
wait(2000)
Self.ShopBuyItem(237, mp)
wait(3000)
Self.ShopBuyItem(237, mp)
wait(3000)
setWalkerEnabled(true)

elseif (labelName == "Backpack") then
dofile("Forgee.lua")
delayWalker(7000)
resetBackpacks()
wait(900)

elseif (labelName == 'deport') then
-- itemid or {itemid, depot backpack}
Self.DepositItems({3049,1})
Self.DepositItems({3052,1})
Self.DepositItems({3028,2})
Self.DepositItems({3032,2})
Self.DepositItems({3026,2})
Self.DepositItems({3029,2})
Self.DepositItems({281,2})
Self.DepositItems({282,2})
Self.DepositItems({236,2})
Self.DepositItems({9303,2})
Self.DepositItems({5895,2})
Self.DepositItems({11489,2})
wait(1500)
end

end

melkaan
11-20-2012, 03:51 PM
anybody knows whats wrong?

Merkz
11-20-2012, 03:59 PM
you might wanna put a delayWalker(1000) in. So the checker part would be



if (labelName == "checkMP") then
delayWalker(1000)
if (Self.ItemCount(237) < 58) then
gotoLabel("Leaving")
else
gotoLabel("hunting")
end

melkaan
11-20-2012, 04:08 PM
Thank you. I will try it now and come back with results :)
Damn, i've studied c++ in school.. its similar but not the same ^^ shame that i cannot make my own scripts now :p

Update: It worked, thank you very much !

Merkz
11-20-2012, 04:17 PM
sweet. glad it worked