Jump to content
  • 0

someone who can reorganize my script i made please


Question

Posted

first of all my script i made is not my own script im just combining some parts of different script to create a new one so im just giving them a credits to their respective author...

 

ok here's the script i made:

prontera,148,171,6	script	Arena Master	808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
end;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "guild_vs2",0,0;
if(strcharinfo(3) == "guild_vs3") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    warp "savepoint",0,0;
}
end;
}
// Mapflags
guild_vs2	mapflag	pvp
guild_vs3	mapflag	pvp
guild_vs2	mapflag	nowarp
guild_vs3	mapflag	nowarp }

so here's the detail:

* its just a PVP Deathmatch and a Normal PVP

* its map are guild_vs2 and guild_vs3

 

i got an error:

[MAP][21:0] [ERROR]:

please someone fix/reorganize this script i made....thank you in advance

10 answers to this question

Recommended Posts

Posted
prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",-;
close;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;
}
// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp

thank you i will try again missie! /ok

 

prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",-;
close;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;
}
// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp

thank you i will try again missie! /ok

YEAH!!!!!!!! IT WORKS LIKE A BOSS!!!!!! THANK YOU MISS NANA!!!!! YOU HELP ME A LOT!!!!!! AND IM SORRY IF I DISTURB YOU AGAIN!!!! BUT OMG YOUR GREAT TO BE HONEST THE LAST SCRIPT YOU FIXED I WAS NAMED IT TO YOU AND THIS SCRIPT, SOME PARTS OF IT WAS ON THAT SCRIPT!!!!!....THANK YOU SO MUCH MISS NANA!!! I WILL NAME IT AGAIN TO YOU /no1/thx

Posted

Another link : http://pastebin.com/raw.php?i=WvrcKeDZ

prontera,148,171,6    script    Arena Master    808,{
    mes "[PvP Warper]";
    menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
    "Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,
    
    L1:
        if (getmapusers("guild_vs2") > 1) goto Lsorry;
        warp "guild_vs2",49,49;
        end;
    
    L2:
        if (getmapusers("guild_vs3") > 1) goto Lsorry;
        warp "guild_vs3",49,49;
        end;

    Lsorry:
        mes "[PvP Warper]";
        mes "Sorry but this PvP Arena is full, maybe you could try another one.";
        close;
    L_No:
        end;

    OnPCDieEvent:
        if(strcharinfo(3) == "guild_vs2") {
            dispbottom "You will respawn in 3 Seconds.";
            sleep2 3000;
            atcommand "@alive";
            atcommand "@heal";
            warp "guild_vs2",0,0;
        }
        if(strcharinfo(3) == "guild_vs3") {
            dispbottom "You will respawn in 3 Seconds.";
            sleep2 3000;
            warp "savepoint",0,0;
        }
        end;
}
// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp
Posted (edited)

Another link : http://pastebin.com/raw.php?i=WvrcKeDZ

prontera,148,171,6    script    Arena Master    808,{
    mes "[PvP Warper]";
    menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
    "Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,
    
    L1:
        if (getmapusers("guild_vs2") > 1) goto Lsorry;
        warp "guild_vs2",49,49;
        end;
    
    L2:
        if (getmapusers("guild_vs3") > 1) goto Lsorry;
        warp "guild_vs3",49,49;
        end;

    Lsorry:
        mes "[PvP Warper]";
        mes "Sorry but this PvP Arena is full, maybe you could try another one.";
        close;
    L_No:
        end;

    OnPCDieEvent:
        if(strcharinfo(3) == "guild_vs2") {
            dispbottom "You will respawn in 3 Seconds.";
            sleep2 3000;
            atcommand "@alive";
            atcommand "@heal";
            warp "guild_vs2",0,0;
        }
        if(strcharinfo(3) == "guild_vs3") {
            dispbottom "You will respawn in 3 Seconds.";
            sleep2 3000;
            warp "savepoint",0,0;
        }
        end;
}
// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp

Sir still i got an error

[Map][16:14] [Error]: 

            atcommand "@alive";
            atcommand "@heal";

You can use Recovery command instead of atcommand

recovery 0;// revive and/or heal the player attached

ok sir thanks for advice

 

bump

Edited by Capuche
Remove the quote and annoying bump
Posted
prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",L_No;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
end;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;

// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp
}
  • Upvote 1
Posted
prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",L_No;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
end;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;

// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp
}

/sob the last script i made your the only one who fixed that then now you fix again....thank you so much nana! i will try this

Posted
prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",L_No;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;
L_No:
end;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;

// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp
}
script error on npc/custom/my npc/pvp warper.txt line 36
	-'3183' Warps
    parse_line: expect command, missing function name or calling undeclared function
	-'279' Shops
    31 : warp "guild_vs3",0,0;
	-'10347' Scripts
    32 :     }
	-'3069' Spawn sets
    33 : end;
	-'45661' Mobs Cached
    34 : 
	-'0' Mobs Not Cached
    35 : // Mapflags
*   36 : 'g'uild_vs2	mapflag	pvp
    37 : guild_vs3	mapflag	pvp
    38 : guild_vs2	mapflag	nowarp
    39 : guild_vs3	mapflag	nowarp
    40 : }

missie i got this error

But if it's just for 2 persons duel, why wouldn't you put them on instanced maps instead?

actually its just an experiment if there will be prompt a message if the room is full, the original capacity of that script is 50players....i will back it again to its original capacity

Posted
prontera,148,171,6    script    Arena Master    808,{
mes "[PvP Warper]";
menu "Deathmatch [" + getmapusers("guild_vs2") + " / 2]",L1,
"Normal PVP [" + getmapusers("guild_vs3") + " / 2]",L2,"Cancel",-;
close;
L1:
if (getmapusers("guild_vs2") > 1) goto Lsorry;
warp "guild_vs2",49,49;
end;
L2:
if (getmapusers("guild_vs3") > 1) goto Lsorry;
warp "guild_vs3",49,49;
end;
Lsorry:
mes "[PvP Warper]";
mes "Sorry but this PvP Arena is full, maybe you could try another one.";
close;

OnPCDieEvent:
if(strcharinfo(3) == "guild_vs2") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
recovery 0;
warp "guild_vs2",0,0;
    }
if(strcharinfo(3) == "guild_vs3") {
dispbottom "You will respawn in 3 Seconds.";
sleep2 3000;
    recovery 0;
warp "guild_vs3",0,0;
    }
end;
}
// Mapflags
guild_vs2    mapflag    pvp
guild_vs3    mapflag    pvp
guild_vs2    mapflag    nowarp
guild_vs3    mapflag    nowarp
  • Upvote 2

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