Macro rubah Rice Pouch jadi Sweet Rice
Pengaturan :
[1] $i dan $b jangan di ganti, biarkan 0
[2] $c adalah banyak Rice Pouch yg mo di tuker jadi Sweet Rice
[3] inventory "Rice Pouch" = 14 angka 14 disamakan dengan angka yang anda akan tulis di $c
[4] inventory "Sweet Rice" = 14 angka 14 disamakan dengan angka yang anda akan tulis di $c
Contoh :
Mo buat 100 Sweet Rice
Code:
automacro TanyaNenek {
run-once 1
inventory "Sweet Rice" < 1
inventory "Rice Pouch" = 14
call Move1
}
macro Move1 {
pause 1
do move payon_in01 191 30
pause 1
do talk @npc (193 30) payon_in01
pause 1
call Cucu
}
macro Cucu {
$i = 0
$c = 14
do move payon 213 123
pause 1
while ($i <= $c) as WCucu
do talk @npc (215 127) payon
do talk cont
do talk cont
do talk cont
do talk cont
do talk cont
pause 1
$i++
end WCucu
release TanyaNenek
}
automacro KeNenek {
run-once 1
inventory "Sweet Rice" = 14
call Move2
}
macro Move2 {
pause 1
$b = 0
do move payon_in01 191 30
while ($b <= $c) as LoopNenek
do talk @npc (193 30) payon_in01
do talk cont
pause 1
do talk @npc (193 30) payon_in01
$b++
end LoopNenek
release KeNenek
}
[1] $i dan $b jangan di ganti, biarkan 0
[2] $c adalah banyak Rice Pouch yg mo di tuker jadi Sweet Rice
[3] inventory "Rice Pouch" = 14 angka 14 disamakan dengan angka yang anda akan tulis di $c
[4] inventory "Sweet Rice" = 14 angka 14 disamakan dengan angka yang anda akan tulis di $c
Contoh :
Mo buat 100 Sweet Rice
Code:
$c = 100
inventory "Rice Pouch" = 100
inventory "Sweet Rice" = 100