Jump to content
  • 0

PVP Script help!


cross10hunter

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

How do i set this to only certain map. this part of script is from Ghost_PVP. I want to limit the players to only WOE maps and PVP rooms only to avoid abuse. 

OnPCKillEvent:
if($icaSystem)
{
    freeloop(1);
if(getgmlevel() >= $icaGMLevel){ end; }
if($icaPvPMap$[0] != "All"){
    for(set .@i, 0; .@i < (getarraysize($icaPvPMap$) - 1); set .@i, .@i + 1){
        if(strcharinfo(3) != $icaPvPMap$[.@i]){ end; }
    }
}
        set #killed$,rid2name(killedrid);
        for(set .@i, 0; .@i <= 127; set .@i, .@i + 1)
        {
            if (@killed$[.@i]=="none")
            {
                set @killed$[.@i],#killed$;
                set @mcountss[.@i],1;
                dispbottom "You have killed: "+@killed$[.@i]+" for "+@mcountss[.@i]+" time/times already";
                break;
            }
            else if (@killed$[.@i]==#killed$)
            {
                set @mcountss[.@i],@mcountss[.@i]+1;
                dispbottom "You have killed: "+@killers$[.@i]+" for "+@mcountss[.@i]+" time/times already";
                if (@mcountss[.@i]>=$icapaybackperiod) {dispbottom "Give that BITCH! some more!";}
                break;
            }
            else if (.@i== 127){break;}    
        }

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

If you don't want specific Maps you could exchange

4 hours ago, cross10hunter said:

if($icaPvPMap$[0] != "All"){
    for(set .@i, 0; .@i < (getarraysize($icaPvPMap$) - 1); set .@i, .@i + 1){
        if(strcharinfo(3) != $icaPvPMap$[.@i]){ end; }
    }
}

with 

if(getmapflag(strcharinfo(3),mf_pvp) == 0 || getmapflag(strcharinfo(3),mf_gvg) == 0) end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

8 hours ago, llchrisll said:

If you don't want specific Maps you could exchange

with 

 


if(getmapflag(strcharinfo(3),mf_pvp) == 0 || getmapflag(strcharinfo(3),mf_gvg) == 0) end;

 

Hi Chris, I want it to be specific map like for example, only guild_vs1,guild_vs2 etc. and only in war of emperium. i dont want them to get points buy just dueling outside that specific map. Thanks

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

23 hours ago, llchrisll said:

If you don't want specific Maps you could exchange

with 

 


if(getmapflag(strcharinfo(3),mf_pvp) == 0 || getmapflag(strcharinfo(3),mf_gvg) == 0) end;

 

when i remove this to change to the script above. I lost my announcer sound. and every thing.

if($icaPvPMap$[0] != "All"){
    for(set .@i, 0; .@i < (getarraysize($icaPvPMap$) - 1); set .@i, .@i + 1){
        if(strcharinfo(3) != $icaPvPMap$[.@i]){ 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...