testing: type: world debug: false events: on server loads: - wait 5t - announce "Server Start" to_console on player enters plains: - announce "Player enters " to_console on player exits plains: - announce "Player exits " to_console on player places block: - announce "Placing in " to_console on item crafted in testing: - announce "<&co> " to_console on item crafted: - announce "ping<&co> " to_console on snowball hits block: - announce "mat " to_console on player right clicks pig: - announce "pig<&co> " - determine cancelled on player right clicks horse: - announce "horse<&co> " - determine cancelled on player chats: - if queue stop - define server - define player - define msg - bungee all { - announce "<&rb>%server%<&lb><&rb>%player%<&lb> %msg%" } stone_boner: type: item material: i@stone display name: stone boner test_sword: type: item material: i@diamond_sword display name: Pickle Sword lore: - "Sword of Pickles" ################### Drwal: type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 3 zniszcz_drewno cchat: type: format format: "<&5>[Ncraft.eu]<&9><&6>=><&2>" zniszcz_drewno: type: interact steps: 1: click trigger: script: - if || queue clear - if { - narrate "Mozesz powtorzyc ten quest za " - queue clear } - if { - zap 2 - queue clear } - flag player npc_engaged - engage - narrate format:cchat "Witaj chcialbys zaliczyc ten quest ?" - narrate " <&5>[Odpisz Tak <&5>lub Nie]" - disengage - flag player npc_engaged:! chat trigger: 1: trigger: /Tak/. Co mam zrobic ? script: - if { - queue clear } - if { - zap 2 - queue clear } - engage - narrate format:cchat "Wiec tak wiesniacy nie maja czym palic." - narrate format:cchat "Aby zaliczyc ten quest musisz sciac i przyniesc drewno dla wiesniakow" - narrate " [Zetnij i przynies 40 drewna]" - flag player zniszcz_drewno_quest - flag player zniszcz_drewno_quest_count:0 - disengage - zap 2 2: trigger: /Nie/. Mam teraz wazniejsze sprawy. script: - if queue clear - random { - narrate format:cchat "Trudno" - narrate format:cchat "Bywa" - narrate format:cchat "Spodziewalem sie innej odpowiedzi" - narrate format:cchat "Liczylem na ciebie" - narrate format:cchat "Zawiodlem sie na tobie" - narrate format:cchat "Nie spodziewalem sie tego po tobie" - narrate format:cchat "szkoda" - narrate format:cchat "Liczylem na inna odpowiedz" - narrate format:cchat "myslalem ze znajdziesz dla mnie troche czasu" } 2: click trigger: script: - if || queue clear - if { - narrate "Mozesz powtorzyc ten quest za " - queue clear } - if { - zap 1 - queue clear } - flag player npc_engaged - engage - if >= 3 { - narrate format:cchat "Dobra robota! Oto twoja nagroda!" - give money qty:300 - flag player zniszcz_drewno_quest_count:! - flag player zniszcz_drewno_quest:! - flag player zniszcz_drewno_quest_cooldown duration:20s - zap step:1 } else { - narrate format:cchat "Witaj chcialbys zaliczyc ten quest ?" - narrate " <&5>[Odpisz Tak <&5>lub Nie]" } - disengage - flag player npc_engaged:! drewnoquest_drewno_world: type: world events: on player breaks birch_log: - if ! queue clear - flag player zniszcz_drewno_quest_count:++ - if >= 3 { - narrate " <&2>[Wroc z drewnem do Drwala]" - flag player zniszcz_drewno_quest:! }