Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 19:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Auto balance Script for Factions

Discussion on [Release] Auto balance Script for Factions within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
HoaX.'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 48
Received Thanks: 263
[Release] Auto balance Script for Factions

Hier ein kleines Script um die Spieler auf beiden Seiten auszugleichen.
Vielleicht nicht für jeden zu gebrauchen, aber hilfreich.

UM ist sofort freigeschaltet.

Die Spieler loggen sich einfach ein und können einen Character auf der zugewiesenen Seite erstellen.
Dies kann umgangen werden wenn man auf [Delete] klickt im Character Change Window.


Diesen Teil in die Prozedur dbo.usp_Try_GameLogin_Taiwan einfügen:

Code:
-- ********* SHAIYA ALLIANCE ********* --
-- Auto Team balance
-- By [Dev]HoaX (c)2011 - 2015

DECLARE @enabled bit

-- !- 1 = Enabled / 0 = Disabled -!
SET @ENABLED =	1
-- !------------------------------!


IF (@ENABLED = 1)
BEGIN
DECLARE @Country tinyint, @light int, @fury int, @exist int

SET @UserUID = (SELECT TOP 1 UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = @UserID)
SET @exist = (SELECT COUNT(UserUID) FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = @UserUID)

IF (@exist = 0)
BEGIN
	SET @light = (SELECT COUNT(Country) FROM PS_GameData.dbo.UserMaxGrow WHERE Country = 0)
	SET @fury =  (SELECT COUNT(Country) FROM PS_GameData.dbo.UserMaxGrow WHERE Country = 1)
		
	IF (@light <= @fury)
	BEGIN
		SET @Country = 0
	END
	
	IF (@light >= @fury)
	BEGIN
		SET @Country = 1
	END

INSERT INTO PS_GameData.dbo.UserMaxGrow(ServerID, UserUID, Country, MaxGrow, Del)
VALUES(1, @UserUID, @Country, 3, 0)
END
END
-- ************************************** --
HoaX. is offline  
Thanks
5 Users
Old 09/01/2011, 23:12   #2
 
-III-'s Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 212
Received Thanks: 264
Not to sound rude or anything, but your posts go back and forth between English and German, which you obviously speak both quite well. May I make a simple request? Pick a language or post with a translation of both.

Again, I understand this is your choice, I just fail to see the point of bouncing back and forth. All it does is cause a person to need a translator for one post, but not another, and then again for the next.

I suppose if this works for only a DE client, it is sensible, but somehow, I doubt that.

Loose translation for everyone else:

"Here is a small script to balance character creation on both factions. It may not be for all, but it is useful, for some. UM is automatically unlocked.

Players simply log in, and create a toon on an automatically chosen faction screen. Players can bypass this by simply choosing the DELETE option once on the screen.

Insert the following changes into usp_Try_GameLogin_Taiwan:"

Code:
-- ********* SHAIYA ALLIANCE ********* --
-- Auto Team balance
-- By [Dev]HoaX (c)2011 - 2015

DECLARE @enabled bit

-- !- 1 = Enabled / 0 = Disabled -!
SET @ENABLED =	1
-- !------------------------------!


IF (@ENABLED = 1)
BEGIN
DECLARE @Country tinyint, @light int, @fury int, @exist int

SET @UserUID = (SELECT TOP 1 UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = @UserID)
SET @exist = (SELECT COUNT(UserUID) FROM PS_GameData.dbo.UserMaxGrow WHERE UserUID = @UserUID)

IF (@exist = 0)
BEGIN
	SET @light = (SELECT COUNT(Country) FROM PS_GameData.dbo.UserMaxGrow WHERE Country = 0)
	SET @fury =  (SELECT COUNT(Country) FROM PS_GameData.dbo.UserMaxGrow WHERE Country = 1)
		
	IF (@light <= @fury)
	BEGIN
		SET @Country = 0
	END
	
	IF (@light >= @fury)
	BEGIN
		SET @Country = 1
	END

INSERT INTO PS_GameData.dbo.UserMaxGrow(ServerID, UserUID, Country, MaxGrow, Del)
VALUES(1, @UserUID, @Country, 3, 0)
END
END
-- ************************************** --
Credits to the OP.
-III- is offline  
Thanks
10 Users
Old 09/01/2011, 23:17   #3
 
HoaX.'s Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 48
Received Thanks: 263
Thanks, I will do that next time.
HoaX. is offline  
Thanks
2 Users
Old 09/07/2011, 02:29   #4
 
-III-'s Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 212
Received Thanks: 264
I finally got around to testing this out, and figured I would reply back. This does, indeed, work. And it does work quite well.

I am not sure I will use it, as my imbalance in mainly with PvP action, rather than merely fury to light ratio as a whole. 42% UoF and 58% AoL, yet UoF dominates PvP. Closing the percentage gap would only increase UoF's dominance. Anyway, that was a bit off topic...

The true point is, anyone who has a balanced PvP base, or may be starting a server from scratch, this could prove very useful in keeping close Fury vs Light numbers.

Truly a very useful release, and very much appreciated. Nice work.
-III- is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Release]PSC Auto-Cashin-Script
09/03/2010 - Metin2 PServer Guides & Strategies - 74 Replies
Hi http://www.paysafecard.com/fileadmin/templates/im ages/paysafecard-logo.gif Ich release heute ein Auto-Cashin-Script für PaySafeCards. Ich möchte betonen,dass nicht ich dieses Script geschrieben habe, sondern Sapphire. Herzlichen Dank an dieser Stelle. Das Script ist eine Public-Version. Kurz Info zur Funktionsweise:
(Release)Action 6- auto-pots(working script)
03/29/2010 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 1 Replies
ALLL THIS ARE WORKING SCRIPTS FOR ACTION 6 AUTO-POTS alloc(newmem,1024) label(returnhere) label(originalcode) label(exit)
[Release] 2moons Auto Login Script
10/31/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 6 Replies
I wrote this as a quick sample to friend of how to use the PixelChecksum function of AutoIt v3. Please bear in mind that it ONLY works for 1024x768 resolution (as I was running 2Moons in a window mode while developing this proof of concept for a friend.) YOU WILL NEED TO BE RUNNING THE GAMEGUARD EMULATOR. I will possibly be developing this further if there becomes enough demand, If ANYTHING it can be rather help for you people to see howto do pixel checksums (rather than check every...



All times are GMT +2. The time now is 19:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.