Code: Select all
rubbish = 0
movespeed 100
newgui main [
guilist [
guilist [
guibutton "Quest information" "showgui quests"
guibutton "Inventory" "showgui inventory"
]
guibar
guilist [
guibutton "About" "showgui About"
]
]
guibar
@main
]
newgui inventory [
guibutton "Back" "cleargui 1"
guibar
guitext (format "You currently carry %1 rubbish" (+ $rubbish ))
]
newgui James [
guitext "Oh My Goodness!" chat
guitext "Who are you and where are you from?" chat
guitext "What is that? It crashed and messed up my garden." chat
guitext "You must be responsible on it." chat
guibar
guibutton "What should for you?" "showgui quest1" chat
] "Angry gardener"
newgui quest1 [
if (= $rubbish 10) [
guitext "How many rubbish you have collected?" chat
guitext (format "You have %1 rubbish." $rubbish)
guibar
guilist [
guibutton "10 rubbish." [
grubbish = 10
grubbish = (rnd 10)
rubbish = (- $rubbish 2)
showgui npc1-1
] chat
]
]
]
"level_trigger_1" = [ showgui James ]
"level_trigger_2" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_3" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_4" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_6" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_7" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_8" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_9" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_10" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_11" = [ rubbish = ( + $rubbish 1)
]
"level_trigger_12" = [ rubbish = ( + $rubbish 1)
]
newgui npc1-1 [
guitext "Seems that you have messed up my garden." chat
guitext "So help me to clean my garden." chat
guitext "When you finish collect 10 rubbish." chat
guitext "Go to the big tree there and leave here" chat
guibar
guibutton "I will clean it and leave." "cleargui" chat
] "James"
"level_trigger_20" = [echo"..."; endsp; sleep 1000 [map floody]]
someone please help me tomorrow expired date.ToT