Here is what i have:
Code: Select all
<!-- # 1 --><waypoint x="-3905" z="6153" y="55" tag="notfinished">
-- the point at which we wait until pumpkin spawn
local queststate = getQuestStatus("Pumpkin Pranksters")
if queststate == "complete" then
__WPL:setDirection(WPT_BACKWARD);
else
-- questing starts here
cprintf(cli.yellow,"We park here and wait for Spooky pumpkin...\n")
settings.profile.options.HARVEST_DISTANCE=300
player:update();
while (true) do
yrest(50)
--player:target_Object("Spooky Pumpkin");
player:findTarget("Spooky Pumpkin"); -- spooky or empty one
local target = player:getTarget();
target:update();
if ((target.id == 116032) or (target.id == 115349)) then -- spooky pumpkin
-- found at least one so we can start the farm
player:clearTarget();
settings.profile.options.HARVEST_DISTANCE=50
player:update();
yrest(100)
break
end
end
checkdebuff(-3905,6153,55)
prankster()
end
</waypoint>But basically it doesnt do it.
The problem is:
There are false pumpkins and real ones. No matter which kind spawns the bot should start but has to target the pumpkin at the correct waypoint not anotherone because then it will crash into walls and look very bottish...
The function checkdebuff() is a dirty code to check if we have panic debuff. If so it will teleport the char abck to the coords as long as panic runs.
Prankster is a small function to click the pumpkins and all. this works... but im lacking the right method to start the script...
any ideas?
br,
nuker