viewing paste Unknown #11642 | 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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
prontera,155,174,5  script  Santa Claus 718,{
donpcevent strnpcinfo(0)+"::OnTrigger";
end;
 
OnInit:
setarray $@coordinate_x,153,151,151,153,157,159,159,157;
setarray $@coordinate_y,178,176,172,170,170,172,176,178;
set .size,getarraysize( $@coordinate_x );
for( set .@i,0; .@i < .size; set .@i,.@i + 1 ){
    movenpc "Cookie#"+.@i,$@coordinate_x[.@i],$@coordinate_y[.@i];
    setnpcdisplay( "Cookie#"+.@i,1246 );
}
 
sleep 1500;
// end; // auto start
 
OnTrigger:
if( !.status ){
    set .status,1;
    initnpctimer;
   
    while( .status ){
        specialeffect 96;
        specialeffect 55;
        sleep 500;
        specialeffect EF_FIREPILLARBOMB;
        sleep 750;
        donpcevent "::OnEffect";
        specialeffect EF_SPR_LIGHTPRINT;
       
        set $@coordinate_x[.size],$@coordinate_x[0];
        set $@coordinate_y[.size],$@coordinate_y[0];
        deletearray $@coordinate_x[0],1;
        deletearray $@coordinate_y[0],1;
       
        donpcevent "::OnWalk";
        sleep 1000;
    }
   
}
end;
 
OnTimer15000:
    // set .status,0;    // uncomment to cancel loop
    npctalk "Ho~ho~ho~ Merry Christmas ~~";
    initnpctimer;
    end;
   
OnTimer1000:
    soundeffectall "wewish.wav",0;
    end;
   
}
 
 
-   script  sprite_display  -1,{
OnWalk:
if( strnpcinfo(2) != "" ){
    npcspeed 250;
    set .@value,atoi( strnpcinfo(2) );
    npcwalkto $@coordinate_x[.@value],$@coordinate_y[.@value];
}
end;
OnEffect:
    specialeffect 686;
    specialeffect 709;
    end;
}
 
 
prontera,1,1,4  duplicate(sprite_display)   Cookie#0    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#1    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#2    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#3    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#4    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#5    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#6    111
prontera,1,1,4  duplicate(sprite_display)   Cookie#7    111
Viewed 1279 times, submitted by Emistry.