Jump to content
  • 0

PvP Room effect


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

-    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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

-	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 :D

-	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 :D

Edited by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  07/02/12
  • Last Seen:  

how to add effect to many maps??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

@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;
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...