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

xbotxxxx
Noob
Noob
Posts: 2
Joined: 15 Mar 2013, 20:37
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#71 Post by xbotxxxx »

Any macros for selling autodeal?
Raider
The Kore Devil
The Kore Devil
Posts: 672
Joined: 22 Feb 2013, 03:40
Noob?: No
Location: The Netherlands

Re: AutoTrade[Made Easy] by Gamenikko

#72 Post by Raider »

xbotxxxx wrote:Any macros for selling autodeal?
This one? http://forums.openkore.com/viewtopic.php?f=55&t=12254
xbotxxxx
Noob
Noob
Posts: 2
Joined: 15 Mar 2013, 20:37
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#73 Post by xbotxxxx »

Raider wrote:
xbotxxxx wrote:Any macros for selling autodeal?
This one? http://forums.openkore.com/viewtopic.php?f=55&t=12254
I was actually redirected here by that thread. lol.

still can't find it. already searched the forum.
Ryoji29
Noob
Noob
Posts: 6
Joined: 10 Apr 2013, 15:08
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#74 Post by Ryoji29 »

Help for my autotrade macro...
my prob is when it get disconnected to the server and reconnect it will not open a chatroom again and just sit any suggestion?? pls thanks and can somebody help me to make it use auto storage i tried to make one but its not working >.< here is my autotrade macro..

Code: Select all

#######################################
########AUTO TRADE#####################
#######################################

automacro openchatroom {
map prontera
delay 1
run-once 1
call openchat
}

macro openchat {
do sit
do move 151 43
do chat create "B>Skel-Bone 29k EACH!!" 2 0 0929
do conf dealAuto 0
}

automacro dersadeal {
console /(.*) \(level (.*)\) Requests a Deal/i
call {
do e e13
$name1 = $.lastMatch1
log $name1
do deal
pause 15
do deal no
}
}


automacro Bogus Items { 
console /(.*) shouts : (.*) added Item to Deal: /i
call {
do deal no
}
}

automacro madaya {
console /(.*) shouts : added (.*) z /i
exclusive 1
call {
do deal no
release madaya
}
}

automacro madaya1 {
console /(.*) shouts : (.*) added (.*) z/i
exclusive 1
call {
do deal no
release madaya1
}
}


automacro madaya3 {
console /(.*?) uses Talkie Box/i
exclusive 1
call {
do deal no
release madaya3
}
}

automacro madaya4 {
console /(.*?) talkie box message/i
exclusive 1
call {
do deal no
release madaya4
}
}


automacro check {
console /(.*) added Item to Deal: (.*) x (\d+)/
call check1
}

macro check1 {
$item = $.lastMatch2
$amount = $.lastMatch3
$item1 = Skel-Bone
$item2 = Fluff
$item3 = Shell
$item1price = 29000
$item2price = 0
$item3price = 0
$name = $.lastMatch1
log $name

if ($item == $item1) goto item1
if ($item != $item2) goto deal no
if ($item != $item3) goto deal no
if ($name != $name1) goto deal no
do deal no

stop


:item1
$total1 = @eval ($amount*$item1price)
do deal add z $total1
pause 0.5
do deal
pause 3
do deal
stop


automacro final {
console /You finalized the Deal /i
call {
do deal
pause 3
do deal
}





enzolitos
Noob
Noob
Posts: 1
Joined: 04 Nov 2013, 02:19
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#75 Post by enzolitos »

Is there anyone who have a link for the autotrade.pl?
I need it please, the first link posted for it is not working now.
Thank you.
jbauson
Human
Human
Posts: 20
Joined: 16 Apr 2008, 02:46

Re: AutoTrade[Made Easy] by Gamenikko

#76 Post by jbauson »

Does anyone here know how to catch if a dealt item is correct?
This one works for a single item, but I want to validate 3 items:

Code: Select all

automacro catchDeal{
   #working for single item only
   console /(.*) added Item to Deal\: (?!Stem)(.+) x (.*)/i
   call {
      log Wrong Item
      do deal no
   }
}
You can create an list to just check such as (existsInList in http://www.openkore.com/index.php/Macro ... ubroutines)
User avatar
SkylorD
Moderators
Moderators
Posts: 1196
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: AutoTrade[Made Easy] by Gamenikko

#77 Post by SkylorD »

jbauson wrote:Does anyone here know how to catch if a dealt item is correct?
This one works for a single item, but I want to validate 3 items:

Code: Select all

automacro catchDeal{
   #working for single item only
   console /(.*) added Item to Deal\: (?!Stem)(.+) x (.*)/i
   call {
      log Wrong Item
      do deal no
   }
}
%s added Item to Deal: %s x %s -> syntax

Do an expression to represent it. Then compare.

Code: Select all

console /(.*) added Item to Deal\:\s(.*) x (.*)/i

i = ignore uppercase and lowercase

$.lastMatch1 = Player Name
$.lastMatch2 = Item Name
$.lastMatch3 = Item Amount
automacro rr {
console /^Player (.*) added Item to Deal\:\s(.*) x (.*)$/i
run-once 1
call {

if ($.lastMatch2 =~ /Garrafa Vazia|Poção de Aprendiz|Banana Assassina/i) goto correctitem
if ($.lastMatch2 !~ /Garrafa Vazia|Poção de Aprendiz|Banana Assassina/i) goto wrongitem

:wrongitem
do eval warning "Wrong items...deal not\n";
do deal no
goto end

:correctitem
do eval warning "Accepting trade...correct items\n";
goto end

:end
release rr


}

}
I didn't use if and else. Those statments gimme problems.

Be careful :
Learn rules
kapuchino
Noob
Noob
Posts: 17
Joined: 24 Nov 2010, 01:46
Noob?: Yes

Re: AutoTrade[Made Easy] by Gamenikko

#78 Post by kapuchino »

and another way to avoid being scam by chat is to rename all item in item.txt that you want to buy...


example
Advanced Field Manual = in item.txt "any name you want"


so when anyone chats or shout macro won't be trigger