PewN Posted July 10, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share Posted July 10, 2012 can anyone help me. when player is on guild_vs2. all player wil decrease their hp every 1 seconds how can i do it? Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 10, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 10, 2012 - script PainAndSuffering -1,{ OnInit: setmapflag "guild_vs2",mf_loadevent; end; OnPCLoadMapEvent: while(strcharinfo(3)=="guild_vs2") { if (HP > 1000) set HP, HP-1000; // or whatever sleep2 1000; } end; } Quote Link to comment Share on other sites More sharing options...
PewN Posted July 10, 2012 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Author Share Posted July 10, 2012 (edited) - script PainAndSuffering -1,{ OnInit: setmapflag "guild_vs2",mf_loadevent; end; OnPCLoadMapEvent: while(strcharinfo(3)=="guild_vs2") { if (HP > 1000) set HP, HP-1000; // or whatever sleep2 1000; } end; } oh thx! i will try it is this a infinite? everytime they will reduce hp? ok its working nice thx euphy - script PainAndSuffering -1,{ OnInit: setmapflag "guild_vs2",mf_loadevent; end; OnPCLoadMapEvent: while(strcharinfo(3)=="guild_vs2") { if (HP > 1000) set HP, HP-1000; // or whatever sleep2 1000; } end; } how about. healing every sec? cuz i set that hP+ but my hp is buggy. how can i do it to heal? after i go out. my hp also set to max hp btw already solve thx euphy. i make it to percentheal Edited July 10, 2012 by bVersatile Quote Link to comment Share on other sites More sharing options...
rifkichocobo Posted July 12, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 07/02/12 Last Seen: April 27, 2014 Share Posted July 12, 2012 how to add effect to many maps?? Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 12, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 12, 2012 @rifkichocobo: - script PainAndSuffering -1,{ OnInit: setarray .maps$[0],"guild_vs2","guild_vs3","guild_vs4"; // etc. for(set .@i,0; .@i<getarraysize(.maps$); set .@i,.@i+1) setmapflag .maps$[.@i],mf_loadevent; end; OnPCLoadMapEvent: for(set .@i,0; .@i<getarraysize(.maps$); set .@i,.@i+1) if (strcharinfo(3)==.maps$[.@i]) { set .@map$,.maps$[.@i]; break; } if (.@map$=="") end; while(strcharinfo(3)==.@map$) { if (HP > 1000) set HP, HP-1000; // or whatever sleep2 1000; } end; } Quote Link to comment Share on other sites More sharing options...
Question
PewN
can anyone help me. when player is on guild_vs2. all player wil decrease their hp every 1 seconds how can i do it?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.