viewing paste Unknown #21239 | 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
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 );
    warp instance_mapname( "1@cake", .@instance ), 92,189;
//callfunc ("OnCakeStart");
//  warp instance_mapname( "1@cake", .@instance ), 92, 189;
}
function    script  OnCakeStart {
if(instance_id()) {
warp instance_mapname( "1@cake", .@instance ), 92,189;
}
end;
}
Viewed 657 times, submitted by Guest.