AutoTrade[Made Easy] by Gamenikko

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

Moderator: Moderators

titsky
Noob
Noob
Posts: 4
Joined: 18 Sep 2010, 04:03
Noob?: No
Location: Philippines

Re: AutoTrade[Made Easy] by Gamenikko

#41 Post by titsky »

@TS
What programming language did you used for your macro creator?
I wonder if you could post the source code for me, i'm learning and want to modify it for my need. Is it possible? TIA. =)

I'll be willing to share my accomplishments for the benefit of others. =)
krisma
Human
Human
Posts: 36
Joined: 05 Mar 2009, 07:47
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#42 Post by krisma »

do not download or use this PL,the TS has added some hidden command that will deal all your zenny to his character(s)
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: AutoTrade[Made Easy] by Gamenikko

#43 Post by gamenikko »

krisma wrote:do not download or use this PL,the TS has added some hidden command that will deal all your zenny to his character(s)
WTF is that? Consult all openkore admins and see for your self!
Just like old times.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#44 Post by EternalHarvest »

gamenikko wrote:Consult all openkore admins and see for your self!
Binary, on a site where it can't be downloaded normally, related to macro plugin which has its own security issues.
metalmarine
Noob
Noob
Posts: 13
Joined: 16 May 2011, 10:41
Noob?: No

Re: AutoTrade[Made Easy] by Gamenikko

#45 Post by metalmarine »

lol, I just thought of making my own macro for autotrade, but I thought of just searching for existing one, and I found this thread.

This could be the solution for the macro. Register the name of the dealer, then when checking for the items check again the name, if its not the 1st registered name, then cancel the deal.

add this in dersadeal macro

Code: Select all

$name1 = $.lastMatch1
log $name1
add this in check macro

Code: Select all

$name = $.lastMatch1
log $name
if ($name != $name1) goto dealno
I'm currently testing this, if there could be possible backdoor, and as of now I haven't found one yet.
Mortimal
Developers
Developers
Posts: 389
Joined: 01 Nov 2008, 15:31
Noob?: No

Re: AutoTrade[Made Easy] by Gamenikko

#46 Post by Mortimal »

Your macro is too simple it whont work properly. :/

I use these, and stil have fails:

Macro.txt

Code: Select all

automacro weLogIn{
	priority 1
	console /\[Guild\] You have 0 new emails/
	exclusive 1
	call atFirst
}
macro atFirst{
[
	do conf dealAuto 1
]
	pause 5
[
	log ++++++++++++++++++++
	log First Inventory Chek
	log ++++++++++++++++++++
]
	if (@invamount(@eval($::config{sellItem})) > @eval(@eval($::config{sellItemAmount}) - 1)) goto iChkd
		call getItems
:iChkd
[
	log ++++++++++++++
	log Inventory - Ok
	log ++++++++++++++

	do conf ignoreAll 1
	do conf logConsole 1

	do conf sellStatus needToOpenChat
]
}

automacro openingChat {
	priority 2
	eval ($::config{sellStatus} eq "needToOpenChat") and (Macro::Utilities::getInventoryAmount($::config{sellItem}) > ($::config{sellItemAmount} - 1))
	exclusive 1
	call openChat
	run-once 1
}
macro openChat {
	do chat create "@eval($::config{chatName})" @rand(2,5) 0 NoTaBoT
	do conf dealAuto 0
	do conf sellStatus waitingDeal
	release openingChat
}

automacro dealRequest {
	console /(.+) \(level (\d+)\) Requests a Deal/
	eval ($::config{sellStatus} eq "waitingDeal") and (Macro::Utilities::getInventoryAmount($::config{sellItem}) > ($::config{sellItemAmount} - 1))
	call engageDeal
}
macro engageDeal {
	do conf sellStatus dealingPlayerWaitBuyItem
	do deal
	pause 2
	if ($.lastMatch1 != @eval($::config{bossNick})) goto other
		do deal add @inventory(@eval($::config{gainItem}))
		do deal
		do conf sellStatus dealingPlayerWaitFinilize
	goto end
:other
	do deal add @inventory(@eval($::config{sellItem})) @eval($::config{sellItemAmount})
	do deal
:end
	pause 10
[
	log ++++++++++++++++
	log Dealing Too Long
	log ++++++++++++++++
]
	do conf sellStatus waitingDeal
	do deal no
}

automacro playerOWG {
	console /That person is overweight; you cannot trade\./
	eval $::config{sellStatus} eq "dealingPlayerWaitBuyItem"
	call OWG
}
macro OWG {
	do conf sellStatus dealingPlayerOWG
	do deal no
	do conf dealAuto 1
	do chat modify "@eval($::config{owgChatName})" @rand(2,5) 0 NoTaBoT
	pause 5
	do chat modify "@eval($::config{chatName})" @rand(2,5) 0 NoTaBoT
	do conf dealAuto 0
	do conf sellStatus waitingDeal
}

automacro tradeItemAdded {
	console /^(?!You added)(.+) added Item to Deal\: (.+) x (\d+)/
	eval $::config{sellStatus} eq "dealingPlayerWaitBuyItem"
	call confirmTradeItem
}
macro confirmTradeItem {
[
	if ($.lastMatch2 != @eval($::config{gainItem})) goto error
	if ($.lastMatch3 != @eval($::config{gainItemAmount})) goto error
:ok
	do conf sellStatus dealingPlayerWaitFinilize
]
	pause 10
[
	log ++++++++++++++++
	log Dealing Too Long
	log ++++++++++++++++
:error
	do conf sellStatus waitingDeal
]
	pause 1
	do deal no
}

automacro finalizeDeal {
	console /^(?!You finalized)(.+) finalized the Deal/
	eval $::config{sellStatus} eq "dealingPlayerWaitFinilize"
	call lastDeal
}
macro lastDeal {
	do conf sellStatus getItems
	do deal

	pause 10
[
	log ++++++++++++++++
	log Dealing Too Long
	log ++++++++++++++++
]
	do conf sellStatus waitingDeal
	do deal no
}

automacro completeDeal {
	console /Deal Complete/
	eval $::config{sellStatus} eq "getItems"
	call endDeal
}
macro endDeal {
	do conf sellStatus chekingItems
	call getItems
}
###################################################

macro getItems {
	do conf dealAuto 1
[
	log ++++++++++
	log Geting YGG
	log ++++++++++
]
	do c @storage
	pause 2
	if (@storamount(@eval($::config{sellItem})) > @eval(@eval($::config{sellItemAmount}) - 1)) goto sChkd
		call noItems
:sChkd
[
	log ++++++++++++
	log Storage - Ok
	log ++++++++++++
]
	do storage get @eval($::config{sellItem}) @eval(@eval($::config{sellItemAmount}) - @invamount(@eval($::config{sellItem})))
	pause 1
	do storage close
	pause 1
	do conf sellStatus waitingDeal
	do conf dealAuto 0

}

macro noItems {
[
	log +++++++++++++++
	log Storage - Empty
	log +++++++++++++++
]
	do quit
}
Config.txt:

Code: Select all

sellStatus

chatName 
owgChatName 

gainItem 
gainItemAmount 

sellItem 
sellItemAmount 

bossNick 
This is trading not for zeny but for items, for exaple credits on private servers.
Please use pin function for uploading your file contents!
saffnet
Noob
Noob
Posts: 2
Joined: 03 Oct 2011, 00:40
Noob?: No

Re: AutoTrade[Made Easy] by Gamenikko

#47 Post by saffnet »

EternalHarvest wrote:
gamenikko wrote:Consult all openkore admins and see for your self!
Binary, on a site where it can't be downloaded normally, related to macro plugin which has its own security issues.
see this line on Gamenikko's macro? ::
console /(.*) added Item to Deal: (.*) x (\d+)/
after request a deal and if
if someones gets inside your pub or messages you and type "His name + added Item to Deal: the name of the item your buying and x 100000000...
all your zeny will go to him without trading any items..

Try it for yourself:
example:
1st ur character name is Gamenikko then deal the bot
2nd message him "Gamenikko added Item to Deal: Elite Siege Supply Box x 10000"
then deal and trade... :o :o :o

note: character name and the name on your message must be the same.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#48 Post by EternalHarvest »

saffnet wrote:
console /(.*) added Item to Deal: (.*) x (\d+)/
Yeah, known issue, there's a warning not to do that in macro manual in red color.
saffnet
Noob
Noob
Posts: 2
Joined: 03 Oct 2011, 00:40
Noob?: No

Re: AutoTrade[Made Easy] by Gamenikko

#49 Post by saffnet »

EternalHarvest wrote:
saffnet wrote:
console /(.*) added Item to Deal: (.*) x (\d+)/
Yeah, known issue, there's a warning not to do that in macro manual in red color.


Well... most people are need to be reminded again and again. Just dont use this macro.. :!:
gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: AutoTrade[Made Easy] by Gamenikko

#50 Post by gamenikko »

I have enough of this thread, please turn this down.
I just got warned about the cleanliness of this one,
this program is too simple to begin a debate with.
Thank you.
Just like old times.