Auto Trade problem, Bot cancels the trade

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

hamncheese
Noob
Noob
Posts: 5
Joined: 25 Sep 2012, 10:20
Noob?: Yes

Auto Trade problem, Bot cancels the trade

#1 Post by hamncheese »

Hi,
this is my first post here, i hope its in the right section, if not pelase move this thread :)

ok heres my problem :

Code: Select all

automacro deal {
	if ($.weight > 50%)
	run-once 1
	call {
		$player = @player (xxx)
		do move 53 243 alberta
		pause 5
		do deal "$player"
		pause 5
		do deal add 4
		do deal add 5
		do deal add 6
		do deal add 7
		do deal add 8
		do deal add 9
		do deal add 10
		do deal add 11
		do deal add 12 <---last item
		do deal add 13 <---this is empty
		do deal 
		pause 5
		do deal "$player"
		pause 5
		do deal add 14
		do deal add 15
		do deal add 16
		do deal add 17
		do deal add 18
		do deal add 19
		do deal add 20
		do deal add 21
		do deal add 22
		do deal add 23
		do deal
		pause 5
		release all
}
the bot manage to get to deal add 12, but then bot closes trade window
i dont know whats wrong with the macro
im guessing the bot accidentally press cancel somehow, maybe because of the twice Deal after the last item ?
if that is the problem, are there any way to maintain the number deal add (10 items maximum)
without the bot pressing cancel ?

thank you for anyone willing to read and answer this question
ps: sorry for my bad english (idro)
chocobrowny
Noob
Noob
Posts: 19
Joined: 21 Jul 2011, 01:16
Noob?: No

Re: Auto Trade problem, Bot cancels the trade

#2 Post by chocobrowny »

Could u give us the console log at that moment of cancel.
"...Every coin have two sides, think more widely and Not everything is black and white, there are shades of grey..."
Image
hamncheese
Noob
Noob
Posts: 5
Joined: 25 Sep 2012, 10:20
Noob?: Yes

Re: Auto Trade problem, Bot cancels the trade

#3 Post by hamncheese »

chocobrowny, thank you for taking the time to reply my question
thankfully i have manage to clear the problem
what im trying to do is
automated bot to bot trade
im having issues with auto-sell in my server (probably due to lag)
so my solution is : when my bot reach 50% weight i need to unload his stuff to my merchant
this is what ive come up :

Code: Select all

automacro dealmorocc {
	weight > 50%
	location morocc, anthell01, anthell02, moc_fild12, moc_fild20, cmd_fild08
	run-once 1
	call {
		do conf attackAuto 0
		$player = @player (Biene)
		do move 125 105 morocc <--- the merchant is standing by at 127 105
		pause 5
		do deal "$player"
		do deal add @rand(3,20) 
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal add @rand(3,20)
		do deal 
		do deal
		do conf attackAuto 2
		pause 5	
		do relog 3 
		release all
		}
}
well i hope someone in here can put my macro to good use :)
hamncheese
Noob
Noob
Posts: 5
Joined: 25 Sep 2012, 10:20
Noob?: Yes

Re: Auto Trade problem, Bot cancels the trade

#4 Post by hamncheese »

additional note :
it appears the bot will cancel the trade if the item hes trying to trade is un-trade able
such as :
Armor Of Valor