Openkore.com
http://forums.openkore.com/

Drop your item when over limit
http://forums.openkore.com/viewtopic.php?f=33&t=209667
Page 1 of 1

Author:  fukki [ 02 Nov 2014, 01:53 ]
Post subject:  Drop your item when over limit

Fix your location to savemap and item name :P

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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/