luizragna
New member
Hello guys! How can I turn this individual instance into a party instance? (where only the leader can start)
Code:
job_wiz,119,109,4 script Guia Solo 8_F_GIRL,{
if ( has_instance2("dungeon") >= 0 ) {
// dispbottom has_instance2("dungeon") +" destroy";
instance_destroy has_instance2("dungeon");
}
if ( ( .@ins = instance_create( ""+strnpcinfo(NPC_NAME)+"", getcharid(CHAR_ID_ACCOUNT), IOT_CHAR ) ) < 0 ) {
mes "error : "+ .@ins;
close;
}
if ( !getstrlen( instance_attachmap( "dungeon", .@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("dungeon"), 69,47;
end;
}