Jump to content
  • 0

PVP DEATHMATCH MODE


secondL

Question


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

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

Recommended Posts


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

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


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  02/18/12
  • Last Seen:  

i think scprit u edit ...maybe working.

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:  

i think scprit u edit ...maybe working.

i got error on that script i dont know how to fix it

bump pls pls pls

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:  

Save the script as ANSI not Unicode.

  • 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:  

Save the script as ANSI not Unicode.

Missie, i save it in ANSI code and i also tab at the header, yet still i got error....

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:  

Are you using rAthena?

  • 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:  

Are you using rAthena?

yeah up to the latest, hmmmmmm im try to edit some script i got but still i failed...haaaaist

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:  

Post your whole script, maybe there's some typo on it.

  • 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,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
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:  

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

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?

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,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
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:  

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

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,166,6<tab>script<tab>Arena Master<tab>808,{

Save and reload :)

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

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:  

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

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:

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:  

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?" ;)

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:  

[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

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:  

I have edited the script, I forgot to add 0,0

See post #16.

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:  

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?

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:  

Yep, just use the script on post #16.

  • 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:  

[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

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:  

hey i try the script again you rewrite on the 2nd test

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:  

Does it work?

  • Upvote 1
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...