Advertisement
Guest User

Xeno Script

a guest
Jun 26th, 2012
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.87 KB | None | 0 0
  1. ------------------------------Stone Golem Farmine Hard Core---------------------------------------------------------
  2. ------------------------------------------By------------------------------------------------------------------------
  3. ---------------------------------------NNiklaSS---------------------------------------------------------------------
  4. --------------------------------------------------------------------------------------------------------------------
  5. --------------------------------------------------------------------------------------------------------------------
  6. ---------------------------------------SETTINGS---------------------------------------------------------------------
  7. --------------------------------------------------------------------------------------------------------------------
  8. --------------------------------------------------------------------------------------------------------------------
  9. refillhealth = 5 -- How many healing potion to leave cave?
  10. refillmanas = 15 -- How many manas to leave cave?
  11. HardCore = true -- true/false First or Both Floor.
  12. ManaPotID = 268 -- Normal Mana Potion: 268  Strong Mana potion: 237
  13. HealthPotID = 236 -- Healing Potion: 266 Strong Health Potion: 236
  14. ---------------------------------------------------------------------------------------------------------------------
  15. ---------------------------------------------------------------------------------------------------------------------
  16.  
  17. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  18.  
  19. function onWalkerSelectLabel(labelName)
  20.     if (labelName == "Check Cap") then
  21.         if (Self.ItemCount(HealthPotID) < refillhealth) or (Self.ItemCount(ManaPotID) < refillmanas) or (Self.Cap() < 30) then
  22.                     gotoLabel("Walk To Bank")
  23.             else
  24.                     gotoLabel("Forgott")
  25.     end
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     elseif (labelName == "Hard Core") then
  32.         if (HardCore == true) then
  33.         gotoLabel("Forgott")
  34.         elseif  (HardCore == false) then
  35.             gotoLabel("Start")
  36.             end
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.     elseif (labelName == "Check Bank") then
  44.         if (Self.ItemCount(HealthPotID) < refillhealth) or (Self.ItemCount(ManaPotID) < refillmanas) then
  45.                     gotoLabel("Bank")
  46.             else
  47.                     gotoLabel("Forgott")
  48.         end
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.     elseif (labelName == "Deposit") then
  57.     delayWalker(15000)
  58.     Self.DepositMoney("all")
  59.      end
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.     elseif (labelName == "Depot") then
  67.         delayWalker(3000)
  68.     Self.DepositItems({1781, 0},{10315, 0},{5880, 0},{10278, 0},{9632, 0},{3271, 0},{10246, 0},{12600, 0},{10310, 0},{3029, 0},{3297, 1},{3097, 1},{10426, 1},{3039, 1})
  69.    
  70.  
  71.     elseif (labelName == "Withdraw Supps") then
  72.     delayWalker(2000)
  73.     local refiller = Container.GetByName("Depot Chest")
  74.     local mps = ( Self.ItemCount(268) )
  75.  
  76.     if ( mps < 50 ) then
  77.         Self.WithdrawItems(2,{268, 0, 50})
  78.         wait(500)
  79.         refiller:UseItem(2)    
  80.     end
  81. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement