Jump to content

Stolao's Pvp Ladder [v3.1A]


Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   1
  • Joined:  04/02/17
  • Last Seen:  

@Stolao This script is not working, it keeps warning that the room is full or does not check the classes correctly, so it is not possible to enter any room.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   1
  • Joined:  04/15/17
  • Last Seen:  

I get mapflag problems, people can still teleport into the rooms and out.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   1
  • Joined:  04/15/17
  • Last Seen:  

Do I need to create any tables on SQL? Quite confused.

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Updated post to show newest version, might have another version coming soon as well have a few ideas to improve

Edited by Stolao
Link to comment
Share on other sites

  • 3 months later...

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

Hi sir how to i enable autoattack on this script..

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 1/14/2018 at 6:30 PM, kimok02 said:

Hi sir how to i enable autoattack on this script..

No idea what your asking about.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

On 1/15/2018 at 10:30 AM, kimok02 said:

Hi sir how to i enable autoattack on this script..

Do you mean /nc or /ns

noshift

or

noctrl

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

On 7/12/2013 at 12:16 AM, Stolao said:

< Stolao's Pvp Ladder>

 

Features:

 

 

  • A Dynamic Pvp Ladder

Todo:

  • Suggestions?
  • Optimize?

Changelog:
 


3.00 Overhaul
3.01 Fixed missing "No" for "No Ygg"
3.02 Added Show Map Name Option
3.03 Added Max Players Option
3.04 Optimized and fixed SQL queries [Secret]
3.05 Replaced some queries with addrid(0)
3.06 Updated Rewards to RODEX compatable
 

Links:

 

 

the script seems to not work correctly or did i miss a step on how to use it?

this happens when i select pvp ladder ,gvg and personal stats etc.

im using the latest version PvP_ladder 3.16

pvpladder.thumb.PNG.0e2d3e05261efed93eaeee7231eb7a01.PNG

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

1 hour ago, iubantot said:

 

the script seems to not work correctly or did i miss a step on how to use it?

this happens when i select pvp ladder ,gvg and personal stats etc.

im using the latest version PvP_ladder 3.16

pvpladder.thumb.PNG.0e2d3e05261efed93eaeee7231eb7a01.PNG

 

i'm suggest you make GIT issue at stolao GITHUB for fast response

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   6
  • Joined:  12/20/11
  • Last Seen:  

On 2/27/2018 at 4:22 PM, iubantot said:

 

the script seems to not work correctly or did i miss a step on how to use it?

this happens when i select pvp ladder ,gvg and personal stats etc.

im using the latest version PvP_ladder 3.16

pvpladder.thumb.PNG.0e2d3e05261efed93eaeee7231eb7a01.PNG

 

I have the same problem

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 4/7/2018 at 8:30 AM, Loke said:

I have the same problem

 

On 2/27/2018 at 12:22 AM, iubantot said:

 

the script seems to not work correctly or did i miss a step on how to use it?

this happens when i select pvp ladder ,gvg and personal stats etc.

im using the latest version PvP_ladder 3.16

pvpladder.thumb.PNG.0e2d3e05261efed93eaeee7231eb7a01.PNG

 

 

 

I'm not sure why this is happening, its also happening to my local test server as well now, ill try and look into this i just finished doing some updates to my Auto Event, ill take a look at this next

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

@Loke @iubantot

try 3.18 (3.1A if you have latest git)


Updated

3.16->3.1A
3.17 Fixed Typos in Reset PVP Stats
3.18 Removed unnessisary next, creating hang screens
3.19 Made compatable with new mail command
3.1A Reformatted Rewards in conf to support 5 items

 

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/04/17
  • Last Seen:  

Stolao, it seems that the number of players in the pvp room is not being updated.

Edited by klesler
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/04/17
  • Last Seen:  

I think the problem is this "close;"

if(select("Nevermind:Continue") == 1) close;

 

Edited by klesler
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

10 hours ago, klesler said:

Stolao, it seems that the number of players in the pvp room is not being updated.

 

9 hours ago, klesler said:

I think the problem is this "close;"


if(select("Nevermind:Continue") == 1) close;

 

In which part, the scrolling or in the click on?

 

Also that would have 0 effect on it as that only triggers if you are trying to enter a Nightmare PvP map.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/04/17
  • Last Seen:  

Sorry it was my typo,

 

The nightmare room is also not working, I mean, even if I choose to enter it does nothing.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/04/17
  • Last Seen:  

case 1:
			.@m = select(implode(.MapList$,":")) - 1;
			.@executa = 1;
			if( .MapMode[.@m]&2 ){
				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
				if(select("Nevermind:Continue") != 2) .@executa = 0;
			}
			
			if(getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
				mes "Sala Cheia.";
				.@executa = 0;
			} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
				mes "No "+getitemname(607)+" or "+getitemname(608)+" allowed.";
				.@executa = 0;
			} else 	if(.MapMode[.@m]&16){
				mes "No 3rd Classes Allowed.";
				.@executa = 0;
			} else	if(.MapMode[.@m]&32){
				mes "No Trans Classes Allowed.";
				.@executa = 0;
			} 
			
			if (.@executa == 1) { 
				warp .MapName$[.@m],0,0;
				announce "[ PvP Warper ] " + strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" "+((.MapMode[.@m]&2)?"Nightmare":" "),0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);			
			} else {
				close;
			}
	}

I think the close; right after the if() is causing the issue, I solved it a long time ago by just separating it in a case.

Let me re-write the bug report, since I struggled to express myself the previous post:

1 - The nightmare room is not working as intended, even if I choose to enter, I'm not getting teleported

2 - It seems that the banner/chat which appears above the NPC is not being updated with the number of players inside the rooms

Best,
Gabriel.

Edited by klesler
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

6 minutes ago, klesler said:

case 1:
			.@m = select(implode(.MapList$,":")) - 1;
			.@executa = 1;
			if( .MapMode[.@m]&2 ){
				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
				if(select("Nevermind:Continue") != 2) .@executa = 0;
			}
			
			if(getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
				mes "Sala Cheia.";
				.@executa = 0;
			} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
				mes "No "+getitemname(607)+" or "+getitemname(608)+" allowed.";
				.@executa = 0;
			} else 	if(.MapMode[.@m]&16){
				mes "No 3rd Classes Allowed.";
				.@executa = 0;
			} else	if(.MapMode[.@m]&32){
				mes "No Trans Classes Allowed.";
				.@executa = 0;
			} 
			
			if (.@executa == 1) { 
				warp .MapName$[.@m],0,0;
				announce "[ PvP Warper ] " + strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" "+((.MapMode[.@m]&2)?"Nightmare":" "),0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);			
			} else {
				close;
			}
	}

I think the close; right after the if() is causing the issue, I solved it a long time ago by just separating it in a case.

Let me re-write the bug report, since I struggled to express myself the previous post:

1 - The nightmare room is not working as intended, even if I choose to enter, I'm not getting teleported

2 - It seems that the banner/chat which appears above the NPC is not being updated with the number of players inside the rooms

Best,
Gabriel.

Ty, I'll look into this once I can. If you need and any other issue let me know.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/04/17
  • Last Seen:  

I tested it with some changes:

 

.@m = select(implode(.@MapList$,":")) - 1;
			if(.MapMode[.@m]&2){
				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
				if(select("Nevermind:Continue") == 2) {
						if(.MaxPlayers[.@m] && getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
								mes "Room is Full.";
								close;
							} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
							 	mes "No "+getitemname(607)+" or "+getitemname(608)+" Allowed.";
							 	close;
						 	} else 	if(.MapMode[.@m]&16){
								mes "No 3rd Classes Allowed.";
								close;
							} else	if(.MapMode[.@m]&32){
								mes "No Trans Classes Allowed.";
								close;
							} else {
								warp .MapName$[.@m],0,0;
								announce "[ PvP Warper ] "+strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);
							}
				} else { close; }
			}
	}
	end;

And it worked well, maybe it just need some refactoring, but I'll let this part with you :D

The problem was indeed caused by the close; right after your if () {

Best,
Gabriel.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

1 hour ago, klesler said:

I tested it with some changes:

 


.@m = select(implode(.@MapList$,":")) - 1;
			if(.MapMode[.@m]&2){
				mes "You are about to enter NIGHTMARE PvP, on death you will lose gear randomly.";
				if(select("Nevermind:Continue") == 2) {
						if(.MaxPlayers[.@m] && getmapusers(.MapName$[.@m]) >= .MaxPlayers[.@m]){
								mes "Room is Full.";
								close;
							} else	if(.MapMode[.@m]&8 && (countitem(607) || countitem(608))){
							 	mes "No "+getitemname(607)+" or "+getitemname(608)+" Allowed.";
							 	close;
						 	} else 	if(.MapMode[.@m]&16){
								mes "No 3rd Classes Allowed.";
								close;
							} else	if(.MapMode[.@m]&32){
								mes "No Trans Classes Allowed.";
								close;
							} else {
								warp .MapName$[.@m],0,0;
								announce "[ PvP Warper ] "+strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);
							}
				} else { close; }
			}
	}
	end;

And it worked well, maybe it just need some refactoring, but I'll let this part with you :D

The problem was indeed caused by the close; right after your if () {

Best,
Gabriel.

I see my error, on selection of continue it falls through all the way to the end instead of the warp.

 

Ty for reporting

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  03/30/18
  • Last Seen:  

Hi sir!

Thanks for sharing this awesome script! 

May i ask how do show the damage done on players on pvp mode and to disable @atcommands on it?
 

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  10
  • Reputation:   3
  • Joined:  04/11/15
  • Last Seen:  

in game its actually one of the best pvp, rewards and stuff made this just perfect, but i still have this error 

i tried change every "close" on this script but i cant fix it.
thx for the release btw.

 

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 7/1/2018 at 1:30 AM, Inquisitor said:

in game its actually one of the best pvp, rewards and stuff made this just perfect, but i still have this error 

i tried change every "close" on this script but i cant fix it.
thx for the release btw.

  Reveal hidden contents

 

Fixed in 3.1C ty for report

  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   12
  • Joined:  06/22/13
  • Last Seen:  

Hi good day sir, how can i change it to weekly?

And is it possible that I can add a league?

For example: those who have 1 kill point up to 100 kill points is on Novice Rank, 101 kill points up to 200 kill points is on Rookie Rank and after the weekly pvp they will also get prizes. And for every kill you get +5 kills but if you die the other player snatch 5 killpoints then you lose 5 kill points.

Edited by zeek
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 7/31/2018 at 1:46 AM, zeek said:

Hi good day sir, how can i change it to weekly?

And is it possible that I can add a league?

For example: those who have 1 kill point up to 100 kill points is on Novice Rank, 101 kill points up to 200 kill points is on Rookie Rank and after the weekly pvp they will also get prizes. And for every kill you get +5 kills but if you die the other player snatch 5 killpoints then you lose 5 kill points.

to change to weekly edit this part
 

//==================================
OnHour00:	//-- Monthly Rewards
//==================================

	if(gettime(5) == 1 && .Options&128 && .MailType){
gettime(<type>)

This function will return specified information about the current system time.

DT_SECOND - Seconds (of the current minute)
DT_MINUTE - Minutes (of the current hour)
DT_HOUR - Hour (of the current day)
DT_DAYOFWEEK - Week day (constants for MONDAY to SUNDAY are available)
DT_DAYOFMONTH - Day of the current month
DT_MONTH - Month (constants for JANUARY to DECEMBER are available)
DT_YEAR - Year
DT_DAYOFYEAR - Day of the year
DT_YYYYMMDD - current date in the form YYYYMMDD

It will only return numbers. If another type is supplied -1 will be returned.

	if (gettime(DT_DAYOFWEEK) == SATURDAY) mes "It's a Saturday. I don't work on Saturdays.";



as for making it a league, you can do that yourself, just switch it to kda mode, instead or normal pvp mode
 

// 256: Order by KDA instead of most kills

and reference the kda variables for determining which league they are in
 

kda (Kill Death Average)
m_kda (Monthly Kill Death Average)
gvg_kda (Guild Only KDA)
m_gvg_kda (Monthly Guild Only KDA)



but honestly if you want a league style id recommend doing something MMR related 

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