Jump to content

Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted

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;

  • 0
Posted
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

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

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