Code: Select all
while ("$list" != "-1" && "$list" != "") as loop
Moderator: Moderators
Code: Select all
while ("$list" != "-1" && "$list" != "") as loop
"Unknown player [-1]. Player not nearby?
[macro log] This is the list of indexes for Guard (\$list): -1
Error in function 'deal' (Deal a Player)
There is no deal to accept"
Code: Select all
automacro moveToMaster {
eval ($field->isCity)
call {
do conf lockMap #Town where master is
do conf lockMap_x
do conf lockMap_y
do move #Where master is located
pause 5
}
run-once 1
}
automacro dealToMaster {
location #Where master is located
call {
do deal @player(#MasterName)
pause 3
if ($.zeny >= 200000) {
do deal add z @eval($.zeny - 100000)
}
$list = @Inventory(Guard [1])
log This is the list of indexes for Guard (\$list): $list
$i = 0
while ("$list" != "-1" && "$list" != "") as loop
$item = [$list]
log We are now adding item number (\$item): $item
log These are the remaining items on the list (\$list): $list
do deal add $item
pause 1
$i++
if ($i = 10) {
$list = ""
}
end loop
pause 1
do deal
pause 1
do deal
}
run-once 1
}
automacro moveToFild {
console /Deal Complete/i
call {
do conf lockMap #farming map
do conf lockMap_x none
do conf lockMap_y none
do move #farming map
do reload macro
}
}
Code: Select all
automacro StorageGetItems {
call {
#do talk @npc (#coordinates)
#do talk resp 1
pause 3
$list = @Storage(Mace [4])
log List of Maces in storage (\$list): $list
while ("$list" != "-1" && "$list" != "") as loop
$item = [$list]
do storage get $item
end loop
pause 1
storage close
}
run-once 1
}
[macro] StorageGetItems.call error: error in 8: syntax error
Code: Select all
$list = @Storage(some shit)
do storage get $list
Code: Select all
automacro StorageGetItems {
call {
$list = @Storage(Mace [4])
do storage get $list
pause 1
storage close
}
run-once 1
}
[macro] StorageGetItems.call error: error in 3: syntax error