Jump to content
  • 0

PvP warper


Yudax

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

prontera,147,171,6 script PVP Warper#h2-1::Warpep 967,{

mes "You have ^FF0000"+#CASHPOINTS+" Cash Points^000000.";

set .@i,select("Death Match:Battle Room:Guild vs Guild");

warp .MapName$[.@i],0,0;

end;

OnInit:

setarray .MapName$[0],"guild_vs1","guild_vs2","guild_vs3";

end;

OnPCDieEvent:

set #CASHPOINTS,#CASHPOINTS - 1;

dispbottom "Lost 1 Cash Point.";

if( strcharinfo(3) == .MapName$[0] || strcharinfo(3) == .MapName$[1] || strcharinfo(3) == .MapName$[2] ){

message strcharinfo(0),"You died and will be revived.";

sleep2 500;

atcommand "@Alive";

warp .MapName$[0],0,0;

}

end;

OnPCKillEvent:

if( strcharinfo(3) == .MapName$[0] || strcharinfo(3) == .MapName$[1] || strcharinfo(3) == .MapName$[2] ){

if( killedrid != getcharid(2) ){

set #CASHPOINTS,#CASHPOINTS+1;

dispbottom "Gained 1 Cash Points . Total = "+#CASHPOINTS;

}

}

end;

}

guild_vs1 mapflag pvp

guild_vs2 mapflag pvp

guild_vs1 mapflag gvg

When i warp to any of the three. The pvp is off

And after the person died. It wont warp back to prontera but instead it goes to guild_vs1

Edited by jmusc10
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

trunk/conf/mapflag/gvg.txt

// GvG Arenas =============
guild_vs1 mapflag gvg
guild_vs2 mapflag gvg
guild_vs3 mapflag gvg
guild_vs4 mapflag gvg
guild_vs5 mapflag gvg

these map are GVG maps by default....you cant set both PVP and GVG mapflag in 1 map....

you have to remove the GVG map..and set the PVP map...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

Thank you sir. But how to make the person revive at prontera. not on guild_vs1?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

remove this

if( strcharinfo(3) == .MapName$[0] || strcharinfo(3) == .MapName$[1] || strcharinfo(3) == .MapName$[2] ){
message strcharinfo(0),"You died and will be revived.";
sleep2 500;
atcommand "@Alive";
warp .MapName$[0],0,0;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

Thank you Sir. SOLVED!

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