ResistanceNeba: type: assignment interact scripts: - 10 NebaInteraction actions: on assignment: - trigger name:click toggle:true - trigger name:proximity toggle:true radius:8 - trigger name:chat toggle:true radius:8 - lookclose state:true NebaInteraction: type: interact steps: 1: proximity trigger: entry: script: - ^playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^random 4 - chat "Don't touch my boat, stranger." - chat "This boat isn't much, but it's mine." - narrate "Neba looks around himself suspiciously." - chat "There's a lot of money to be made trading between towns, you know?" click trigger: script: - playsound location: sound:VILLAGER_NO pitch:0.6 - ^random 4 - ^chat "Get of my boat, stranger!" - ^chat "I'm busy." - ^chat "Leave me alone please." - ^chat "You don't have business with me." - wait 1 - narrate "It seems like this man does not like to hang out with strangers." 2: click trigger: script: - engage 120s - run guarddespawner delay:120 - flag player SpawnedAhava - playsound location: sound:VILLAGER_HAGGLE pitch:0.6 - ^chat "Huh, do I know you?" - wait 3 - playsound location: sound:VILLAGER_IDLE pitch:0.7 - ^chat "Oh, Yrmes sent you?" - wait 3 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat "That's great! Do you have my package?" - wait 2 - execute as_npc "npc spawn Ahava" - playsound location: sound:VILLAGER_NO pitch:0.8 - ^chat "Wait, someone's coming! It's a guard!" - wait 15 - playsound location: sound:VILLAGER_NO pitch:0.5 - ^chat npcid:2 "Are you smuggling goods again, Neba?" - wait 4 - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat npcid:2 "And I see you tricked this adventurer into helping you." - wait 4 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat npcid:2 "Adventurer, hand over the package to me and I will forgive your crimes." - wait 4 - playsound location: sound:VILLAGER_NO pitch:0.8 - ^chat "No, adventurer! Don't give him the package. Kill the guard!" - wait 3 - playsound location: sound:VILLAGER_IDLE pitch:0.7 - ^chat "The people of Port Shazki rely on this medicine." - wait 2 - narrate "Kill the guard or type package to hand over the package." 3: click trigger: script: - if { - narrate "Stop clicking, you are already in a conversation!" } else { - ^flag player TalkingToNPC - equip hand:137 - narrate "You hand over the package to Neba." - wait 1 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat "Thank you! I can't believe you would do this for a stranger." - wait 3 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat "Friend, you have my gratitude." - wait 3 - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat "The people of Port Shazki are in desperate need of this medicine." - wait 2 - equip hand:0 - narrate "Neba puts the package away." - wait 2 - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat "Talk to me again and I'll let you in on a secret." - ^flag player TalkingToNPC:! - zap step:4 } 4: click trigger: script: - if { - narrate "Stop clicking, you are already in a conversation!" } else { - ^flag player TalkingToNPC - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat "I am actually part of the Varanir Resistance." - wait 5 - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat "The Resistance opposses corrupt guards, but most of all..." - wait 5 - playsound location: sound:VILLAGER_NO pitch:0.6 - ^chat "...most of all we fight Mayor Frodeur. He's as evil as they come." - wait 5 - playsound location: sound:VILLAGER_NO pitch:0.8 - ^chat "Ever since he rose to power in Varanir, poverty and famine has been getting worse." - wait 5 - playsound location: sound:VILLAGER_NO pitch:0.5 - ^chat "The cause of this is extremely high taxes and ridicilous laws that benefit nobody but the mayor himself." - wait 5 - playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^chat "Every night he holds a banquet while the people in this town starve." - wait 5 - playsound location: sound:VILLAGER_HAGGLE pitch:0.6 - ^chat "Now that we are fighting back, they dare call us the criminals?" - wait 5 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat "The man who sent you to me, Yrmes, is also a member." - wait 5 - playsound location: sound:VILLAGER_YES pitch:0.6 - ^chat "Speak to him if you wish to join the resistance!" - zap step:5 - zap step:5 script:YrmesInteraction - ^flag player TalkingToNPC:! } 5: click trigger: script: - playsound location: sound:VILLAGER_YES pitch:0.6 - ^random 2 - ^chat "Thanks again for the help, ." - ^chat "This medicine will come to good use in Port Shazki." proximity trigger: entry: script: - ^playsound location: sound:VILLAGER_IDLE pitch:0.6 - ^random 3 - chat "Hello ." - chat "Hello friend, thanks again for your help." - narrate "Neba throws you a smile." guarddespawner: type: task script: - if { - teleport n@Ahava location:295,65,1441,world - execute as_server "npc despawn Ahava" - disengage npc:Neba - flag player SpawnedAhava:! - narrate "You waited too long. Talk to Neba to restart the quest." } guarddespawnertwo: type: task script: - teleport n@Ahava location:295,65,1441,world - execute as_server "npc despawn Ahava" - disengage npc:Neba guarddespawnerinsurance: type: world events: on player quits: - if { - wait 3 - teleport n@Ahava location:295,65,1441,world - execute as_server "npc despawn Ahava" - disengage npc:Neba - flag player SpawnedAhava:! - narrate "Ahava despawned due to player quit or player death." } on server start: - run guarddespawnertwo delay:45