๐ป Ghost Buster
script untuk clear ghost di world, bot memerlukan Neutron Power Glove dan Neutron Pack sebelum mulai. di script nya akan otomatis ambil sesuai storage
# OnLoadโ
bot akan loop ke semua world yang diberikan, bisa banyak bot juga untuk jalanin script ini
# ---- setting ----
setting "delay_after_join" 4
var "worldStorage" store text "WORLD|ID"
# -----------------
# world list
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
execute as "{script.bots.1}" var "worlds" store list ["MYWORLD|ID"]
execute if-true [{var.worlds}="null"] terminate
# collect npg & neutron pack kalau tidak ada di inventory
var "takeItem" store text "false"
execute any-true [{bot.inventory.Neutron_Power_Glove.amount}=0,{bot.inventory.Neutron_Pack.amount}=0] var "takeItem" store text "true"
execute if-true [{var.takeItem}="true"] job schedule [name="collect",search="Neutron Power Glove;1;true;true,Neutron Pack;1;true;true",start_world="{var.worldStorage}"]
execute if-true [{var.takeItem}="true"] job wait "collect"
# loop semua world dan jalankan janitor
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="janitor",type="GHOST",start_world="{var.loop.value}"]
job wait "janitor"
loop end
# drop ulang NPG nya dan Neutron Pack
job schedule [name="inventory",drop="true",items="Neutron Power Glove,Neutron Pack",storage_option="DEF;0;Door",start_world="{var.worldStorage}"]
job wait "inventory"