Purus Pasta Farmer bot

Forum for alternative clients, mods & discussions on the same.

Purus Pasta Farmer bot

Postby Pandanom » Fri Apr 24, 2020 8:03 pm

Hello guys i trided to use farmer bot in purus pata Client but got this error
TypeError: invokeMember (takeItem) on JavaObject[haven.purus.pbot.PBotItem@3c6164ff (haven.purus.pbot.PBotItem)] failed due to: Arity error - expected: 1 actual: 0
at <js> :=>(scripts\Farmer.PBot:111:4607-4625)
at <js> startFarmingBtn(scripts\Farmer.PBot:60-126:2878-5098)
at <js> :program(Unnamed:1:0-16)
at org.graalvm.polyglot.Context.eval(Context.java:371)
at haven.purus.pbot.gui.PBotWindow$1$1.run(PBotWindow.java:37)
at java.lang.Thread.run(Unknown Source)

Problem is in row seeds[0].takeItem(); but i dont really know what takeItem method parameters
I tried
Code: Select all
seeds[0].takeItem("gfx/invobjs/seed-flax");
and
Code: Select all
seeds[0].takeItem(seeds[0]);
but it didnt work
Code: Select all
seeds = javaListToArray(PBotUtils.playerInventory().getInventoryItemsByResnames([seedname]));

Help please with this problem, i dont very strong in js, and are there any documentation for api?
Image
Pandanom
 
Posts: 1
Joined: Fri Apr 24, 2020 7:46 pm

Re: Purus Pasta Farmer bot

Postby shubla » Fri Apr 24, 2020 8:34 pm

You should join Purus Pasta discord, where some people may or may not help you.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland


Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 9 guests