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
|
// TMW2 Scripts
// Author: Jesusalva
// Desc: Special functions for killing certain monster types
// Designed by SAULC LE GRANDE
// mobspecial(mobID) → Manual fix for special mobs
function script mobspecial {
.@mobId=getarg(0, killedrid);
switch (.@mobId) {
case WildxChest:
percentheal 70, 0;
break;
case ManaChest:
percentheal 90, 75;
break;
case ThornChest:
percentheal 0, 10;
callfunc "SC_Bonus", (200-readparam2(bVit))/20, SC_POISON, 1;
callfunc "SC_Bonus", (200-readparam2(bVit))/40, SC_CURSE, 1;
break;
case MalignChest:
percentheal -30, 0;
callfunc "SC_Bonus", (200-readparam2(bVit))/20, SC_BLOODING, 1;
callfunc "SC_Bonus", (200-readparam2(bVit))/20, SC_CURSE, 1;
break;
}
return;
}
|