forked from johnl0l/AdobeRO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoResPvp.txt
54 lines (50 loc) · 1.91 KB
/
AutoResPvp.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
48
49
50
51
52
53
54
// [========================================================]
// [=========== Auto Res pvp System ============]
// [========================================================]
// [ Version 1 ]
// [========================================================]
// [ Original script by: Alayne ]
// [========================================================]
// [ Description: ]
// [--------------------------------------------------------]
// [ ]
// [ - Auto res on pvp map ]
// [ ]
// [========================================================]
// [ Changelog: (5 last updates) ]
// [--------------------------------------------------------]
// [ ]
// [ v0: Creation ]
// [ ]
// [========================================================]
// [ ]
// [========================================================]
- script AutoRes::alaure HIDDEN_WARP_NPC,{
end;
OnPCDieEvent:
.@found = 0;
for( .@i = 0; .@i < getarraysize(.autoresMap$) && .@found == 0; .@i++ )
{
if(strcharinfo(3) == .autoresMap$[.@i])
{
.@found = 1;
addtimer .secondsDelay * 1000, strnpcinfo(3) + "::OnAutoRes";
}
}
end;
OnAutoRes:
charcommand "#alive " + strcharinfo(0);
for( .@i = 0; .@i < getarraysize(.buffList); .@i++ )
{
sc_start .buffList[.@i], .buffDuration[.@i] * 60000, .buffLevel[.@i];
}
end;
OnInit:
initnpctimer;
setarray .autoresMap$, "izlude", "prontera", "geffen";
.secondsDelay = 5;
setarray .buffList, SC_INCAGI, SC_BLESSING;
setarray .buffLevel, 10, 10;
setarray .buffDuration, 2, 1; //in minutes
end;
}