Code: Select all
<onLoad>
-- Boddosh
function Boddosh()
local objectList = CObjectList();
objectList:update();
local objSize = objectList:size()
for i = 0,objSize do
local obj = objectList:getObject(i);
if obj.Id == 101346 then
player:updateXYZ()
if( 250 > distance(player.X, player.Z, obj.X, obj.Z) and PointInPoly({{X=4102,Z=2489}, {X=3515, Z=2487}, {X=3514,Z=2922}, {X=4100, Z=2924}}, player.X, player.Z) ) then
cprintf(cli.white, player.Name.." find Boddosh\n")
player:clearTarget()
teleport(3480,2695)
teleport(3365,2680)
yrest(1000)
__WPL:setWaypointIndex(__WPL:findWaypointTag("BoddoshStart"));
end
end
end
end;
-- onSkillCast
if( not onSkillCastProfile ) then
if( type(settings.profile.events.onSkillCast) ~= "function" ) then
onSkillCastProfile = function(unused) return; end;
else
onSkillCastProfile = settings.profile.events.onSkillCast;
end
end;
function settings.profile.events:onSkillCast()
onSkillCastProfile();
Boddosh()
-- Housekeeper Special Spicy Meatsauce Burrito
if( not player:hasBuff(506677) and inventory:itemTotalCount(207213) > 0 ) then
inventory:useItem(207213)
end
end;
</onLoad>
...
<!-- # 35 --><waypoint x="3365" z="2680" tag="BoddoshStart">
CheckInventory();
player:update();
useMaidItems();
if( not CL_KillFerstBoss ) then
-- Potion: Scarlet Love
if( not player:hasBuff(506690) and inventory:itemTotalCount(207206) > 0 ) then
inventory:useItem(207206)
yrest(1750)
inventory:update()
end
-- Hero Potion
if( not player:hasBuff(501337) and inventory:itemTotalCount(200277) > 0 ) then
inventory:useItem(200277)
yrest(1000)
inventory:update()
end
-- Touch of the Unicorn
if( not player:hasBuff(500310) and inventory:itemTotalCount(200199) > 0 ) then
inventory:useItem(200199)
end
end;
-- Loot any other dead monsters nearby
player:updateBattling()
if not player.Battling or not player:findEnemy(true,nil,evalTargetDefault) then
player:lootAll()
end
</waypoint>