viperous

Untitled

Jun 28th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.63 KB | None | 0 0
  1. import clr
  2. clr.AddReference("COFarmerPluginLibrary")
  3. from COFarmerPluginLibrary import *
  4. from System import *
  5.  
  6. def start() :
  7.   SetXPSpeed(200)
  8.   SetSpeed(500)
  9.   SetRadius(200)
  10.   BCOHelper.LinearTravel(Client, 1020, 583, 855)
  11.  
  12.   while True:
  13.     #Whole programm will happen in this while
  14.     if (BCOHelper.CountItemID(Client, 1088001) > 9): #Mets
  15.       makescroll()
  16.     elif (BCOHelper.CountItemID(Client, 1088000) > 0): #DragonBall
  17.       deposit()
  18.     elif (Client.IsOnXPSkill) :
  19.       hunt()
  20.     else :
  21.       safespot()
  22.  
  23.  
  24. def deposit():
  25.   BCOHelper.LinearTravel(Client, 1002, 414, 357)
  26.   if (Client.DynamicMapID==1002):
  27.     InvItems = Client.Inventory.Items
  28.     for itemIndex in range (InvItems.Length):
  29.     Client.Warehouse.DepositItem(InvItems[itemIndex].UID, WarehouseType.TwinCity)
  30.     BCOHelper.Sleep(2000)
  31.   return
  32.  
  33. def makescroll() :
  34.   BCOHelper.LinearTravel(Client, 1036, 243, 240)
  35.   Client.ClickNpc(5004)
  36.   BCOHelper.Sleep(700)
  37.   Client.AnswerNpc(0)
  38.   BCOHelper.Sleep(700)
  39.   Client.AnswerNpc(0)
  40.   BCOHelper.Sleep(700)
  41.   deposit()
  42.   return
  43.  
  44. def hunt():
  45.   if (GetHuntEnabled == False || GetLootEnabled == false):
  46.     BCOHelper.LinearTravel(Client, 1075, 343, 445) #hunting-spot
  47.     SetLootLightMode(True)
  48.     SetHuntEnabled(True)
  49.     SetLootEnabled(True)
  50.     return
  51.   else:
  52.     #Continue Hunting till XP Skill over
  53.     return
  54.  
  55. def safespot() :
  56.   if (Client.DynamicMapID != 1020) :
  57.     BCOHelper.LinearTravel(Client, 1020, 583, 855) #safespot
  58.     SetLootLightMode(False)
  59.     SetHuntEnabled(False)
  60.     SetLootEnabled(False)
  61.     BCOHelper.Sleep(2000)
  62.     return
  63.   else :
  64.     return
  65.  
  66.  
  67. start()
Advertisement
Add Comment
Please, Sign In to add comment