my server use C4 off pack.coz Valakas and Antaras these two BOSS's cave exist some Geodata bugz...players could very easy to hurt these two boss.i think lots pplz know these things..so now i wanna to set these two boss spawned the same time,i means i wanna to spawn these two boss fixation time,like on 8:00am every two day...and i know this setting can use ai to control it...i found some hints,but im rly not good at Nasc...so plz some one could help me?
some one tell me i can inherit this class...but i rly dont know how to do that!
Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc.
That's his mail address evgesha.nrnr@gmail.com , stay away!
@Atom @Celestine
Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc.
That's his mail address evgesha.nrnr@gmail.com , stay away!
@Celestine
@Atom
Question
sandeagle
my server use C4 off pack.coz Valakas and Antaras these two BOSS's cave exist some Geodata bugz...players could very easy to hurt these two boss.i think lots pplz know these things..so now i wanna to set these two boss spawned the same time,i means i wanna to spawn these two boss fixation time,like on 8:00am every two day...and i know this setting can use ai to control it...i found some hints,but im rly not good at Nasc...so plz some one could help me?
some one tell me i can inherit this class...but i rly dont know how to do that!
class 2 default_maker : (null) { parameter: int on_start_spawn = 1; handler: EventHandler ON_START(i0,def0) { if( on_start_spawn == 0 ) { return; } for( i0 = 0; i0 < myself.def_count; i0++ ) { def0 = myself::GetSpawnDefine( i0 ); if( gg::IsNull( def0 ) == 0 ) { if( myself::IncreaseTotal( def0.total ) ) { def0::IncCount( def0.total ); def0::Spawn( def0.total, 0 ); } } } } EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0) { i0 = myself::DecreaseTotal( 1 ); i1 = deleted_def::DecCount( 1 ); if( deleted_def.respawn_time != 0 ) { if( myself::IncreaseTotal( 1 ) ) { deleted_def::IncCount( 1 ); deleted_def::Spawn( 1, deleted_def.respawn_time ); } } } EventHandler ON_SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,def0,i0,i1) { switch( script_event_arg1 ) { case 1000: { for( i0 = 0; i0 < myself.def_count; i0++ ) { def0 = myself::GetSpawnDefine( i0 ); if( gg::IsNull( def0 ) == 0 ) { def0::Despawn(); } } break; } case 1001: { for( i0 = 0; i0 < myself.def_count; i0++ ) { def0 = myself::GetSpawnDefine( i0 ); if( gg::IsNull( def0 ) == 0 ) { i1 = ( def0.total - def0.npc_count ); if( i1 > 0 ) { if( myself::IncreaseTotal( i1 ) ) { def0::IncCount( i1 ); def0::Spawn( i1, script_event_arg2 ); } } } } break; } } } }9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now