Page 1 of 1

Help macro Skill Abracadabra Loop Stop Summon

Posted: 26 Mar 2020, 22:37
by Sukchay
I use Abracadabra with a random loop.
Looking for Class Change skill
When I get a Class Change skill, I want Stop Loop Abracadabra.
What conditions do I need to use to determine when I receive Level Change skills will goto Changemonster?

I tried writing and playing at the office now.
Don't know if it can be used or not

Code: Select all

automacro abra {
	pubm /start/i
	sp > 5
	exclusive 1
	call { 
			$Skill = @eval($::char->($skill->getIDN, 292))
			$mon = $.lastMonster
			$i = 0
			$c = $.caller
				while ($i < 100) as loop
				do ss 290
					if ($Skill = 292) goto Summon
				$i++
				end loop
				goto end
				
	:Summon
		if ($mon = 0) goto end
		do sm 292 $mon 1
		release $c
		stop
	:end
		release $c
		stop
		}
		}