I need forgetten wold addition


#1

please link ı dont know auto forgetten world
addition help me thank <3


#2

There is nothing in the bot that allows you to automatically complete FGW. You will need to write your own plugin or find someone that has made one already.


#3

I can give you some help, if you try to test this I could help you even more. Should be work as script!

from phBot import *
from threading import Timer

check_mobs_time = 0.0
isAttacking = False

log('Plugin: Succesfully loaded [%s].' % __name__)

# Attack all mobs around using the bot config. Ex: "AttackArea" or "AttackArea,15"
# Will be checking mobs every 15 seconds at this area as default. Longer check time will increase the time to sync with other players, probably
def AttackArea(arguments):
	# stop bot and kill mobs through bot or continue script normally
	if getMobCount() > 0:
		# stop script
		stop_bot()
		# set automatically the training area
		p = get_position()
		set_training_position(p['region'], p['x'], p['y'])
		# checking time
		global check_mobs_time
		check_mobs_time = 15.0 #15s as default
		if len(arguments) > 1 and int(arguments[1]) > 0 :
			check_mobs_time = float(arguments[1])
		# start to kill mobs on other thread because interpreter lock
		Timer(1.0,AttackMobs).start()
	# otherwise continue normally
	else:
		log("Plugin: Not mobs at this area.")
	return 0

# Attacking mobs using all configs from bot
def AttackMobs():
	if getMobCount() > 0:
		# Start to kill mobs with last training area
		if not isAttacking:
			start_bot()
			global isAttacking
			isAttacking = True
			log("Plugin: Killing mobs at this area.")
		# Check if there is not mobs to continue the script
		Timer(check_mobs_time,AttackMobs).start()
	else:
		# All mobs killed, stop botting
		stop_bot()
		global isAttacking
		isAttacking = False
		# Setting training area far away. The bot should continue where he was at the script
		set_training_position(0,0,0)
		log("Plugin: All mobs killed. Getting back to the script")
		start_bot()

# Count all mobs around your character (60 or more it's the max. range I think)
def getMobCount():
	monsters = get_monsters()
	if monsters:
		return len(monsters)
	return 0

It’s possible through bot.
You should think about bot configs, that could be a problem. This will need to restart scripting outside training area, or die, so keep sure this won’t back to town.

Basically, the bot will stop (not sure really if this function works at scripting) at command, check mobs around, set training area, try to kill them, reset training area, restart bot, continue script (should restart at closer point of script). Use as :


#4

Bot isn’t attacking mobs.
what is the problem


#5

"… What do your elf eyes see?"

What phbot logs say?
Plugin it’s loading correctly?
Bot it’s stopped? started?
What happen at that script line exactly?
… Something useful that you can say me to help you?


#6

i really liked your plugin <3 i will try it definetely :slight_smile:


#7

how does this work exactly?


#8

Eklenti test etti mi ?
Did you test the plugin?


#9

yes, plugin is loaded and i am starting bot in fgw. nothing happens


#10

Selamlar çalışıyormu acaba haber bekliyorum.


#12

I can’t help if you are not talking me at english…
This plugin is intended to work like script.

It is like create a script to your training area but in the path will attack mobs too… so, it can be tested outside dungeons…

...
move,...
AttackArea,15
move,...
move,...
move,...
move,...
move,...
AttackArea,15
move,...
move,...
move,...
AttackArea,15
move,...
...

Can you see that example? it’s attacking one area, then move a few steps to a next area and contiues attacking.


#13

thanks for the reply

it says [02:23:21] Plugin: Killing mobs at this area. but stays where it is doesn’t attacking the mobs. any idea?


#14

okay now it is attacking but doesn’t change the coordinates after clearing the first AttackArea,15 it stays there


#15

What can you read at your logs after first area?

Plugin: Killing mobs at this area.

or

Plugin: All mobs killed. Getting back to the script


#16

It walks as it should stops and says Plugin: Killing mobs at this area.

After it kills all the mobs it doesn’t walk to another coordinate to get training area again it just stays there waiting for mobs to kill and bot doesn’t say anything


#17

@JellyBitz Can you do something not to see the ghost curse?


#18

Try this, could be something with the checking time… or mob counter.
I added more info to know what’s happening at this version!

v0.0.2
from phBot import *
from threading import Timer

check_mobs_time = 0.0
isAttacking = False

# Attack all mobs around using the bot config. Ex: "AttackArea" or "AttackArea,15"
# Will be checking mobs every 15 seconds at this area as default. Longer check time will increase the time to sync with other players, probably
def AttackArea(arguments):
	# stop bot and kill mobs through bot or continue script normally
	if getMobCount() > 0:
		# stop scripting
		stop_bot()
		# set automatically the training area
		p = get_position()
		set_training_position(p['region'], p['x'], p['y'])
		# set time
		if len(arguments) > 1 and int(arguments[1]) > 0 :
			check_mobs_time = float(arguments[1])
		if not check_mobs_time:
			global check_mobs_time
			check_mobs_time = 15.0 #15s as default
		# start to kill mobs on other thread because interpreter lock
		Timer(1.0,AttackMobs).start()
	# otherwise continue normally
	else:
		log("Plugin: Not mobs at this area.")
	return 0

# Attacking mobs using all configs from bot
def AttackMobs():
	if getMobCount() > 0:
		# Start to kill mobs with last training area
		if not isAttacking:
			start_bot()
			global isAttacking
			isAttacking = True
		log("Plugin: Killing ("+str(getMobCount())+") mobs at this area.")
		# Check if there is not mobs to continue the script
		Timer(check_mobs_time,AttackMobs).start()
	else:
		# All mobs killed, stop botting
		stop_bot()
		global isAttacking
		isAttacking = False
		# Setting training area far away. The bot should continue where he was at the script
		set_training_position(0,0,0)
		log("Plugin: All mobs killed. Getting back to the script.")
		start_bot()

# Count all mobs around your character (60 or more it's the max. range I think)
def getMobCount():
	monsters = get_monsters()
	if monsters:
		return len(monsters)
	return 0

log('Plugin: xAutoDungeon v0.0.2 succesfully loaded.')

#19

@cebralig I dont’ know what do you mean. This plugin is attacking through your bot configs… :sweat_smile:


#20

@JellyBitz ignore certain creatures that want me


#21

I set this up from the boat, but it didn’t