You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix broken links and some formatting issues in customization/war of emperium
This is made in a best-effort approach, so not everything is perfectly
formatted nor reviewed. But no more errors in mkdocs build,
which should mean that at least all links are now functional.
``[`Announce`](Announce"wikilink")` "The [" + `[`GetCastleName`](GetCastleName"wikilink")`(.@maps$[.@i]) + "] castle has been conquered by the [" + `[`GetGuildName`](GetGuildName"wikilink")`(`[`GetCastleData`](GetCastleData"wikilink")`(.@maps$[.@i],1)) + "] guild.",bc_all|bc_woe;`
51
-
` }`
52
-
``[`else`](else"wikilink")` {`
53
-
``[`Announce`](Announce"wikilink")` "The [" + `[`GetCastleName`](GetCastleName"wikilink")`(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all|bc_woe;`
announce(sprintf("The [%s] castle has been conquered by the [%s] guild.", GetCastleName(.@maps$[.@i]), GetGuildName(GetCastleData(.@maps$[.@i],1))), bc_all|bc_woe);
53
+
} else {
54
+
announce(sprintf("The [%s] castle is currently unoccupied.", GetCastleName(.@maps$[.@i])), bc_all|bc_woe);
Will check the hour of the day, 00 = Midnight 01 = 1am etc...
87
81
88
-
Only if everything inside the outer bracket is a success will it goto "L_Start" and start the WoE
82
+
This is currentally 9pm (21:00) the `>=` mean if the current time is after 9pm return a success
89
83
90
-
**Example 1**: It is tuesday, it is 10pm, you have just had to restart the server cause it has crash or whatever, it
91
-
runs past that line of code
84
+
`gettime(GETTIME_HOUR) < 23`
92
85
93
-
`if((gettime(4)==2[Hm yes it is `*`{1}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[oh and it is before 23 `*`{1}`*`])) goto L_Start; [I didnt detect any `*`{0}`*` I better goto L_Start]`
86
+
Work the same as above, but will be the end of your WoE, the `<` means if the current time is before 11pm (23:00) it will
87
+
return a success, if at any point the current time is equal to or more that 11pm it will return a fail
`if((gettime(4)==2[Hm yes it is `*`{1}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[wait no it is after 23 `*`{0}`*`])) gotoL_Start; [I detected one or more `*`{0}`*` I better no run this action and let the script carry on]`
91
+
Only if everything inside the outer bracket is a success will it goto "L_Start" and start the WoE
98
92
99
-
**Example 3**: It is Wednesday, it is 10pm
93
+
**Example 1**: It is tuesday, it is 10pm, you have just had to restart the server cause it has crash or whatever, it
94
+
runs past that line of code
100
95
101
-
`if((gettime(4)==2[Wait it is not day 2 `*`{0}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[oh and it is before 23 `*`{1}`*`])) goto L_Start; [I detected one or more `*`{0}`*` I better no run this action and let the script carry on]`
96
+
`if((gettime(4)==2[Hm yes it is `*`{1}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[oh and it is before 23 `*`{1}`*`])) goto L_Start; [I didnt detect any `*`{0}`*` I better goto L_Start]`
`if((gettime(4)==2[Hm yes it is `*`{1}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[wait no it is after 23 `*`{0}`*`])) goto L_Start; [I detected one or more `*`{0}`*` I better no run this action and let the script carry on]`
106
101
107
-
Same as above, used for checking the day, you will need one of these for everyday you make, that is unless you decide to
108
-
have one everyday at the same time then I wont mind, you will need just one, and it wont need to check the day
102
+
**Example 3**: It is Wednesday, it is 10pm
109
103
110
-
`gettime(3)==23`
104
+
`if((gettime(4)==2[Wait it is not day 2 `*`{0}`*`]) && (gettime(3)>=21[Yes it is after 21 `*`{1}`*`] && gettime(3)<23[oh and it is before 23 `*`{1}`*`])) goto L_Start; [I detected one or more `*`{0}`*` I better no run this action and let the script carry on]`
111
105
112
-
This would be the hour you want the WoE to end at, again 1 is needed for every WoE day/time you set
113
106
114
-
**Example 1**: This query is reached after passing through the first "Example 2"
\[Seems the arguments above me havent picked this query up yet\]
111
+
Same as above, used for checking the day, you will need one of these for everyday you make, that is unless you decide to
112
+
have one everyday at the same time then I wont mind, you will need just one, and it wont need to check the day
119
113
120
-
`if((gettime(4)==2[Why yes, it is day 2 `*`{1}`*`]) && (gettime(3)==23[and it is hour 23 `*`{1}`*`])) goto L_End;[I didnt see any `*`{0}`*` better run this`
114
+
`gettime(3)==23`
121
115
122
-
This will then end your WoE
116
+
This would be the hour you want the WoE to end at, again 1 is needed for every WoE day/time you set
123
117
124
-
**Example 2**: This query is reached after passing through the first "Example 3"
118
+
**Example 1**: This query is reached after passing through the first "Example 2"
125
119
126
-
It is Wednesday, it is 10pm
120
+
It is the same, Tuesday and 11:30pm
127
121
128
-
\[Seems the arguments above me havent picked this query up yet\]
122
+
\[Seems the arguments above me havent picked this query up yet\]
129
123
130
-
`if((gettime(4)==2[Why no, it isnt day 2 `*`{0}`*`]) && (gettime(3)==23[and it is not hour 23 `*`{0}`*`])) goto L_End;[I see one or more `*`{0}`*` better not run this or stupid people will post bugs]`
124
+
`if((gettime(4)==2[Why yes, it is day 2 `*`{1}`*`]) && (gettime(3)==23[and it is hour 23 `*`{1}`*`])) goto L_End;[I didnt see any `*`{0}`*` better run this`
125
+
126
+
This will then end your WoE
127
+
128
+
**Example 2**: This query is reached after passing through the first "Example 3"
129
+
130
+
It is Wednesday, it is 10pm
131
+
132
+
\[Seems the arguments above me havent picked this query up yet\]
133
+
134
+
`if((gettime(4)==2[Why no, it isnt day 2 `*`{0}`*`]) && (gettime(3)==23[and it is not hour 23 `*`{0}`*`])) goto L_End;[I see one or more `*`{0}`*` better not run this or stupid people will post bugs]`
131
135
132
136
## Setting WoE Times
133
137
@@ -142,29 +146,29 @@ If you still don't understand this, try the WoE Setter NPC I made to guide you t
142
146
your scripts_custom.conf and talk to the NPC in game with a GM level 99.
0 commit comments