Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clr
- clr.AddReference("COFarmerPluginLibrary")
- from COFarmerPluginLibrary import *
- from System import *
- def start() :
- SetXPSpeed(200)
- SetSpeed(500)
- SetRadius(200)
- BCOHelper.LinearTravel(Client, 1020, 583, 855)
- while True:
- #Whole programm will happen in this while
- if (BCOHelper.CountItemID(Client, 1088001) > 9): #Mets
- makescroll()
- elif (BCOHelper.CountItemID(Client, 1088000) > 0): #DragonBall
- deposit()
- elif (Client.IsOnXPSkill) :
- hunt()
- else :
- safespot()
- def deposit():
- BCOHelper.LinearTravel(Client, 1002, 414, 357)
- if (Client.DynamicMapID==1002):
- InvItems = Client.Inventory.Items
- for itemIndex in range (InvItems.Length):
- Client.Warehouse.DepositItem(InvItems[itemIndex].UID, WarehouseType.TwinCity)
- BCOHelper.Sleep(2000)
- return
- def makescroll() :
- BCOHelper.LinearTravel(Client, 1036, 243, 240)
- Client.ClickNpc(5004)
- BCOHelper.Sleep(700)
- Client.AnswerNpc(0)
- BCOHelper.Sleep(700)
- Client.AnswerNpc(0)
- BCOHelper.Sleep(700)
- deposit()
- return
- def hunt():
- if (GetHuntEnabled == False || GetLootEnabled == false):
- BCOHelper.LinearTravel(Client, 1075, 343, 445) #hunting-spot
- SetLootLightMode(True)
- SetHuntEnabled(True)
- SetLootEnabled(True)
- return
- else:
- #Continue Hunting till XP Skill over
- return
- def safespot() :
- if (Client.DynamicMapID != 1020) :
- BCOHelper.LinearTravel(Client, 1020, 583, 855) #safespot
- SetLootLightMode(False)
- SetHuntEnabled(False)
- SetLootEnabled(False)
- BCOHelper.Sleep(2000)
- return
- else :
- return
- start()
Advertisement
Add Comment
Please, Sign In to add comment