Jump to content
  • 0

someone who can reorganize my script i made please


secondL

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

i dunno about much scripting but..

 this is not necessary

 

 

guild_vs3    mapflag    nowarp " } "
 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

You can use Recovery command instead of atcommand

recovery 0;// revive and/or heal the player attached
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   1
  • Joined:  02/03/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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