1 | //===== eAthena Script ======================================= |
---|
2 | //= Variable Management NPC for the god item quest |
---|
3 | //===== By: ================================================== |
---|
4 | //= MasterOfMuppets |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.0 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena |
---|
9 | //===== Description: ========================================= |
---|
10 | //= Use this NPC if the seals quest variables get messed up. |
---|
11 | //===== Additional Comments: ================================= |
---|
12 | // 1.0 First version. [MasterOfMuppets] |
---|
13 | //============================================================ |
---|
14 | |
---|
15 | sec_in02,15,170,0 script Seals Quest Vars 817,{ |
---|
16 | |
---|
17 | if(getgmlevel() > 98) |
---|
18 | { |
---|
19 | mes "[Variable Management]"; |
---|
20 | mes "Welcome to the God Item Quest"; |
---|
21 | mes "Global Variable Management"; |
---|
22 | mes "function."; |
---|
23 | next; |
---|
24 | while(1) |
---|
25 | { |
---|
26 | menu "Check current variable values",s_Values,"Change variable values",s_Change,"Cancel",-; |
---|
27 | close; |
---|
28 | |
---|
29 | s_Change: |
---|
30 | mes "[Variable Management]"; |
---|
31 | mes "Which variable would you"; |
---|
32 | mes "like to change?"; |
---|
33 | next; |
---|
34 | menu "$God1",-,"$God2",s_2,"$God3",s_3,"$God4",s_4; |
---|
35 | |
---|
36 | mes "[Variable Management]"; |
---|
37 | mes "^0000FF$God1^000000 is currently ^FF0000" + $God1 + "^000000."; |
---|
38 | mes "What would you like to"; |
---|
39 | mes "change it to? (Enter"; |
---|
40 | mes "101 to cancel)"; |
---|
41 | next; |
---|
42 | input @temp; |
---|
43 | if(@temp == 101)goto s_Canceled; |
---|
44 | if(@temp < 0 || @temp > 100)goto s_BadValue; |
---|
45 | set $God1,@temp; |
---|
46 | mes "[Variable Management]"; |
---|
47 | mes "^0000FF$God1^000000 was changed to ^FF0000" + $God1 + "^000000."; |
---|
48 | close; |
---|
49 | |
---|
50 | s_2: |
---|
51 | mes "[Variable Management]"; |
---|
52 | mes "^0000FF$God2^000000 is currently ^FF0000" + $God2 + "^000000."; |
---|
53 | mes "What would you like to"; |
---|
54 | mes "change it to? (Enter"; |
---|
55 | mes "101 to cancel)"; |
---|
56 | next; |
---|
57 | input @temp; |
---|
58 | if(@temp == 101)goto s_Canceled; |
---|
59 | if(@temp < 0 || @temp > 100)goto s_BadValue; |
---|
60 | set $God2,@temp; |
---|
61 | mes "[Variable Management]"; |
---|
62 | mes "^0000FF$God2^000000 was changed to ^FF0000" + $God2 + "^000000."; |
---|
63 | close; |
---|
64 | |
---|
65 | s_3: |
---|
66 | mes "[Variable Management]"; |
---|
67 | mes "^0000FF$God3^000000 is currently ^FF0000" + $God3 + "^000000."; |
---|
68 | mes "What would you like to"; |
---|
69 | mes "change it to? (Enter"; |
---|
70 | mes "101 to cancel)"; |
---|
71 | next; |
---|
72 | input @temp; |
---|
73 | if(@temp == 101)goto s_Canceled; |
---|
74 | if(@temp < 0 || @temp > 100)goto s_BadValue; |
---|
75 | set $God3,@temp; |
---|
76 | mes "[Variable Management]"; |
---|
77 | mes "^0000FF$God3^000000 was changed to ^FF0000" + $God3 + "^000000."; |
---|
78 | close; |
---|
79 | |
---|
80 | s_4: |
---|
81 | mes "[Variable Management]"; |
---|
82 | mes "^0000FF$God4^000000 is currently ^FF0000" + $God4 + "^000000."; |
---|
83 | mes "What would you like to"; |
---|
84 | mes "change it to? (Enter"; |
---|
85 | mes "101 to cancel)"; |
---|
86 | next; |
---|
87 | input @temp; |
---|
88 | if(@temp == 101)goto s_Canceled; |
---|
89 | if(@temp < 0 || @temp > 100)goto s_BadValue; |
---|
90 | set $God4,@temp; |
---|
91 | mes "[Variable Management]"; |
---|
92 | mes "^0000FF$God4^000000 was changed to ^FF0000" + $God4 + "^000000."; |
---|
93 | close; |
---|
94 | |
---|
95 | s_Canceled: |
---|
96 | close; |
---|
97 | |
---|
98 | s_BadValue: |
---|
99 | mes "[Variable Management]"; |
---|
100 | mes "Please enter a value"; |
---|
101 | mes "between 0-100."; |
---|
102 | close; |
---|
103 | |
---|
104 | s_Values: |
---|
105 | mes "[Variable Management]"; |
---|
106 | mes "Current variable values are:"; |
---|
107 | mes "^0000FF$God1^000000 = ^FF0000" + $God1 + "^000000."; |
---|
108 | mes "^0000FF$God2^000000 = ^FF0000" + $God2 + "^000000."; |
---|
109 | mes "^0000FF$God3^000000 = ^FF0000" + $God3 + "^000000."; |
---|
110 | mes "^0000FF$God4^000000 = ^FF0000" + $God4 + "^000000."; |
---|
111 | next; |
---|
112 | } |
---|
113 | } |
---|
114 | else |
---|
115 | { |
---|
116 | mes "[Variable Management]"; |
---|
117 | mes "Sorry. You don't have"; |
---|
118 | mes "authorization to use this"; |
---|
119 | mes "npc."; |
---|
120 | close; |
---|
121 | } |
---|
122 | |
---|
123 | } |
---|