Date: 2015/11/28 20:02:46 UTC-08:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
npcchat:
type: format
format: "<&b><npc.name><&f><&co> <&a><text>"
Quest1:
type: assignment
actions:
on assignment:
- trigger name:click state:true
- trigger name:chat state:true
interact scripts:
- 1 QuestStart
QuestStart:
type: interact
steps:
1:
Click Trigger:
Script:
- if !<player.has_flag[finished_quest_1]> && !<player.has_flag[quest_1_stage_1]> && !<player.has_flag[quest_1_stage_2]> && !<player.has_flag[quest_1_stage_3]> {
- narrate format:npcchat "Greetings newcomer, before I will send you on your adventure into the wilds I have one minor quest for you."
- wait 2
- narrate format:npcchat "I assume you have heard of these strange, magical beings that randomly appeared in the world?"
- wait 2
- narrate format:npcchat "Well now, I managed to catch a few specimens in my newest invention called the Pokéball!"
- wait 2
- narrate format:npcchat "So, how would you like it to obtain one of your own?"
- narrate format:npcchat "<white>Would you like to know more, write Yes or No."
}
- if <player.has_flag[quest_1_stage_2]> {
- narrate format:npcchat "Welcome back <player.name>, do you have my package?"
- wait 2
- if <player.inventory.contains[nether_brick_item]> {
- narrate format:npcchat "Oh you do, splendid! hand it over, please."
- take nether_brick_item quantity:1
- wait 5
- narrate format:npcchat "Now, take a few seconds to decide which pokemon you'd like"
- wait 10
- flag player quest_1_stage_3
- flag player quest_1_stage_2:!
- narrate format:npcchat "Which pokemon would you like to start off with?"
- narrate "write the name of the starter pokemon, starting with a capitol"
}
}
- if <player.has_flag[finished_quest_1]> {
- narrate format:npcchat "Hey <player.name>! How is my old Pokémon doing?"
- queue clear
}
Chat Trigger:
1:
Trigger: /Yes/, please. This all sounds so interesting!
Script:
- if !<player.has_flag[quest_1_stage_1]> && !<player.has_flag[quest_1_stage_2]> && !<player.has_flag[quest_1_stage_3]> !<player.has_flag[finished_quest_1]> {
- narrate format:npcchat "Splendid! now for this 'quest' of yours, could you swing by the PokeMart and fetch me my package that I ordered?"
- wait 2
- narrate format:npcchat "The PokeMart is located on the Market place, you can't miss it really!"
- create player Shop_Assistant <npc.location> save:Shop_Assistant
- spawn Shop_Assistant l@-45,87,-235,world
- adjust <server.list_online_players.exclude[<player>]> hide_entity:<entry[Shop_Assistant].created_npc>
- flag player quest_1_stage_1
}
2:
Trigger: /No/, thank you. I have no time.
Script:
- ^disengage
3:
Trigger: /regex:.+/, please.
Script:
- if <player.has_flag[quest_1_stage_3]> {
- if !<li@Bulbasaur|Squirtle|Charmander|Chikorita|Totodile|Cyndaquil|Treecko|Mudkip|Torchic|Turtwig|Piplup|Chimchar|Snivy|Oshawott|Tepig.contains[<context.message>]> {
- narrate format:npcchat "<&c>...I do not have that pokemon!"
- queue clear
}
- narrate format:npcchat "Very well, <context.message> it is!"
- execute as_server "pokegive <player.name> <context.message> lvl5"
- flag player finished_quest_1
- flag player quest_1_stage_3:!
- firework location:<player.location> power:1 type:star primary:yellow flicker trail
- wait 5
- narrate format:npcchat "Here, these items might come in handy at some point!"
- execute as_server "give <player.name> 4908 3"
- execute as_server "give <player.name> 4675 6"
}