viewing paste Unknown #22890 | Athena

Posted on the
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
z@prt,151,192,0 script  Holy Fountain#Ins       89,{
if( @ZombieTurned )
{
        dispbottom "You proceed to drink the Holy Water";
        sleep2 2000;
        atcommand "@damageignore";
        instance_announce -1,"You revived back to normal, you may continue attacking the Zombies!",bc_map;
//      atcommand "@cashmount";
        showscript "I can feel myself turning back to normal...";
        atcommand "@effect 500";
        sleep2 100;
        atcommand "@effect 500";
        sleep2 100;
        atcommand "@effect 500";
        sleep2 100;
        atcommand "@undisguise";
        sleep2 100;
        sc_start SC_INVINCIBLE, 1, 0;
        @ZombieTurned--;
} else
}
 
 
-       script  ZombieTurned    -,{
OnPCDieEvent:
        if( has_instance("z@prt") != "" ) {
@Ins_Start = 0;
@ZombieTurned = 0;
 // OnPCDieEvent triggered if the instance z@prt aka Zombie Massacre is active
//sleep2 100;
// IF INSTANCE IS ACTIVATED AND YOUR ZOMBIE STATUS IS 0
if( !@Ins_Start && !@ZombieTurned )
{
// 'ZombieTurned gets added so next time you die from label OnPCDieEvent it just ends, OR YOU could make it game-over if you DIE AS ZOMBIE (Optional)
@ZombieTurned++;
        sleep2 2000;
        atcommand "@raise";
        atcommand "@disguise 1865";
        atcommand "@damageignore";
        sc_start SC_INVINCIBLE, 100000, 0;
        instance_announce -1,"Oh no! it seem's you've been turned into a Zombie! Proceed to the center of Prontera and drink water from the Holy Fountain to gain your abilities back and return to normal.",bc_map;
} else
dispbottom "Ins not started";
//enablenpc instance_npcname("Holy Fountain#Ins");
//donpcevent instance_npcname("SpwnMonster#Ins")+"::OnTurnZombie";
//}
//} else
} else
#Ins_Start = 0;
#ZombieTurned = 0;
dispbottom "Reset debug";
}
Viewed 354 times, submitted by unknown.