This is the macro script that is causing the error.
When using zeny for trade everything is fine but when trading item to item
assertion failed is prompting.
automacro sit {
console /^Your Coordinates/i
call {
do chat create "B>Matchstick 10/30M ea deal" 2 0 1234
do sit; do conf dealAuto 0
}
}
automacro dersadeal {
console /(.*) \(level (.*)\) Requests a Deal/i
call {
do deal
pause 15
do deal no
}
}
automacro check {
console /(.*) added Item to Deal: (.*) x (\d+)/
call check1
}
macro check1 {
$item = $.lastMatch2
$amount = $.lastMatch3
$item1 = Matchstick
$item2 = None
$item3 = None
$item1price = 30000000
$item2price = 0
$item3price = 0
$credit = @inventory (Life Insurrance Certificate)
if ($item == $item1) goto item1
if ($item == $item2) goto item2
if ($item == $item3) goto item3
do deal no
stop
:item1
$total1 = @eval ($amount*$item1price)
do deal add $credit $total1
pause 2
do deal; do deal
stop
:item2
$total2 = @eval ($amount*$item2price)
do deal add $credit $total2
pause 2
do deal; do deal
stop
:item3
$total3 = @eval ($amount*$item3price)
do deal add $credit $total3
pause 2
do deal; do deal
stop
}
automacro final {
console /(.*) finalized the Deal/i
call {
do deal; do deal
}
}
automacro stop {
run-once 1
inventory "Matchstick" > 10
call {
do quit
}
}
