Jump to content
  • 0

PVP DEATHMATCH MODE


Question

Posted (edited)
can i request a script for a pvp deathmatch
 
1.a map that have capacity of 10 players
2.once a player die he will resurrect again on a safest place inside the map with a full hp/mp
3.he will get an item as a prize everytime he won on pvp
4.not allowed to use healing item or pots
5.it will broadcast on what happening inside the map ( player a killed player b...he is unstoppable someone kill him)
6.the pvp deathmatch have no time set so the player/s can enter the map anytime they want to play pvp
7. an npc that once they click it they warped them into the map.
 
 
note: i use search button, and i got some scripts even they are simple but i got some error like this
 
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/my npc/test3.txt',
 line '3'. Stopping...
 * w1=if( select("PVP Room [ "+getmapusers("prontera")+"/50 ]:Cancel") == 1 )
 * w2=
 * w3=
 * w4=

 

 
to be honest im newbie in creating ro, i try everything i know to find answer on my question but im always failed that's why i create this thread coz i dont have any idea on how to enable a pvp map/room so please help me : )
Edited by Emistry
Changed ALL CAPS contents....

Recommended Posts

Posted
prontera,148,166,6    script    Arena Master    808,{
if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 ) {
    if( getmapusers("pvp_n_8-5") >= 50 ) { mes "[Arena Master]", "I'm sorry but the PVP Room is already full!"; close; }
    warp "pvp_n_8-5",0,0;
    }
close;

OnPCDieEvent:
if(strcharinfo(3) == "pvp_n_8-5") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "pvp_n_8-5",0,0;
}
end;
}
  • Upvote 1
Posted (edited)
prontera,148,166,6	script	Arena Master	808,,{

if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 )

if( getmapusers("pvp_n_8-5") < 50 )

  warp "prontera",0,0;

OnPCDieEvent:
	if(strcharinfo(3) == "pvp_y_2-2")
	{
		dispbottom "You will respawn in 3 Seconds.";
		sleep2 3000;
		atcommand "@alive";
		atcommand "@heal";
		warp "pvp_n_8-5",0,0;
	}
	end;

can you fix this...i made that script by using combining some line with all the script i got...if it is ok to you

 

cause i got error like this

 

[Error]: Missing 1 right curlys at file 'npc/custom/my npc/test3.txt', line '18'
.
Edited by secondL
Posted

Ahh.. You have 2 commas on the header.

It should be "808,{" with a single comma.



And the map isn't the same --> if(strcharinfo(3) == "pvp_y_2-2") ?? i think you'll want to edit to match with the current pvp map --> pvp_n_8-5

  • Upvote 1
Posted

Ahh.. You have 2 commas on the header.

It should be "808,{" with a single comma.

ok i try to edit again hahhaha thanks for helping me i appreciate it

i edit the script

prontera,148,166,6	script	Arena Master	808,{

if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 )

if( getmapusers("pvp_n_8-5") < 50 )

  warp "prontera",0,0;

OnPCDieEvent:
	if(strcharinfo(3) == "pvp_n_8-5")
	{
		dispbottom "You will respawn in 3 Seconds.";
		sleep2 3000;
		atcommand "@alive";
		atcommand "@heal";
		warp "pvp_n_8-5",0,0;
	}
	end;

but still i got the error

 

[Error]: Missing 1 right curlys at file 'npc/custom/my npc/test3.txt', line '18'
.

i grab the opportunity to ask how to add line if a player die but i want to respawn again with full hp/mp at the arena?

Posted (edited)
prontera,148,166,6    script    Arena Master    808,{
if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 ) {
    if( getmapusers("pvp_n_8-5") < 50 ) warp "prontera",0,0;
    }
close;

OnPCDieEvent:
if(strcharinfo(3) == "pvp_n_8-5") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "pvp_n_8-5",0,0;
}
end;
}

But I don't quite understand, on line "if( getmapusers("pvp_n_8-5") < 50 ) warp "prontera",0,0;" why would you warp to prontera if the players in pvp room is less than 50? I think it should warp you IN to the pvp map, right?

Edited by nanakiwurtz
  • Upvote 1
Posted

whoa! thank you so much i will try the script you made!



whoa! thank you so much i will try the script you made!

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/my npc/test3.txt',
 line '1'. Stopping...
 * w1=prontera,148,166,6    script    Arena Master    808,{
 * w2=
 * w3=
 * w4=

do i need to space between the lines? if yes, i dont know how....im sorry to disturb

Posted
prontera,148,166,6    script    Arena Master    808,{
if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 ) {
    if( getmapusers("pvp_n_8-5") < 50 ) warp "prontera",0,0;
    }
close;

OnPCDieEvent:
if(strcharinfo(3) == "pvp_n_8-5") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "pvp_n_8-5",0,0;
}
end;
}

But I don't quite understand, on line "if( getmapusers("pvp_n_8-5") < 50 ) warp "prontera",0,0;" why would you warp to prontera if the players in pvp room is less than 50? I think it should warp you IN to the pvp map, right?

hahaha to be honest i dont know how can i answer your question but like i said im combining some lines on some script i got to create a new script that fits on what i need like i post on the first line of this thread, the pvp_n_8-5 is a map and i like the arena and i dont know how to use that map in order to create a clean script....hmmmm im so sorry to myself for being trying hard

Posted (edited)

Okay then, I'll rewrite your script.

 

prontera,148,166,6    script    Arena Master    808,{
if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1 ) {
    if( getmapusers("pvp_n_8-5") >= 50 ) { mes "[Arena Master]", "I'm sorry but the PVP Room is already full!"; close; }
    warp "pvp_n_8-5",0,0;
    }
close;

OnPCDieEvent:
if(strcharinfo(3) == "pvp_n_8-5") {
    dispbottom "You will respawn in 3 Seconds.";
    sleep2 3000;
    atcommand "@alive";
    atcommand "@heal";
    warp "pvp_n_8-5",0,0;
}
end;
}
Edited by nanakiwurtz
Posted

hahaha it works the first script you made but when i click it i warped in random place in prontera hahaha im laughing! and thank you again for the second script i will try it now /no1:lol:

Posted
[Error]:  Loading NPC file: npc/custom/my npc/test3.txt
script error on npc/custom/my npc/test3.txt line 4
    parse_callfunc: not enough arguments, expected ','
     1 : {
     2 : if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1
) {
     3 :     if( getmapusers("pvp_n_8-5") >= 50 ) { mes "[Arena Master]", "I'm s
orry but the PVP Room is already full!"; close; }
*    4 :     warp "pvp_n_8-5"';'
     5 :     }
     6 : close;
     7 :
     8 : OnPCDieEvent:
     9 : if(strcharinfo(3) == "pvp_n_8-5") {

i got this error on the script you rewrite...it looks so critical

Posted

Yep, that's why I asked you earlier about it, "why would you warp to prontera if the players in pvp room is less than 50?" ;)

hahaha so i change prontera to pvp_n_8-5?

Posted

[Error]:  Loading NPC file: npc/custom/my npc/test3.txt
script error on npc/custom/my npc/test3.txt line 4
    parse_callfunc: not enough arguments, expected ','
     1 : {
     2 : if( select("PVP Room [ "+getmapusers("pvp_n_8-5")+"/50 ]:Cancel") == 1
) {
     3 :     if( getmapusers("pvp_n_8-5") >= 50 ) { mes "[Arena Master]", "I'm s
orry but the PVP Room is already full!"; close; }
*    4 :     warp "pvp_n_8-5"';'
     5 :     }
     6 : close;
     7 :
     8 : OnPCDieEvent:
     9 : if(strcharinfo(3) == "pvp_n_8-5") {

 

 

still i got error on the script you rewrite

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