Code: Select all
automacro OverAmount_YS {
location not <SaveMap>
inventory "Yggdrasil Seed" > 30
exclusive 1
call {
$sItemName = Yggdrasil Seed
$iLimit = 30
$gItem = @inventory($sItemName)
if ($gItem >= 0) goto CheckDrop
stop
:CheckDrop
$iItem = @invamount($sItemName)
if ($iItem > $iLimit) goto Drop
stop
:Drop
$iItem = @eval($iItem - $iLimit)
do drop $gItem $iItem
}
}