myTreasureHuntWorldScript: type: world debug: true events: on script reload: - note cu@-673,50,-300,creative|-675,50,-305,creative as:AreaName - note cu@128,14,158,creative|133,17,162,creative as:SecondStep - note cu@73,2,-420,superflat|77,6,-430,superflat as:goldcastle - note cu@-360,70,-36,creative|-366,77,-40,creative as:blackboard on player enters AreaName - choose : - case 2: - flag MsKnocklebyScriptStep:++ - narrate "You found the first location." targets: - narrate "Next area to find is....." targets: on player enters secondstep: - choose : - case 3: - flag MsKnocklebyScriptStep:++ - narrate "You found the hidden spot! Hurray!" targets: - narrate "The next step to find is...." targets: MsKnocklebysTreasureHunt: type: assignment actions: on assignment: - trigger name:proximity toggle:true - trigger name:chat toggle:true - trigger name:click toggle:true - trigger name:damage toggle:true - lookclose toggle:true on click: - if queue clear - flag npc_cooldown duration:2s - choose : - case 0: - chat "Hello, would you like to do a treasure hunt? Type yes if you do." - case 1: - chat "Great! Travel northwest from here until you find some giant trees!" - flag MsKnocklebyScriptStep:2 - case 2: - chat "Do you need another hint......... Look for...." - case 3: - choose : - case 0: - chat "You can have little loops here. Give the first hint here." - flag HintScriptStep:++ - case 1: - chat "Put the second hint here." - flag HintScriptStep:++ - case 2: - chat "Put the third hint here." - flag HintScriptStep:0 - case 4: - chat "Hooray, you did it! Let me pay you $20 as a reward!" - give money qty:20 - flag mytreasurehuntScriptStep:5 - case 5: - chat "You have already done the quest" - flag mytreasurehuntScriptStep:0 on chat: - if queue clear - flag npc_cooldown duration:1s - choose : - case 0: - if == { - wait 1 - narrate "Okay good! click to continue!" - flag mytreasurehuntScriptStep:1 } else { - narrate "Maybe another time." }