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
|
// TMW2 Scripts
// Author:
// Jesusalva
// Description:
// Celestia Yeti King's quest. This controls Soren's House and the three keysigns.
// Key #1
// Perform the rite at the Fountain
// Key #2
// Perform the rite at the south lake
// Key #3
// Perform the rite at the Button Area
//
// If the same player performs the rite on different places, HE'LL BE PENALIZED.
// Performing the rite spawn monsters, so watch out.
// Notes:
// I had two options:
// getvariableofnpc(<variable>, "<npc name>")
// This way, each summon point would have .caster and .lifetime
// getvariableofpc(<variable>, <account id>{, <default value>})
// This way, I could use @cast_places to control stuff.
//
// Obviously NPC variables was more sane.
soren,105,57,0 script Soren's House NPC_NO_SPRITE,0,0,{
end;
OnTouch:
end;
}
soren,105,92,0 script Soren's Fountain NPC_NO_SPRITE,0,0,{
end;
OnInit:
.sex = G_OTHER;
.distance = 2;
.casterId=""; // getcharid(3) → Account number!!
.lifetime=0; // When will this gate expire (five minutes) (gettimetick(2) + (60*5))
end;
}
soren,104,143,0 script Soren's Lake NPC_NO_SPRITE,0,0,{
end;
OnInit:
.sex = G_OTHER;
.distance = 1;
.casterId=""; // getcharid(3) → Account number!!
.lifetime=0; // When will this gate expire (five minutes) (gettimetick(2) + (60*5))
end;
}
soren,107,37,0 script Soren's Dizmo NPC_NO_SPRITE,0,0,{
end;
OnInit:
.sex = G_OTHER;
.distance = 3;
.casterId=""; // getcharid(3) → Account number!!
.lifetime=0; // When will this gate expire (five minutes) (gettimetick(2) + (60*5))
end;
}
|