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
|
// TMW2/LoF scripts.
// Authors:
// Jesusalva
// Description:
// Deploys an Homunculus in a mission during your offline time
017-10,61,34,0 script Dispatcher NPC_JOURNALMAN,{
mesn;
mesq l("Hello.");
if (!is_admin())
close;
if (!gethominfo(0)) {
mesc l("You do not own an Homunculus."), 1;
}
switch (homstatus()) {
case 0:
mesc l("Your homunculus is ready!"), 2;
break;
case 1:
mesc l("Your homunculus is sleeping! Wake them up!"), 3;
close;
break;
case 2:
mesc l("Your homunculus is already on a mission!"), 1;
break;
default:
mesc l("ERROR! code "+homstatus()), 1;
break;
}
if (homstatus()) {
select
l("Recall");
recallhomunculus();
gethomunexp(50000);
close;
}
select
l("Deploy to Piou Fields [1h]"),
rif(gethominfo(6) >= 10, l("Deploy to Mines [1h]")),
l("Don't deploy");
mes "";
// Ignored
if (!homstatus() && gethominfo(0)) {
deployhomunculus();
mesc l("Deployed!"), 2;
}
close;
OnInit:
.sex=G_MALE;
.distance=5;
end;
}
|