forked from HerculesWS/Hercules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoldpc.txt
47 lines (40 loc) · 1.37 KB
/
goldpc.txt
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
//===== Hercules Script =======================================
//= Sample: NPC Trader
//===== By: ==================================================
//= KirieZ
//===== Current Version: =====================================
//= 20230225
//===== Description: =========================================
//= Demonstrates GoldPC System script commands.
//============================================================
prontera,150,150,4 script GoldPC Tests 1_M_01,{
mes("Select the options below to change your GoldPC");
next();
switch (select("Disable GoldPC", "Set GOLDPC_NORMAL with 30 minutes played", "Set GOLDPC_DOUBLE keeping my Play Time", "Set GOLDPC_NORMAL resetting played time")) {
case 1:
setgoldpcmode(0);
break;
case 2:
// 30 * 60 seconds = 1800 seconds (30 minutes)
setgoldpcmode(GOLDPC_NORMAL, 30 * 60);
break;
case 3:
// setgoldpcmode(GOLDPC_DOUBLE, -1) would achieve the same result (-1 is the default value for the 2nd param)
setgoldpcmode(GOLDPC_DOUBLE);
break;
case 4:
setgoldpcmode(GOLDPC_NORMAL, 0);
break;
}
mes("Done");
close();
}
- script Login GoldPC FAKE_NPC,{
end;
OnPCLoginEvent:
// Give GOLDPC_DOUBLE for players below level 30, which will be kept this way until they log out.
// Once they log in being above level 30, they will get the default mode defined in features.conf.
if (BaseLevel < 30)
setgoldpcmode(GOLDPC_DOUBLE);
end;
}