Jump to content
  • 0
Sign in to follow this  
karazu

Autobuff

Question

5 answers to this question

Recommended Posts

  • 0

Is it possible that in a certain map all the players will get buffs like Agi and Bless every 1 min?

Yes

-	script	autobuffs	-1,{OnPCLoginEvent:	addtimer 60000,"autobuffs::OnBuffs";	end;OnBuffs:	sc_start SC_INC_AGI,240000,10;	sc_start SC_BLESSING,240000,10;	specialeffect2 EF_INCAGILITY;	specialeffect2 EF_BLESSING;	addtimer 60000,"autobuffs::OnBuffs";	end;}

Share this post


Link to post
Share on other sites
  • 0

 

Is it possible that in a certain map all the players will get buffs like Agi and Bless every 1 min?

Yes

-	script	autobuffs	-1,{OnPCLoginEvent:	addtimer 60000,"autobuffs::OnBuffs";	end;OnBuffs:	sc_start SC_INC_AGI,240000,10;	sc_start SC_BLESSING,240000,10;	specialeffect2 EF_INCAGILITY;	specialeffect2 EF_BLESSING;	addtimer 60000,"autobuffs::OnBuffs";	end;}

where to put the map? like for example   prontera,izlude

 

 

Ohh ok so its in all map? wow ok I wll test it..

Edited by karazu

Share this post


Link to post
Share on other sites
  • 0

 

 

Is it possible that in a certain map all the players will get buffs like Agi and Bless every 1 min?

Yes

-	script	autobuffs	-1,{OnPCLoginEvent:	addtimer 60000,"autobuffs::OnBuffs";	end;OnBuffs:	sc_start SC_INC_AGI,240000,10;	sc_start SC_BLESSING,240000,10;	specialeffect2 EF_INCAGILITY;	specialeffect2 EF_BLESSING;	addtimer 60000,"autobuffs::OnBuffs";	end;}

where to put the map? like for example   prontera,izlude

Ok here:

-	script	autobuffs	-1,{OnInit:	setarray .@map_name$, "prontera","izlude";	.@size_map = getarraysize( .@map_name$ );	for ( .@i = 0; .@i < .@size_map; .@i++ )		setmapflag .@map_name$[.@i], mf_loadevent;	.map$ = implode( .@map_name$, "|" );	end;OnPCLoadMapEvent:	if (!compare(.map$,strcharinfo(3))) end;	addtimer 60000,"autobuffs::OnBuffs";	end;OnBuffs:	sc_start SC_INC_AGI,240000,10;	sc_start SC_BLESSING,240000,10;	specialeffect2 EF_INCAGILITY;	specialeffect2 EF_BLESSING;	addtimer 60000,"autobuffs::OnBuffs";	end;}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.