Jump to content
  • 0

PvP Room effect


Question

4 answers to this question

Recommended Posts

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

Posted (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 :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
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...