Jump to content

4vs4 Team PVP/GVG Gateway


Recommended Posts


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

Title: 4vs4 Team PVP/GVG Gateway

Author: jTynne - [email protected]

Version History:

v0.1 (Beta): December 7th, 2011

This is the unoptimized release of a 4vs4 Team PVP/GVG Gateway script.

Features:

Allows players to join one of four teams with four players per team within 30 seconds of the first person signing up. After all four teams are filled, all 16 players are warped into the PVP/GVG arena (guild_vs1) in their appropriate corners to duke it out.

Important: Future revisions will have additional features.

Notes:

This script is currently unfinished! It has been tested (Thank you Jasc @ ElysiumRO.net for testing!) in its current version, and is ready for usage, however, this is a very basic script. Use it in conjunction with other scripts (PVP Ladders / Point Systems, etc) and see what you can come up with!

Feel free to adjust this script to your liking. Please do not redistribute without giving proper credit and a link back to my site. (www.justintynne.com) - Thank you!

Download: http://jtynne.com/rAthena/scripts/4VS4PARTYPVP.txt

Additional Notes:

If you use this script or find it useful, please consider sending a small donation my way to show your thanks for the creation of this script. You may use the script without sending a donation, however, any help is appreciated as it allows me to keep my web hosting online and my internet connection online! Donations can be sent via Paypal to [email protected] -- Thank you! I will gladly list your name below and in the script's header if you send a donation in, as well as your server name/link.

Thank You!

The individuals listed below have sent in a donation as thanks for my writing this script.

  • Upvote 6
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   2
  • Joined:  12/01/11
  • Last Seen:  

Looks like a very promising script. I haven't been able to test it out yet but I was wondering how difficult it would be to increase the amount from 4 to something else. You could potentially add a variable that defines each team amount.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

tested this, very very good script.

I altered it slightly so its just 4v4 and not 4v4v4v4, for players with a lower population, finding 16 players may be difficult at first.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

I'm sure someone could optimize the code a bit and store the char ID's via an array, but I'm not the one to do it unfortunately. You could continue my unoptimized method of assigning individual global variables per new player you want added in, though I HIGHLY suggest storing them in an array. If I knew the proper way, I'd do it myself for ya. =(

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  81
  • Reputation:   1
  • Joined:  01/06/12
  • Last Seen:  

pleas edit pvp 4 team delay 10 hours

and get prize

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

nice????

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

i hope u update this can restrict item :)...

like no mini boss card upgrade rate is +4 only the restriction of item

and can u please make this automated

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

Hello. Can you modify this to two team participants only?

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

pleas edit pvp 4 team delay 10 hours

and get prize

bump

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  04/26/12
  • Last Seen:  

Hello. Can you modify this to two team participants only?

http://pastebin.com/raw.php?i=3eXT0m6y

Edited by Euphy
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

Hi! I hope you can make a modification wherein the winning team will get rewards. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

This is just a skeleton base script. The further modifications are up to you to come up with! But, perhaps I'll release something to that effect in the distant future if no one else gets to it first. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

Hi sir jTynne! I read the script release guidelines, I wish i could have approval from you to edit your script. Actually I made a modification up to my knowledge [since I'm starting to learn rAthena scripting]. As I try out the script, I found some loopholes that players can abuse so...

What I did was:

  • Party security checks
  • Changed the map to bat_b02.
  • Modified the party battle to 2vs2 [since I'm just trying to test the script, later on I'll extend it to 4vs4 again]
  • When a player kills a player from the opposing team, the killer get rewards [Valor Badge for the moment].
  • Mapwarp all players when the match ends

I need your help though for the following:

  • The players when killed are warp to the specified spot but they are still dead. I don't know how to make them alive once they are warped out of the map.
  • When the game match ends, all players will receive a reward.

This is my modification to the script. I hope anybody can help out. This is a Party Battle Royale Script that can be substituted or can be used aside from Battlegrounds.

LINK: http://pastebin.com/hKEfy39R

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

Great work, paopao!

What I typically do when I warp players who are dead, is under an OnPCDieEvent: label, I simply add something like..

OnPCDieEvent:

atcommand "@alive";

sleep2 100;

warp "map",x,y;

end;

As for the game match end.. I suppose that could be handled one of two or more ways: Storing player data in an array, then looping at the end of the match to distribute the rewards, or storing player data in an SQL table and then looping to reward each player.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

OnPCDieEvent:

atcommand "@alive";

sleep2 100;

warp "map",x,y;

end;

It worked! Now my only problems are the following:

  • When the game match ends, all players will receive a reward. Idea please!
  • Is there an event that triggers when the player logs off? Because the player count should also decrease when a player logs off.

EDIT:

Already made use of the OnPCLogout event and a timer which is the maximum time limit for the match and works too.

I hope anybody can help out with this last problem:

  • When the game match ends, all players will receive a reward. Idea please!

Edited by paopao
Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  225
  • Reputation:   5
  • Joined:  05/30/12
  • Last Seen:  

ahmm, what if i have 4 different map?



how can i change it into 7v7?

Edited by Myth
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/01/13
  • Last Seen:  

OnPCDieEvent:

atcommand "@alive";

sleep2 100;

warp "map",x,y;

end;

It worked! Now my only problems are the following:

  • When the game match ends, all players will receive a reward. Idea please!
  • Is there an event that triggers when the player logs off? Because the player count should also decrease when a player logs off.

EDIT:

Already made use of the OnPCLogout event and a timer which is the maximum time limit for the match and works too.

I hope anybody can help out with this last problem:

  • When the game match ends, all players will receive a reward. Idea please!

I am thinking on winner rewards too. If it used like Last man standing, it will need 1 players stand, instead of the last member of winner team. Yeah, we really need Idea about this. /pat

 

 

ahmm, what if i have 4 different map?

how can i change it into 7v7?

Maybe this will help.

pvp 7vs7.txt

Link to comment
Share on other sites

  • 5 weeks later...

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

Neat script. One request though, how do I add a broadcast of the winning team once the round ends?

Edited by rqueen
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  08/20/13
  • Last Seen:  

nice . i will try this when i back home. :D

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

Hi, is it possible to request for 4vs4 only two teams ? east and west only

 

thanks in advance

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

Sir boom can you make it 7v7 or 10v10

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
Reply to this topic...

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