summaryrefslogtreecommitdiff
path: root/localserver/npc/025-2-4_aegis_blackbox.txt
blob: 524d70404159324e040963cadfd65bbd57a2bd39 (plain) (blame)
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
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  Aegis Shield & Mana Tree Blackbox

//  Syntax:
//  02524_Tree_BlackBox( target name, target GID )
//  02524_Revenge_BlackBox( - )
//  02524_Avenge_BlackBox( deadflag )
function	script	02524_Tree_BlackBox	{
    .@prayer$=getarg(0);
    .@gid=getarg(1);
    .@org=getcharid(3);
    message .@prayer$, strcharinfo(0)+" is praying for you!";
    if (!attachrid(.@gid)) return;
    percentheal 100, 100;
	@purifio=max(gettimetick(2), @purifio)+60;
    attachrid(.@org);
    getmapxy(.@m$, .@x, .@y, 0);
    .@mob=monster(.@m$, .@x+any(-2,-3,2,3), .@y+any(-1,0,1), "Pinkie of Doom", PinkieSuseran, 1);
    unitattack(.@mob, .@org);
    return;
}

function	script	02524_Revenge_BlackBox	{
    return;
}

function	script	02524_Avenge_BlackBox	{
    return;
}