viewing paste Unknown #21242 | 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
-   script  SetCakeWall -1,{
end;
OnInit:
            setwall "1@cake", 89, 185, 7, 6, false, "cakewall";
}
prontera,155,150,4  script  Cakering Instance#a 89,{
    .@md_name$ = "Cakering Instance";
    .@instance = instance_create( .@md_name$, getcharid( 3 ), IOT_CHAR);
    if( .@instance < 0 ) { 
        dispbottom "Instance Failed.";
        end;
    }
 
    dispbottom "^0000ff" + .@md_name$ + "^000000- Attempting to create Cakering Instance.";
    if( instance_attachmap("1@cake",.@instance) == "" ) {
//  if( !instance_attachmap( "yuno_fild02", .@instance, 1, "1@cake" ) ) {
        instance_destroy( .@instance );
        dispbottom "Failed to attach yuno_fild02 as a map!";
        end;
    }
    if( instance_attachmap("2@cake",.@instance) == "" ) {
//  if( !instance_attachmap( "kh_vila", .@instance, 1, "2@cake" ) ) {
        instance_destroy( .@instance );
        dispbottom "Failed to attach 2@cake as a map!";
        end;
    }
 
    dispbottom "^0000ff" + .@md_name$ + " attempt successful!";
    instance_set_timeout( 3600, 300, .@instance );
    instance_init( .@instance );
    donpcevent instance_npcname("SpwnMonster#CK", instance_id())+"::OnInstanceInit";
//  .@warped = 1;
//  warp instance_mapname( "1@cake", .@instance ), 92,189;
    callfunc("OnCakeStart",.@instance);
    sleep2 2000;
/*  if(.@warped == 1) {
    callfunc ("CakeLVL1");*/
//  warp instance_mapname( "1@cake", .@instance ), 92, 189;
//} else
//end;
}
function    script  OnCakeStart {
if( getarg(0,-1) > 0 ) {
 warp instance_mapname("1@cake",getarg(0)),92,189;
}
}
/*function  script  CakeLVL1    {
    disablenpc "#CakeWarp1";
    .mob = 40; //total number of mobs
    areamonster instance_mapname("1@cake"),97,108,128,76,"Antler",1765,1,strnpcinfo(0)+"::OnCake1";
    areamonster instance_mapname("1@cake"),97,108,128,76,"[TL] False Angel",1371,25,strnpcinfo(0)+"::OnCake1"; 
    end;
OnCake1:
    .mob1--;
    if ( !.mob1 ) {
    enablenpc "#NPCNAME"*/
//function  script  CakeWarp#1::cwarp1  {
 
1@cake,1,1,1    script  SpwnMonster#CK  -1,{
 
OnInstanceInit:
    disablenpc instance_npcname("CK_1stFloor");
    disablenpc instance_npcname("CK_2ndFloor");
    disablenpc instance_npcname("CK_3rdFloor");
    disablenpc instance_npcname("CK_4thFloor");
    disablenpc instance_npcname("CK_5thFloor");
    disablenpc instance_npcname("CK_end");
    end;
OnEvent1:
 
instance_announce -1,"Monsters!!!!",bc_map;
areamonster instance_mapname("1@cake"),95,200,110,215,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 90000;
areamonster instance_mapname("1@cake"),96,201,111,216,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 30000;
areamonster instance_mapname("1@cake"),97,202,112,216,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 10000;
areamonster instance_mapname("1@cake"),97,25,54,115,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
end;
OnEvent2:
 
instance_announce -1,"Monsters!!!!",bc_map;
areamonster instance_mapname("2@cake"),125,60,145,50,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 90000;
areamonster instance_mapname("2@cake"),120,45,145,65,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 30000;
areamonster instance_mapname("2@cake"),125,70,125,50,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
end;
OnEvent3:
 
instance_announce -1,"Monsters!!!!",bc_map;
areamonster instance_mapname("2@cake"),18,60,40,48,"Poring",1515,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 90000;
areamonster instance_mapname("2@cake"),20,45,40,60,"Poring",1686,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
/*sleep 30000;
areamonster instance_mapname("1@cake"),97,202,112,216,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 10000;
areamonster instance_mapname("1@cake"),97,25,54,115,"Poring",1062,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";*/
end;
OnEvent4:
 
instance_announce -1,"Monsters!!!!",bc_map;
disablenpc instance_npcname("CK_1stFloor");
areamonster instance_mapname("2@cake"),15,123,50,123,"Poring",1275,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 90000;
areamonster instance_mapname("2@cake"),15,110,49,110,"Poring",1735,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 30000;
areamonster instance_mapname("2@cake"),20,112,45,112,"Poring",1736,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
 
sleep 10000;
areamonster instance_mapname("2@cake"),20,119,44,119,"Poring",1737,1,instance_npcname("SpwnMonster#CK")+"::OnThisMobDeath";
end;
OnEvent6:
 
instance_announce -1,"Monsters!!!!",bc_map;
monster instance_mapname("2@cake"),80,40,"White Lady",1630,1,instance_npcname("SpwnMonster#CK")+"::OnThisBoss2Death";
sleep 2000;
instance_announce -1,"Maria: Une valkyrie d�chue?! Cela explique cette attaque... Tuez la, elle est trop dangereuse!",bc_map;
end;
 
OnThisMobDeath:
set 'CK_Restant,'CK_Restant - 1;
    if('CK_Restant == 0){
        instance_announce -1,"Etc",bc_map;
        set 'CK_Restant,'CK_MobCount;
        'CK_Count='CK_Count+1;
        donpcevent instance_npcname("Count#CK", instance_id())+"::OnCountWarp";
        end;
    }
    else{
        instance_announce -1,"Mob count"+'CK_Restant+" monsters!",bc_map;
    }
end;
    
OnThisBossDeath:
 
instance_announce -1,"Making progression!",bc_map;
'CK_Count='CK_Count+1;
donpcevent instance_npcname("Count#CK", instance_id())+"::OnCountWarp";
end;
 
 
OnThisBoss2Death:
instance_announce -1,"Etc",bc_map;
sleep 2500;
enablenpc instance_npcname("CK_end");
instance_announce -1,"Warp out soon",bc_map;
.CK_fin = 1;
sleep 60000;
//callfunc "CompleteInstance",60072,'DT_Party;
 
instance_destroy();
end;
}
1@cake,1,2,1    script  Count#CK    -1,{
 
OnCountWarp:
 
if ('CK_Count==1){
    enablenpc instance_npcname("CK_1stFloor");
    end;
    }
    
if ('CK_Count==2){
    enablenpc instance_npcname("CK_2ndFloor");
    end;
    }
    
if ('CK_Count==3){
    enablenpc instance_npcname("CK_3rdFloor");
    end;
    }
 
if ('CK_Count==4){
    enablenpc instance_npcname("CK_4thFloor");
    end;
    }
 
if ('CK_Count==5){
    enablenpc instance_npcname("CK_5thFloor");
    end;
    }
    
if ('CK_Count==6){
    enablenpc instance_npcname("CK_end");
    end;
    }
}
1@cake,92,211,0 script  CK_1stFloor 45,1,1,{    end;    OnTouch:    warp has_instance("2@cake"),80,11end; }
2@cake,90,48,0  script  CK_2ndFloor 45,1,1,{    end;    OnTouch:    warp has_instance("2@cake"),116,47; end; }
2@cake,72,54,0  script  CK_3rdFloor 45,1,1,{    end;    OnTouch:    warp has_instance("2@cake"),42,54end; }
2@cake,84,66,0  script  CK_4thFloor 45,1,1,{    end;    OnTouch:    warp has_instance("2@cake"),44,107; end; }
2@cake,32,128,0 script  CK_5thFloor 45,1,1,{    end;    OnTouch:    warp has_instance("2@cake"),23,171; end; }
2@cake,72,82,0  script  CK_end  45,1,1,{        end;    OnTouch:    if (.CK_fin = 1) { mes "Good job"; close2; warp "prontera",150,150; } else end;
}
//Mapflags
1@cake  mapflag nowarp
1@cake  mapflag nowarpto
1@cake  mapflag noteleport
1@cake  mapflag nosave  SavePoint
1@cake  mapflag nomemo
1@cake  mapflag nobranch
1@cake  mapflag noicewall
1@cake  mapflag monster_noteleport
1@cake  mapflag partylock
1@cake  mapflag noicewall
 
2@cake  mapflag nowarp
2@cake  mapflag nowarpto
2@cake  mapflag noteleport
2@cake  mapflag nosave  SavePoint
2@cake  mapflag nomemo
2@cake  mapflag nobranch
2@cake  mapflag noicewall
2@cake  mapflag monster_noteleport
2@cake  mapflag partylock
2@cake  mapflag noicewall
 
1@cake  mapflag src4instance
2@cake  mapflag src4instance
Viewed 779 times, submitted by Guest.