Jump to content
  • 0

Help me with PvP Deathmatch


Hyoru

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   11
  • Joined:  01/30/12
  • Last Seen:  

Hi, i tryied to make myself, it works... well sometimes works and others times just stop work... i have no idea what is the problem...

Here is the Script:

- script deathmatch -1,{

OnPCDieEvent:
getmapxy(.@mapa$,.@x,.@y,0);
for ( set .@i,0; @i < getarraysize(.mapaspvp$); set .@i,.@i+1 ) {
if ( .@mapa$ == .mapaspvp$[.@i] ) {
  dispbottom "You will respawn in 3 Seconds.";
  sleep2 3000;
  warp "pvp_y_2-2",0,0;
  atcommand "@alive";
  atcommand "@heal";
end;
}
}
end;
OnInit:
setarray .mapaspvp$[0],"pvp_y_2-2";
end;
}

Thanks Advanced,

Hyoru.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   253
  • Joined:  11/11/11
  • Last Seen:  

Nvm o_o... I need to sleep..

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   71
  • Joined:  11/08/11
  • Last Seen:  

try this one, since you are using just one map, you don't really need an array.

http://pastebin.com/raw.php?i=CkWTnxst

also you don't need to @heal since @alive already gives full hp/sp to the character

Edited by EvilPuncker
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...