The main issue is that ignoreitem isnt working as it should, when i lounch check_serpent again, it runs again to the ignored corpse. Cann't see where's the problem.
sub check_serpent
set %timer #sCnt
finditem %serpent G_
if #findcnt > 0
{
set %atacked_serpent #findid
set #ltargetid #findid
event macro 27
wait 1
while #findcnt > 0
{
finditem %atacked_serpent G_
wait 1s
}
finditem %serpent_body G_8
if #findcnt > 0
{
set %timer ( #sCnt + 10 )
set %findx #findx - 1
set %findy #findy - 1
move %findx %findy 1 50
wait 2s
}
finditem %serpent_body G_2
if #findcnt > 0
{
set %current_serp #findid
finditem %dagger C_ , #BACKPACKID
if #FINDCNT > 0
{
set #lobjectid #findid
set #ltargetid %current_serp
set #ltargetkind 1
event macro 17
target 10s
event macro 22
wait 20
set #lobjectid %current_serp
event macro 17
repeat
{
wait 2s
}
until #CONTNAME = container_gump && #CONTTYPE = YFM || #sCnt > %timer
finditem %fished_stuff C_ , %current_serp
while #findcnt > 0
{
Exevent Drag #findid #findstack
wait 10
Exevent Dropc #BACKPACKID
wait 10
finditem %fished_stuff C_ , %current_serp
}
}
}
ignoreitem %current_serp
}
return
updated: Thank you Dixie Wrecked for noticing the missing bracket