My character goes idle randomly after auto-sell sequence.

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Aoi Midori
Noob
Noob
Posts: 3
Joined: 10 Dec 2011, 04:47
Noob?: No

My character goes idle randomly after auto-sell sequence.

#1 Post by Aoi Midori »

This does not really happen ALWAYS but when it happens, my character won't move again, ever - not until I hard restart the bot (close and execute).

Okay, here's the thing. For some reason, my bot would not automatically go to the Tool Dealer NPC when its number of Red Potions reach 10.

Code: Select all

buyAuto Red Potion {
	npc payon_in01 5 49
	distance 5
	minAmount 10
	maxAmount 100
}
That's right, isn't it? But yeah, it isn't working. So I made a macro for it. Excuse me for the amateur level of coding the macros, I only studied the basics of it.

Code: Select all

automacro storagePotion {
	inventory "Magnifier" > 0
	inventory "Red Potion" <= 10
	inventory "Novice Potion" < 1
	location not payon_in01
	location not alberta
	location not moscovia
	location not mosk_in
	run-once 1
	call {
		do conf attackAuto 0
		do autostorage
		release releaseStoragePotion
	}
}

automacro releaseStoragePotion {
	inventory "Red Potion" > 10
	run-once 1
	exclusive 1
	call {
		do a yes
		release storagePotion
	}
}
Yes, you may ask, "why does it do auto-storage?" Okay, I had it do auto-storage then I have this in my configuration file just in case I have put in some red potions in my storage.

Code: Select all

getAuto Red Potion {
	minAmount 10
	maxAmount 100
	passive 0
}
So once it detects that I do not have Red Potions in my storage...

Code: Select all

automacro noPotionsStorage {
	console /Red Potion out of stock/i
	call {
		do storage close
		do autobuy
	}
}
...it closes the storage and initiates auto-buy. So far, I find nothing wrong in that. Well, if you think I did something wrong please do tell me.

Anyway, after it buys Red Potions, it initiates auto-storage again because it was interrupted when it initiated the auto-buy sequence through macro. After the auto-storage sequence, it will initiate the auto-sell sequence. NOW, here's my problem; and I have been finding answers to it but to no avail. After my bot finishes the auto-sell sequence, it goes idle and then my bot will just sit down there doing nothing. Why does it do that? Why can't it continue on and go back to the lockMap?

I found some similar posts here actually regarding this "idle" problem, but they're not the same as mine. Some had problems with syntax when it comes to the config.txt. I double-checked mine and I did not find such errors. I found another but it goes idle BEFORE it does the auto-storage sequence.

So what's wrong? I cannot understand why it goes idle for no reason. Please help me. Thank you very much. :(
Aoi Midori
Noob
Noob
Posts: 3
Joined: 10 Dec 2011, 04:47
Noob?: No

Re: My character goes idle randomly after auto-sell sequence.

#2 Post by Aoi Midori »

UPDATE:

Somehow I solved this problem. It turns out that when I make it stand, it will not be idle anymore and it will go to lockMap.

Soo... I made a macro for it to automatically stand given that it's not just sitting down to regenerate HP or SP. :lol:

Code: Select all

automacro autoStand {
	console /You are sitting./i
	location prontera, prt_in, payon, payon_in01
	exclusive 1
	call {
		if ($.hp > @config (sitAuto_hp_upper) || $.sp > @config (sitAuto_sp_upper)) call standIdle
	}
}

macro standIdle {
	do stand
}