What does be codes ?
I must do it because while char try to loot char is dead. (exp debt)
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
--=== Version 1.5 ===--
settings.profile.events.onDeath = function()
RoMScript("BrithRevive();");
waitForLoadingScreen();
yrest(3000)
sendMacro("LeaveParty();");
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
setwindow("gold")
changeProfileOption("LOOT_SIGILS", true)
changeProfileOption("INV_AUTOSELL_ENABLE",true)
changeProfileOption("LOOT_ALL", true)
changeProfileOption("LOOT", true)
changeProfileOption("COMBAT_TYPE", "melee")
for i, skill in pairs(settings.profile.skills) do
if skill.Name == "MAGE_PURGATORY_FIRE" then
settings.profile.skills[i].AutoUse = true
end
if skill.Name == "MAGE_FLAME" then
settings.profile.skills[i].AutoUse = false
end
if skill.Name == "MAGE_PLASMA_ARROW" then
settings.profile.skills[i].AutoUse = false
end
end
function bagcheck()
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end
function unStick3()
if getZoneId() == 6 then
__WPL:setForcedWaypointType("RUN")
else
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end
function CleanBagKS()
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
if item:isType("Runes") or item:isType("Monster Cards") then
item:delete()
end
if ( item:isType("Weapons") or item:isType("Armor") ) and (100 > item.Worth and 3 > item.Quality) then
item:delete()
end
if item:isType("Production Runes") then
item:delete()
end
if item:isType("Potions") and (45 > item.RequiredLvl and item.RequiredLvl > 10) then
item:delete()
end
end
end
end
</onLoad>
<!-- # 1 --><waypoint x="-18562" z="12458" type="TRAVEL" tag="enter"> </waypoint>
<!-- # 2 --><waypoint x="-18562" z="12458" >
<!-- [Housemaid potions]
This checks if we have housemaid potion buff.
If we dont have that buff then bot drinks potion if we have
potions on inventory and it is set to use it.
Bugs:
- It uses luck potion randomly sometimes.
- Maybe add timer into check so it would try to use another in 1.45h or so.
Version history:
1.2 - New food: Special Spicy Meatsauce Burrito and little remade code.
Buff names can all be seen once and change if needed.
1.1 - Corrected Luck potion buff name
1.0 - Added time after using potions so it would use all potions after first kill.
It was using all too fast. Potions get cooldown after using one so it skips others.
0.9 - Added Housekeeper Special Caviar Sandwich to list
0.8 - Remade code. Now it uses only 1 if to check all and if all conditions are true then it uses potion.
Its easier to add potions later if needed.
-->
<!-- User setting starts here -->
<!-- Define these if you want to use something. True uses it and false ignores it. -->
local useSpeed = true; -- Housemaid speed potion
local useFrog = false; -- Housemaid frog potion
local useLuck = true; -- Housemaid luck potion
local useSaltedFish = true; -- Housemaid food
local useCaviarSandwich = true; -- Housemaid food
local useSpecialMeatsauceBurrito = true; -- Housemaid food
<!-- Potions id and its buff name. If using other than english client then change buff name. -->
local pot1ID = 207200; -- Sınırsız Coşkunluk
local buff1Name = "Sınırsız Coşkunluk";
local pot2ID = 207201; -- Princely Look
local buff2Name = "Princely Look";
local pot3ID = 207203; -- Şans Döndüren Pudra
local buff3Name = "Şans Döndüren Pudra";
local pot4ID = 207213; -- Special Spicy Meatsauce Burrito
local buff4Name = "Spicy Meatsauce Burrito";
local pot5ID = 207211;
local buff5Name = "Caviar Sandwich";
local pot6ID = 207209;
local buff6Name = "Salted Fish with Sauce";
<!-- User settings end here -->
<!-- Unbridled Enthusiasm potion -->
if not player:hasBuff(buff1Name) and inventory:itemTotalCount(pot1ID) >= 1 and useSpeed == true then
inventory:useItem(pot1ID);
inventory:update();
yrest(750);
end
<!-- Princely looking potion -->
if not player:hasBuff(buff2Name) and inventory:itemTotalCount(pot2ID) >= 1 and useFrog == true then
inventory:useItem(pot2ID);
yrest(900); -- Lets wait till we cast. After that we loot. I don't know if we could loot before casting.
inventory:update();
end
<!-- Lucky Target potion -->
if not player:hasBuff(buff3Name) and inventory:itemTotalCount(pot3ID) >= 1 and useLuck == true then
inventory:useItem(pot3ID);
inventory:update();
yrest(750);
end
<!-- Special Spicy Meatsauce Burrito -->
if not player:hasBuff(buff4Name) and inventory:itemTotalCount(pot4ID) >= 1 and useSpecialMeatsauceBurrito == true then
inventory:useItem(pot4ID);
inventory:update();
yrest(750);
end
<!-- Special Caviar Sandwich -->
if not player:hasBuff(buff5Name) and inventory:itemTotalCount(pot5ID) >= 1 and useCaviarSandwich == true then
inventory:useItem(pot5ID);
inventory:update();
yrest(750);
end
<!-- Special Salted Fish with Sauce -->
if not player:hasBuff(buff6Name) and inventory:itemTotalCount(pot6ID) >= 1 and useSaltedFish == true then
inventory:useItem(pot6ID);
inventory:update();
yrest(750);
end
RoMScript("InviteByName('XXXXXXX');");
yrest(1500)
if not GoThroughPortal() then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1);
end
</waypoint>
<!-- # 3 --><waypoint x="4708" z="914" y="679" type="RUN" >
changeProfileOption("LOOT", false)
changeProfileOption("USE_PHIRIUS_POTION", true);
changeProfileOption("COMBAT_DISTANCE", 90)
changeProfileOption("MAX_TARGET_DIST", 100)
</waypoint>
<!-- # 4 --><waypoint x="4448" z="911" y="679" >
changeProfileOption("COMBAT_DISTANCE", 200)
changeProfileOption("MAX_TARGET_DIST", 180)
</waypoint>
<!-- # 5 --><waypoint x="4245" z="904" y="679">
changeProfileOption("LOOT_ALL", true);
changeProfileOption("LOOT", true);
bagcheck();
</waypoint>
<!-- # 6 --><waypoint x="4448" z="911" y="679">
CleanBagKS() </waypoint>
<!-- # 7 --><waypoint x="4708" z="914" y="679"> </waypoint>
<!-- # 8 --><waypoint x="4712" z="879" y="679"> </waypoint>
<!-- # 9 --><waypoint x="4713" z="834" y="679">
if not GoThroughPortal(200,110578) then
__WPL:setWaypointIndex(__WPL.LastWaypoint - 1);
end
sendMacro("LeaveParty();");
yrest(1000)
__WPL:setWaypointIndex(__WPL:findWaypointTag("enter"));
</waypoint>
<!-- going to sell loot -->
<!-- # 10 --><waypoint x="-15147" z="11542" y="136" type="TRAVEL" tag="rerun">
player:mount();
player:update()
if not player.Mounted then
inventory:useItem(203033)
yrest(2000)
inventory:update()
player:mount();
end
</waypoint>
<!-- # 11 --><waypoint x="-15764" z="11358" type="TRAVEL" > </waypoint>
<!-- # 12 --><waypoint x="-15967" z="11304" type="TRAVEL"> </waypoint>
<!-- # 13 --><waypoint x="-16078" z="11312" type="TRAVEL"> </waypoint>
<!-- # 14 --><waypoint x="-16249" z="11327" type="TRAVEL"> </waypoint>
<!-- # 15 --><waypoint x="-16450" z="11350" type="TRAVEL"> </waypoint>
<!-- # 16 --><waypoint x="-16607" z="11365" type="TRAVEL"> </waypoint>
<!-- # 17 --><waypoint x="-16618" z="11352" type="TRAVEL">
changeProfileOption("HARVEST_DISTANCE", 200);
yrest(100);
if inventory:itemTotalCount(0) == 0 then -- make sure to get pet xtras
player:merchant("Pancer");
yrest(100);
end
player:merchant("Pancer");
yrest(100);
</waypoint>
<!-- # 18 --><waypoint x="-16650" z="11463" type="TRAVEL"> </waypoint>
<!-- # 19 --><waypoint x="-16836" z="11573" type="TRAVEL"> </waypoint>
<!-- # 20 --><waypoint x="-17141" z="11250" type="TRAVEL"> </waypoint>
<!-- # 21 --><waypoint x="-17448" z="10703" type="TRAVEL">
changeProfileOption("USE_PHIRIUS_POTION", false);
</waypoint>
<!-- # 22 --><waypoint x="-17668" z="10680" type="TRAVEL"> player:mount();
</waypoint>
<!-- # 23 --><waypoint x="-17936" z="10586" type="TRAVEL"> </waypoint>
<!-- # 24 --><waypoint x="-18160" z="10707" type="TRAVEL"> </waypoint>
<!-- # 25 --><waypoint x="-18288" z="11068" type="TRAVEL"> </waypoint>
<!-- # 26 --><waypoint x="-18416" z="11681" type="TRAVEL"> </waypoint>
</waypoints>