autsell item via-voucher

Philippines

Moderators: waferbaron, Moderators

Forum rules
This server is currently not maintained and tables folder (including connection info) is outdated. Read the wiki for instructions on how to update those information. Please contribute your updated info. Contact Cozzie to join the team as a regular server supporter.
Message
Author
yinyangv10
Noob
Noob
Posts: 1
Joined: 27 Feb 2014, 23:05
Noob?: Yes

autsell item via-voucher

#1 Post by yinyangv10 »

AutoSell Via-Pub Vazilos Voucher

automacro pub {
run-once 1
call {
do move 50 50
pause 15
do chat create "S>vadon card=1v|hydra card 2v|thara card 3v" 2 0 414
}
}

automacro deal {
console /(.*) \(level (.*)\) Requests a Deal/i
call {
pause 2
do deal
pause 30
do deal no
}
}

automacro check {
console /(.*) added Item to Deal\: Unknown \#7519 (.*)/i
call {
$sell = @Inventory (Vadon Card)
$item = $.lastMatch2
if ($item == 1) goto item

$sell1 = @Inventory (Hydra Card)
$item1 = $.lastMatch3
if ($item == 2) goto item1

$sell2 = @Inventory (Thara Frog Card)
$item2 = $.lastMatch4
if ($item == 3) goto item2

$sell3 = @Inventory ()
$item3 = $.lastMatch5
if ($item == 3323) goto item3

$sell4 = @Inventory ()
$item4 = $.lastMatch6
if ($item == 2343) goto item4

$sell5 = @Inventory ()
$item5 = $.lastMatch7
if ($item == 8343) goto item5

pause 2
do deal no
stop

:item
pause 1
do deal add $sell
pause 1
do deal
pause 1
do deal
stop


:item1
pause 1
do deal add $sell1
pause 1
do deal
pause 1
do deal
stop

:item2
pause 1
do deal add $sell2
pause 1
do deal
pause 1
do deal
stop

:item3
pause 1
do deal add $sell3
pause 1
do deal
pause 1
do deal
stop

:item4
pause 1
do deal add $sell5
pause 1
do deal
pause 1
do deal
stop

:item5
pause 1
do deal add $sell5
pause 1
do deal
pause 1
do deal
stop

}
}

User avatar
SkylorD
Moderators
Moderators
Posts: 1166
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: autsell item via-voucher

#2 Post by SkylorD »

I don't know what you want boy, but there are some errors.

$item2 = $.lastMatch4
$item1 = $.lastMatch3
if ($item == 2) goto item1

You are doing the wrong compararison.


There aren't any regular expression for this call.

automacro pub and deal are correct.
But :
console /(.*) added Item to Deal\: Unknown \#7519 (.*)/i
I found something that can help ya (Second post ,page 6) :

http://forums.openkore.com/viewtopic.ph ... 6&start=50

Its better.
Learn rules

Post Reply