GrilleIronQuest: type: assignment Actions: on assignment: - trigger name:chat toggle:true - trigger name:click toggle:true #- lookclose state:true Interact Scripts: - 1 IronQuest IronQuestGrille: type: Interact Steps: 1: Click Trigger: Script: - narrate "<&lb><&rb><&co> Did Aranys send you? Just in time, I am about to run out of Iron." - wait 1 - narrate "<&lb><&rb><&co> The Rebels have taken control of the mineshaft and now I am not getting any shipments of Iron from the mine!" - wait 1 - narrate "<&lb><&rb><&co> Could you help me?" - execute as_npc "tellraw ['Click or type ', {text:'Yes',color:green,clickEvent:{action:run_command,value:'Yes'}}, ' to accept the quest, ', {text:'No',color:red,clickEvent:{action:run_command,value:'No'}}, ' to decline.']" chat trigger: 1: trigger: /Yes/, I will help you out! script: - narrate "<&lb><&rb><&co> Good to hear that ! Clear out the rebels inside the mineshaft south-west from here and bring me 10 iron ores." - narrate <&co> Rebellion of the Mine - Quest Started" - zap step:2 2: trigger: /No/, I dont have time for this. script: - narrate "<&lb><&rb><&co> Very well then, come back if you change your mind!" - zap step:1 2: Click Trigger: Script: - if { - narrate "<&lb><&rb><&co> Excellent work, young hero. Here, take these for your trouble" - execute as_npc give LEATHER_LEGGINGS 1 - give xp 100 - zap step:3 } else { - if { - execute as_npc ^take iron_ore qty:10 - finish - zap step:2 } else { - narrate "<&lb><&rb><&co> Clear out the rebels at the mineshaft near by!" }}} 3: Click Trigger: Script: - random 2 - narrate "<&lb><&rb><&co> Thank you for clearing out those rebels from the mines. They are a causing a lot of trouble around here." - narrate "<&lb><&rb><&co> Perhaps one day all of the rebels have been driven out of our lands."