Autobuff

karazu

New member
Messages
1,115
Points
0
Is it possible that in a certain map all the players will get buffs like Agi and Bless every 1 min?

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

Code:
-	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;}
 
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..

 
Last edited by a moderator:
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:

Code:
-	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;}
 
Back
Top