prontera,155,180,0 script Test Instance 1_F_MARIA,{
if ( has_instance2("guild_vs2") >= 0 ) {
// dispbottom has_instance2("guild_vs2") +" destroy";
instance_destroy has_instance2("guild_vs2");
}
if ( ( .@ins = instance_create( "Test Instance", getcharid(CHAR_ID_ACCOUNT), IOT_CHAR ) ) < 0 ) {
mes "error : "+ .@ins;
close;
}
if ( !getstrlen( instance_attachmap( "guild_vs2", .@ins, true, ( getcharid(CHAR_ID_ACCOUNT) )+"INST" ) ) ) {
mes "error : 5";
instance_destroy .@ins;
close;
}
instance_set_timeout 3600, 15, .@ins;
instance_init .@ins;
warp has_instance("guild_vs2"), 49,49;
end;
}
guild_vs2,49,49,5 script test dialog 1_F_MARIA,{
dispbottom strnpcinfo(NPC_MAP);
mesf "%d monsters on this map", 'amount;
next;
select "Destroy";
instance_destroy;
end;
OnInstanceInit:
monster has_instance("guild_vs2"), 49,49, "--ja--", PORING, 10, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead";
'amount = 10;
end;
OnMobDead:
--'amount;
if ( !'amount )
instance_announce -1, "all monster killed", bc_map;
end;
}