Drop your item when over limit

Moderator: Moderators

Post Reply
Message
Author
fukki
Noob
Noob
Posts: 4
Joined: 17 Mar 2010, 11:52
Noob?: No

Drop your item when over limit

#1 Post by fukki »

Fix your location to savemap and item name :P

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
	}
}

Post Reply