PW VanillaBot

03/12/2015 11:22 Vis2k#106
Update:
- Bot now works with the latest PWI Version again

Enjoy!
03/17/2015 10:12 Vis2k#107
Update:
- get_surr_items now also returns the item names
- get_surr_item_closest_byname function added for scripting
- example_farming.py script added (for resource farming routes)

Enjoy!
04/01/2015 13:08 Vis2k#108
Update:
- Added a whole lot of Stormbringer Skills to the database

Enjoy!
04/02/2015 02:21 fcffe238cree#109
hi Vis2k, is it possible to lower down the CPU usage on vanilla bot?
04/20/2015 11:24 Vis2k#110
Update:
- now works with latest PW Philippines version

Quote:
Originally Posted by fcffe238cree View Post
hi Vis2k, is it possible to lower down the CPU usage on vanilla bot?
Try setting the process priority to low, that's usually good enough.
06/03/2015 02:12 wandersonlt#111
I can not make the robot take the herbs near the region indicated
would have some command
I can use to get the herbs that are near and not marked estaja
06/03/2015 20:04 Vis2k#112
With normal botting or with scripting? Please post your Script if you tried using that.

Greetings
06/04/2015 01:13 wandersonlt#113
I am using the example script made by Vis,
so that the personagen flies up the site and then goes to the local procimo indicated without taking the herbs who are close to the location indicated in cordenadas made in the script Robot

# -*- coding: utf-8 -*-
# See [Only registered and activated users can see links. Click Here To Register...] for a Scripting Tutorial
#
# this script farms some resources in the north of city of the lost
import time

# helper functions ################################################## ###########
# call a scriptapi function
def scriptapi_call(fnname, *params):
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect('tcp://127.0.0.1:6000')
socket.send_pyobj([fnname] + list(params))
return socket.recv_pyobj()

# resource positions (name, x, z) ##############################################
resources = [['Antidoto', 359, 716],
['Antidoto', 343, 734],
['Antidoto', 313, 761],
['Antidoto', 310, 778],
['Antídoto', 302, 728]]

# resource farming ################################################## ###########
# do it forever
while True:
# for each resource:
for [name, x, z] in resources:
# walk to the coordinates
print 'walking to', name, 'at', [x, z]
scriptapi_call('do_player_moveto', [x, 0, z])


# find closest item by name (if any)
item = scriptapi_call('get_surr_item_closest_byname', name)
if item:
# walk closer to it, farm it, wait until done
print 'resource found:', name
scriptapi_call('do_player_moveto', item['pos'])
scriptapi_call('do_player_pick', item)
time.sleep(12)
scriptapi_call('set_player_targetid', 0)
print 'resource farmed:', name

#items = scriptapi_call('get_surr_items')
#scriptapi_call('do_player_moveto', items[0]['pos'])
#scriptapi_call('do_player_pick', items[0])
06/05/2015 13:34 Vis2k#114
Update:
- Works with latest PWI Version again

@wandersonlt:
What do you mean with procimo and cordenadas?
06/05/2015 23:11 wandersonlt#115
I play on pwbr
What's going on, and the following
it flies up to coordinate marked on the script only when it comes in place it flies back without taking the herbs who are near the coordinated marked on the bot
06/07/2015 19:33 Vis2k#116
Quote:
Originally Posted by wandersonlt View Post
I play on pwbr
What's going on, and the following
it flies up to coordinate marked on the script only when it comes in place it flies back without taking the herbs who are near the coordinated marked on the bot
Oh okay. So how close are those coordinates to the Script? Can you make a screenshot?
06/10/2015 00:50 wandersonlt#117
follows the screenshot with herbs near the given location[Only registered and activated users can see links. Click Here To Register...]
06/16/2015 02:55 khay01#118
its work for PW 2 indo ?
and how many client can open at sametimes? it reduce memory usage?
or depend on my PC spec ?
07/16/2015 10:50 Vis2k#119
Update:
- Bot works for PW Indo again. I couldn't test it myself, so please let me know if something doesn't work.

Quote:
Originally Posted by khay01 View Post
its work for PW 2 indo ?
and how many client can open at sametimes? it reduce memory usage?
or depend on my PC spec ?
Yes PW Indo is supported. You can open as many clients as your computer can handle.

Greetings
07/16/2015 15:50 sinistervn#120
its work for PWI vietnamese ? ([Only registered and activated users can see links. Click Here To Register...])