1
Submit your Script / Re: B@ndito's tamer assistant
« on: July 14, 2011, 10:29:10 AM »
It looks pretty, nice job
Thing is; it bandaging pets too slow, its because of OCR I guess. If you can make it faster, it will be excellent


This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
event pathfind #findx #findy
gosub scanJournalFor get_there
sub scanJournalFor
{
scanjournal #JINDEX
if %1 in #journal
{
return #true
}
else
{
return #false
}
}
sub waitForKill
{
finditem %target G_15
while #findkind <> -1
{
if #enemyID = N/A
{
set #ltargetid %target
Event Macro 13 9 ; use skill peacemaking
Event Macro 22 0 ; last target
wait 1s
msg %TankPet kill$
Event Macro 22 0 ; last target
wait 3s
msg %DamagePet kill$
Event Macro 22 0 ; last target
wait 1s
}
set %x #findx - #charposx
if %x < 0
{
set %x %x * -1
}
set %y #findy - #charposy
if %y < 0
{
set %y %y * -1
}
if %x > 1 || %y > 3
{
event pathfind #findx #findy
gosub scanJournalFor get_there
if #Result
{
set %bZone #false
set %attacking #false
set %target X
return #false
}
}