Jump to content
  • 0

PvP warper


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted

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...

Posted

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

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...