Re: DoD (Dungen of Dalanis) 1. boss farming Waypoint
Posted: Sat Feb 25, 2012 10:29 am
yes but doesnt sell anything else food and stuff in bag 1 and 2
MicroMacro home
https://www.solarstrike.net/phpBB3/
changeProfileOption("INV_AUTOSELL_FROMSLOT", 60)
changeProfileOption("INV_AUTOSELL_TOSLOT", 240)
Slots = 175
dura = 0.9
instancebuff = false
--==New on Ver. 0.2==--
Instancereset = false
--==New on Ver. 0.3==--
changeProfileOption("EGGPET_ENABLE_ASSIST", "false")
changeProfileOption("INV_AUTOSELL_ENABLE", "true")
Grassland_Mix = false
Magic_Lute = false
Magic_Tambourine = false
Magic_Guitar = false
your character will only go to the dealer if his have the full bags in your case (175)change profile option ("INV_AUTOSELL_FROMSLOT", 121)
change profile option ("INV_AUTOSELL_TOSLOT", 240)
Slots = 175
change profile option ("INV_AUTOSELL_ENABLE", "true")
you not longer needs to specify the backpack size<option name="DEBUG_AUTOSELL" value="true" />
<option name="INV_AUTOSELL_ENABLE" value="true" />
<option name="INV_AUTOSELL_FROMSLOT" value="120" />
<option name="INV_AUTOSELL_TOSLOT" value="180" />
<option name="INV_AUTOSELL_QUALITY" value="white,green,blue,purple,orange,gold" />
<option name="INV_AUTOSELL_IGNORE" value="" /> --must have the same language as the game for me (FR)
<option name="INV_AUTOSELL_TYPES" value="" /> --must have the same language as the game for me (FR)
<option name="INV_AUTOSELL_TYPES_NOSELL" value="Recettes" /> --must have the same language as the game for me (FR)
<option name="INV_AUTOSELL_NOSELL_STATSNUMBER" value="6" />
changeProfileOption("INV_AUTOSELL_FROMSLOT", 120)
changeProfileOption("INV_AUTOSELL_TOSLOT", 180)
dura = 99
instancebuff = true
--==New on Ver. 0.2==--
Instancereset = true
--==New on Ver. 0.3==--
changeProfileOption("EGGPET_ENABLE_ASSIST", "false")
changeProfileOption("INV_AUTOSELL_ENABLE", "true")
Grassland_Mix = true
Magic_Lute = false
Magic_Tambourine = false
Magic_Guitar = false
I can not be foundkilbord wrote:all settings are right .... can i just get the old version 0.3 back plz
look into your private messagesAlterEgo95 wrote:Hey
I´ve tried to follow all steps, I have.....
set in profile the Char. nameabron1 wrote:first problem is that they don't help each other fight mobs
Code: Select all
<friend name="CHAR NAME" />
set in profile TARGET LEVEL DIFFERENCE ABOVE/BELOW to 70/70 xDabron1 wrote:second is that the warden pets skills are not on when they enter the instance i downloaded the new verson of MM so i have the lastest download i have my all my party options set to true and they don't attack the boss i can my elite factor is 1000 and they still don't fight the boss i have all the user functions listed in the main post and i just can't get the bots to be in sync. i been trying to read up on what to do but i am tapped out...maybe i have event monitor set up wrong because i wasn't sure what to edit and i read at post over and over. sorry for the wall of text
Code: Select all
<option name="TARGET_LEVELDIF_ABOVE" value="70" />
<option name="TARGET_LEVELDIF_BELOW" value="70" />
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="50" />
<option name="USE_HP_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_MANA_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_PHIRIUS_POTION" value="true" /> <!-- false | true if you want to use the Phirus Potions -->
<option name="PHIRIUS_MP_LOW" value="40" />
<option name="PHIRIUS_HP_LOW" value="60" />
<!-- Rest if HP or Mana is below that level -->
<option name="HP_REST" value="15" />
<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="0" />
<option name="MANA_POTION" value="0" /> <!-- set to "0" if not required to buy -->
<option name="ARROW_QUIVER" value="0" /> <!-- set to "0" if not required to buy -->
<option name="THROWN_BAG" value="0" /> <!-- set to "0" if not required to buy -->
<option name="POISON" value="0" /> <!-- set to "0" if not required to buy -->
<!-- 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="200" />
<option name="MAX_FIGHT_TIME" value="5" /> <!-- Max time without damage before break -->
<option name="DOT_PERCENT" value="90" />
<option name="ANTI_KS" value="false" />
<option name="MAX_TARGET_DIST" value="225" />
<!-- Attack monsters 3 levels above or 10 below your level -->
<option name="TARGET_LEVELDIF_ABOVE" value="70" />
<option name="TARGET_LEVELDIF_BELOW" value="70" />
<!-- Waypoint and movement settings -->
<option name="WAYPOINTS" value="main.xml" /> <!-- leave empty to show a list -->
<option name="RETURNPATH" value="main_return.xml" />
<option name="PATH_TYPE" value="waypoints" /> <!-- waypoints | wander -->
<option name="WANDER_RADIUS" value="0" />
<option name="WAYPOINT_DEVIATION" value="0" />
<option name="QUICK_TURN" value="true" />
<!-- Loot settings -->
<option name="LOOT" value="true" />
<option name="LOOT_ALL" value="true" /> <!-- Loot all nearby dead mobs after combat -->
<option name="LOOT_IN_COMBAT" value="true" />
<option name="LOOT_DISTANCE" value="500" />
<option name="LOOT_PAUSE_AFTER" value="0" /> <!-- probability in % for a short rest -->
<!-- Auto selling options when used with player:merchant -->
<option name="INV_AUTOSELL_ENABLE" value="true" /> <!-- true | false -->
<option name="INV_AUTOSELL_FROMSLOT" value="61" /> <!-- 1 = bag 1 slot 1 -->
<option name="INV_AUTOSELL_TOSLOT" value="180" /> <!-- 30 = last slot bag 1 -->
<option name="INV_AUTOSELL_IGNORE" value="IV" />
<option name="INV_AUTOSELL_NOSELL_DURA" value="110" />
<option name="INV_AUTOSELL_QUALITY" value="white,green,blue,purple" /> <!-- white,green,blue,purple -->
<!-- Eggpet options -->
<option name="EGGPET_ENABLE_CRAFT" value="false" /> <!-- If using same slot for assist and craft, onlt 1 can be enabled. -->
<option name="EGGPET_CRAFT_SLOT" value="3" />
<option name="EGGPET_ENABLE_ASSIST" value="false" />
<option name="EGGPET_ASSIST_SLOT" value="3" />
<option name="EGGPET_CRAFT_RATIO" value="1:1:1" /> <!-- mining:woodworking:herbalism ratio to produce. -->
<option name="EGGPET_CRAFT_INDEXES" value="" /> <!-- override auto craft index for mining,woodworking,herbalism eg. "2,,"-->
<!-- Log out and resurrect settings -->
<option name="LOGOUT_TIME" value="0" /> <!-- in minutes, 0 = timer disabled -->
<option name="LOGOUT_SHUTDOWN" value="false" />
<option name="LOGOUT_WHEN_STUCK" value="true" />
<option name="CLOSE_WHEN_STUCK" value="true" />
<option name="RES_AFTER_DEATH" value="true" />
<option name="MAX_DEATHS" value="10" /> <!-- Log out after this many deaths -->
<!-- Party Bot options -->
<!-- <option name="PARTY" value="true" /> -->
<!-- <option name="PARTY_ICONS" value="true" /> -->
<!-- <option name="PARTY_INSTANCE" value="true" /> -->
<!-- Healing options -->
<!-- <option name="HEALER_FIGHT" value="true" /> --> <!-- For party bot if you want healer to also fight -->
<!-- pvp -->
<!--option name="PVP" value="true" /> --> <!-- To enable PVP, with this set to true it will auto attack any players with red names -->
<!-- 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="MyOtherCharacter2" />
<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="Okander Mallen" />
<mob name="" />
<mob name="" />
</mobs>
<hotkeys>
<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
<hotkey name="MACRO" key="VK_0" />
</hotkeys>
<!-- define your skills depending from your actual primary class -->
<!-- see the example for a priest/mage -->
<!-- delete skills you don't have or don't want to use. -->
<!-- For more skills to use see /database/skills.xml -->
<!-- demo skills for LvL 1 character for all classes -->
<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
<skills_mage>
<skill name="MAGE_FLAME" hotkey="MACRO" priority="90" autouse="true" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="70" autouse="false"/>
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="80" autouse="false"/>
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="80" inbattle="true" autouse="true"/>
<skill name="MAGE_ELEMENTAL_CATALYST" hotkey="MACRO" priority="80" inbattle="false" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="100" inbattle="false" autouse="true"/>
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="70" inbattle="true" autouse="false"/>
</skills_mage>
<skills_priest>
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="105" hpper="70" autouse="true" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="90" hpper="80" autouse="true" />
<skill name="PRIEST_HOLY_AURA" hotkey="MACRO" priority="100" inbattle="true" autouse="true" hpper="45" />
</skills_priest>
<onLoad>
setwindow(206879)
</onLoad>
<onDeath><![CDATA[
-- Additional Lua code to execute on death
-- pauseOnDeath(); -- Stop the script
-- player:logout(); -- logout
]]></onDeath>
<onLeaveCombat>
player:lootAll()
</onLeaveCombat>
<onLevelup><![CDATA[
-- Additional Lua code to execute after having a levelup
-- and levelup the skills for a new character (mage or priest recommended)
-- e.g. sendMacro("SetSpellPoint(_tabnr, _skillnr);"); would levelup a skill
]]></onLevelup>
<onSkillCast>
</onSkillCast>
<onHarvest><![CDATA[
-- Additional Lua code to execute directly before the actual harvesting takes place.
-- Note: arg1 contains the object to be harvested.
-- i.e. arg1.Name will be the name of the node you are about to harvest
-- If this snippet returns 'false', the node will *not* be harvested.
-- All other return values result in the player attempting to harvest the node.
-- Note that returning 'false' here breaks out of harvesting completely;
-- You will not attempt to harvest other nearby nodes instead.
]]></onHarvest>
<onUnstickFailure><![CDATA[
-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
]]></onUnstickFailure>
</profile>
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
<!--**************************************************************************************************************************************************************
******************************************************************************************************************************************************************
** MAIN.XML **
** Waypoint Create by Xm3n **
** **
** Thanks to Lisa, M4gm4, and all other tester **
** **
******************************************************************************************************************************************************************
***************************************************************************************************************************************************************-->
<!-- ##Version 0.3.1asu Beta## Options
##################################################################################################################################################################
## CHANGE FOLOW OPTION ##
## ##
## on line 48 changeProfileOption("INV_AUTOSELL_ENABLE", "true") set to true if you sell bag contents ##
## 38 changeProfileOption("INV_AUTOSELL_FROMSLOT", xx) 1-180 (1-30 is the first bag 1-60 sec. ...) ##
## 39 changeProfileOption("INV_AUTOSELL_TOSLOT", xxx) 1-180 (1-30 is the first bag 1-60 sec. ...) ##
## 47 changeProfileOption("EGGPET_ENABLE_ASSIST", "true") Set to true if you wanna use your pet ##
## 40 dura = xxx //100% = 1 // 50% = 0.5 // 10% = 0.1 ##
## 41 instancebuff = true true= On / false = Off get a buff if you open Coffin ##
## 44 Instancereset = true if you want to farme DoD solo and no wait to ##
## reset instance set this to true ##
## ##
## exp: Main char. go DoD and any other char is ##
## in house or miller ##
## ##
## 50 Grassland_Mix = true Set to true if you want use Grassland Mix ##
## 51-53 Magic_xxx = true Set to true if you want use the magic_instruments ##
## ##
## Set to party_true if you want use the magic_instruments ##
## form party member ##
## ##
## Set to false if you want to disable ##
###############################################################################################################################################################-->
changeProfileOption("INV_AUTOSELL_FROMSLOT", 120)
changeProfileOption("INV_AUTOSELL_TOSLOT", 180)
dura = 0.9
instancebuff = true
--==New on Ver. 0.2==--
Instancereset = true
--==New on Ver. 0.3==--
changeProfileOption("EGGPET_ENABLE_ASSIST", "false")
changeProfileOption("INV_AUTOSELL_ENABLE", "true")
Grassland_Mix = true
Magic_Lute = false
Magic_Tambourine = false
Magic_Guitar = false
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++..==Start Functions==..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###################
###!!!WARNING!!!###
###################
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++DONT CHANGE THE FOLLOW LINE+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
changeProfileOption("AUTO_ELITE_FACTOR", 1000)
changeProfileOption("HARVEST_DISTANCE", 150)
Count = 0
Zid = 0
BuffCount = 0
srun = 1
if not eventparty then
function eventparty()
checkeventparty()
end
end
if not checkeventparty then
--cprintf(cli.red, "\t\t\t !!!Fatal error!!!\nMicroMacro Stop\nPlease instal the user function \"userfunction_partymonitoring.lua\" \n")
function checkeventparty()
close()
end
end
function Boss_buff()
if useGoodie then
if Grassland_Mix == true then
if inventory:itemTotalCount(206874) > 1 then
useGoodie(206874)
end
else
cprintf(cli.yellow, "Please instal the user function \"useGoodie\" \n")
end
end
if Magic_Tambourine == true then
if inventory:itemTotalCount(204463) >= 1 then
inventory:useItem(204463) -- 3 days
yrest(4000)
elseif inventory:itemTotalCount(204571) >= 1 then
inventory:useItem(204571) -- 7 days
yrest(4000)
elseif inventory:itemTotalCount(206420) >= 1 then
inventory:useItem(206420) -- 30 days
yrest(4000)
end
elseif Magic_Tambourine == party_true then
yrest(4000)
end
if Magic_Lute == true then
if inventory:itemTotalCount(204544) >=1 then
inventory:useItem(204544) -- 3 days
yrest(4000)
elseif inventory:itemTotalCount(204570) >= 1 then
inventory:useItem(204570) -- 7 days
yrest(4000)
elseif inventory:itemTotalCount(206419) >= 1 then
inventory:useItem(206419) -- 30 days
yrest(4000)
end
elseif Magic_Lute == party_true then
yrest(4000)
end
if Magic_Guitar == true then
if inventory:itemTotalCount(204461) >= 1 then
inventory:useItem(204461) -- 3 days
yrest(4000)
elseif inventory:itemTotalCount(206418) >= 1 then
inventory:useItem(206418) -- 7 days
yrest(4000)
elseif inventory:itemTotalCount(204569) >= 1 then
inventory:useItem(204569) -- 30 days
yrest(4000)
end
elseif Magic_Guitar == party_true then
yrest(4000)
end
end
function Countround()
Count = Count+1;
cprintf(cli.pink, "Round Nbr: %s\n\n", Count)
end
function checkdura()
if dura > inventory:getMainHandDurability() then
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
local bcount = inventory:getItemCount(0)
if( 5 > bcount ) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
end
function findzi()
keyboardHold( settings.hotkeys.MOVE_FORWARD.key )
yrest(500)
keyboardRelease( settings.hotkeys.MOVE_FORWARD.key )
waitForLoadingScreen(10)
yrest(500)
local getinlvl = sendMacro('GetInstanceLevel()')
if getinlvl == ("easy") then
zid = 128
elseif getinlvl == ("normal") then
zid = 127
elseif getinlvl == ("hard") then
zid = RoMScript("GetZoneID()");
sendMacro('SetInstanceLevel("easy")');
cprint(cli.blue, "Instance Lvl change to easy\n")
end
end
function getbuff()
player:harvest(114982)
player:update()
if player:hasBuff(506432) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("havebuff"))
else
BuffCount = BuffCount+1
if BuffCount > 8 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("havebuff"))
end
end
end
cprintf(cli.pink, "\n\n\nWaypoint create by Xm3n\n\n\n")
function gcheck()
local _go = false
local groupnumber = RoMScript("GetNumPartyMembers()")
if groupnumber == 0 then
_go = false
else
_go = true
end
return _go
end
function ireset()
local EventPartyName = "DoD"
local readycheck1 = RoMScript("UnitName('party1')")
local readycheck2 = RoMScript("UnitName('party2')")
local readycheck3 = RoMScript("UnitName('party3')")
local readycheck4 = RoMScript("UnitName('party4')")
local readycheck5 = RoMScript("UnitName('party5')")
local groupnumber = RoMScript("GetNumPartyMembers()")
if Instancereset == true then
SlashCommand("ILG destroy")
yrest(500)
SlashCommand("ILG inv")
elseif gcheck() == true then
repeat
until checkparty(400) == true
yrest(200)
SlashCommand("ILG destroy")
yrest(500)
SlashCommand("ILG inv")
end
yrest(200)
if 1 == srun and 0 == groupnumber then
srun = srun+1
elseif gcheck() == false then
cprintf(cli.red, "You must wait 30min to reset instance or groupe a player\n")
local _time = os.time()
repeat
until gcheck() == true or (os.time() - _time > 1800)
srun = 1
end
if not Instancereset == true then
eventparty(EventPartyName, "start")
yrest(500)
if readycheck1 == nil then
pname1 = ("Solo_run")
cprintf(cli.red, "!!! Warning you not in a group !!!\n")
else
pname1 = readycheck1
end
if readycheck2 == nil then
pname2 = ("NoPartyMembers")
else
pname2 = readycheck2
end
if readycheck3 == nil then
pname3 = ("NoPartyMembers")
else
pname3 = readycheck3
end
if readycheck4 == nil then
pname4 = ("NoPartyMembers")
else
pname4 = readycheck4
end
if readycheck5 == nil then
pname5 = ("NoPartyMembers")
else
pname5 = readycheck5
end
keyboardPress(key.VK_SPACE)
yrest(1000)
repeat
yrest(500)
local message = checkeventparty(EventPartyName,{pname1,pname2,pname3,pname4,pname5})
if message and message == pname1 or pname1 == "Solo_run" then char1 = true end
if message and message == pname2 or pname2 == "NoPartyMembers" then char2 = true end
if message and message == pname3 or pname3 == "NoPartyMembers" then char3 = true end
if message and message == pname4 or pname4 == "NoPartyMembers" then char4 = true end
if message and message == pname5 or pname5 == "NoPartyMembers" then char5 = true end
until char1 and char2 and char3 and char4 and char5
char1 = false
char2 = false
char3 = false
char4 = false
char5 = false
eventparty(EventPartyName, "stop")
end
end
</onLoad>
<!-- # 1 -->
<waypoint x="1667" z="-4926" y="763" tag="start" type="TRAVEL">
checkdura()
</waypoint>
<!-- # 2 -->
<waypoint x="1678" z="-5092" y="772" tag="enter" type="TRAVEL">
Countround()
ireset()
</waypoint>
<!-- # 3 -->
<waypoint x="1687" z="-5142" y="772" type="TRAVEL">
findzi()
--player:update
local zoneid = RoMScript("GetZoneID()")
if zoneid == 209 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("enter"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("instance"))
end
</waypoint>
<!-- # 4 --><waypoint x="1792" z="2877" y="520" tag="instance" type="TRAVEL">fly();teleport(1925,2826,520)</waypoint>
<!-- # 5 --><waypoint x="1925" z="2826" y="520" type="TRAVEL">teleport(1966,2785,520)</waypoint>
<!-- # 6 --><waypoint x="1966" z="2785" y="520" type="TRAVEL">teleport(2000,2753,520)</waypoint>
<!-- # 7 --><waypoint x="2000" z="2753" y="520" type="TRAVEL">teleport(2062,2713,520)</waypoint>
<!-- # 8 --><waypoint x="2062" z="2713" y="520" type="TRAVEL">teleport(2078,2676,500)</waypoint>
<!-- # 9 --><waypoint x="2078" z="2676" y="500" type="TRAVEL">teleport(2075,2632,500)</waypoint>
<!-- # 10 --><waypoint x="2075" z="2632" y="500" type="TRAVEL">teleport(2153,2567,442)</waypoint>
<!-- # 11 --><waypoint x="2153" z="2567" y="442" type="TRAVEL">teleport(2186,2530,408)</waypoint>
<!-- # 12 --><waypoint x="2186" z="2530" y="408" type="TRAVEL" tag="bossfight">flyoff();</waypoint>
if gcheck() == true then
if Instancereset == true then
Boss_buff()
player:fight()
elseif not Instancereset == true then
keyboardPress(key.VK_SPACE)
local _time = os.time()
repeat
until checkparty(100) == true or (os.time() - _time > 120)
Boss_buff()
player:fight()
end
elseif not gcheck() == true then
Boss_buff()
player:fight()
end
<!-- # 8 -->
<waypoint x="2191" z="2520" y="401">
if instancebuff == true then
player:update()
if player:hasBuff(506432) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("buffok"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("getbuff"))
end
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("buffok"))
end
</waypoint>
<!-- # 9 -->
<waypoint x="2465" z="2338" y="401" tag="getbuff" type="TRAVEL"> </waypoint>
<!-- # 10 -->
<waypoint x="2687" z="2340" y="432" type="TRAVEL"> </waypoint>
<!-- # 11 -->
<waypoint x="2707" z="2389" y="432" tag="object">
getbuff()
</waypoint>
<!-- # 12 -->
<waypoint x="2756" z="2346" y="432">
getbuff()
</waypoint>
<!-- # 13 -->
<waypoint x="2792" z="2444" y="432">
getbuff()
</waypoint>
<!-- # 14 -->
<waypoint x="2693" z="2476" y="432">
getbuff()
</waypoint>
<!-- # 15 -->
<waypoint x="2768" z="2546" y="432">
player:harvest(114982)
player:update()
if player:hasBuff(506432) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("havebuff"))
else
BuffCount = BuffCount+1
if BuffCount > 8 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("havebuff"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("object"))
end
end
</waypoint>
<!-- # 16 -->
<waypoint x="2712" z="2340" y="432" tag="havebuff" type="TRAVEL"> </waypoint>
<!-- # 17 -->
<waypoint x="2290" z="2357" y="401" type="TRAVEL"> </waypoint>
<!-- # 18 -->
<waypoint x="2192" z="2520" y="401" type="TRAVEL"> </waypoint>
<!-- # 19 -->
<waypoint x="2191" z="2520" y="401" tag="buffok" type="TRAVEL">
BuffCount = 0
</waypoint>
<!-- # 20 -->
<waypoint x="1994" z="2762" y="433" type="TRAVEL"> </waypoint>
<!-- # 21 -->
<waypoint x="1891" z="2876" y="433" tag="exit" type="TRAVEL"> </waypoint>
<!-- # 22 -->
<waypoint x="1700" z="2886" y="433" type="TRAVEL">
findzi()
local zoneid = RoMScript("GetZoneID()")
if zoneid == zid then
__WPL:setWaypointIndex(__WPL:findWaypointTag("exit"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
end
</waypoint>
<!-- # 23 -->
<waypoint x="1707" z="-4755" y="752" tag="mech" type="TRAVEL">
local bcount = inventory:getItemCount(0)
player:update()
player:merchant(115536) --== no more works on Chapter IV ==--
yrest(500)
local cbcount = inventory:getItemCount(0)
if bcount == cbcount then
if player:openStore(115536) then
for i, item in pairs(inventory.BagSlot) do
if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT +60 and settings.profile.options.INV_AUTOSELL_TOSLOT +60 >= item.SlotNumber then
item:use() -- sells it to the store
end
end
end
end
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
</waypoint>
</waypoints>