Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 09:37

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

Advertisement



Script for UM preunlocked or unlocked at lvl 1?

Discussion on Script for UM preunlocked or unlocked at lvl 1? within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
Script for UM preunlocked or unlocked at lvl 1?

Does anyone have a script that I can enter into SQL or a edit I can do to my registration form to have UM preunlocked?

EDIT: Code Discovered thanks to the majority of posters on this thread.

Code:
CREATE Proc usp_Read_User_MaxGrow_R

@ServerID tinyint,
@UserUID int

AS

SET NOCOUNT ON

IF NOT EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW <= 3 )
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID AND Country <= 1
END

IF EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW = 3 AND LEVEL >= 0)
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID
END

IF EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW = 3 AND LEVEL >= 0)
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID
END

SELECT Country,MaxGrow FROM UserMaxGrow WHERE ServerID=@ServerID AND UserUID=@UserUID

SET NOCOUNT OFF
GO
AriezOMG is offline  
Thanks
2 Users
Old 07/08/2010, 01:52   #2
 
lilprohacker's Avatar
 
elite*gold: 20
Join Date: Jun 2009
Posts: 790
Received Thanks: 2,727
just change it so that when a user registers that their max grow is already set to 3 or so.
lilprohacker is offline  
Thanks
1 User
Old 07/08/2010, 02:02   #3
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
how do i do that? ive been looking at the processor.php for a while and can't find it.
AriezOMG is offline  
Old 07/09/2010, 13:02   #4
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
You need to change procedure in MSSQL not the registration script.
ProfNerwosol is offline  
Old 07/09/2010, 13:04   #5
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
how prof how please help >.<
AriezOMG is offline  
Old 07/09/2010, 14:00   #6
 
shinru2004's Avatar
 
elite*gold: 260
Join Date: Oct 2009
Posts: 258
Received Thanks: 266
go to ps_Userdata expand then go to Programability then Stored Procedures and find usp_Read_user_maxgrow_R then right click go to modify and paste this


CREATE Proc usp_Read_User_MaxGrow_R

@ServerID tinyint,
@UserUID int

AS

SET NOCOUNT ON

IF NOT EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW <= 3 )
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID AND Country <= 1
END

IF EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW = 3 AND LEVEL >= 40)
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID
END

IF EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW = 3 AND LEVEL >= 40)
BEGIN
UPDATE UserMaxGrow SET MaxGrow = 3 WHERE ServerID=@ServerID AND UserUID=@UserUID
END

SELECT Country,MaxGrow FROM UserMaxGrow WHERE ServerID=@ServerID AND UserUID=@UserUID

SET NOCOUNT OFF
GO
shinru2004 is offline  
Thanks
7 Users
Old 07/09/2010, 22:03   #7
 
elite*gold: 0
Join Date: Jul 2010
Posts: 124
Received Thanks: 99
IF EXISTS(SELECT GROW FROM CHARS WHERE ServerID=@ServerID AND UserUID=@UserUID AND GROW = 3 AND LEVEL >= 40)

40 mean you get UM at lvl 40 =)
ShaiyaUnited is offline  
Thanks
3 Users
Old 07/09/2010, 22:19   #8
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
You know people, would love and thank anyone who made a guide on this procedure.
AriezOMG is offline  
Old 08/23/2010, 21:09   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 97
Received Thanks: 14
thanks so much
Jaden151 is offline  
Old 08/24/2010, 02:20   #10
 
elite*gold: 0
Join Date: Feb 2009
Posts: 143
Received Thanks: 22
pity but ps_game.exe i thought have default opened HM and script does'nt work with preunlock HM after NM 40 lvl....may any idea to find it in ps_game, or maybe that are in other problem?
cosong is offline  
Old 09/07/2010, 06:26   #11
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
You know it's a petty bump, but say if I was to change the required level for UM to 0, would that make it preunlocked?
AriezOMG is offline  
Old 09/07/2010, 08:29   #12
 
elite*gold: 0
Join Date: Jul 2010
Posts: 124
Received Thanks: 99
Yes i guess.
ShaiyaUnited is offline  
Old 09/07/2010, 09:41   #13
 
AriezOMG's Avatar
 
elite*gold: 100
Join Date: Mar 2009
Posts: 552
Received Thanks: 1,003
Anyone tried that and know if it works for sure?
AriezOMG is offline  
Old 09/07/2010, 16:15   #14
 
ProfNerwosol's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 449
Received Thanks: 644
I took a look at the procedures and I think there are two things that can be done.

1 - modify one of the ps_*.exe server files, whichever calls the procedure [usp_Save_Char_Maxgrow_E], to pass Grow=3 instead of Grow=1. This will be rather permanent and any changed will require server restart.
2 - it's easier and I think it will work better in the long run. Just set the value in [usp_Save_Char_Maxgrow_E] to Grow=3 before it updates the UserMaxGrow table. You can be a nasty Admin and change the value while the server is working so new users won't get UM unlocked.
ProfNerwosol is offline  
Thanks
1 User
Old 09/07/2010, 17:52   #15
 
lilprohacker's Avatar
 
elite*gold: 20
Join Date: Jun 2009
Posts: 790
Received Thanks: 2,727
removed
lilprohacker is offline  
Thanks
6 Users
Reply

Tags
edit, preunlocked, registration, sql, um


Similar Threads Similar Threads
UNLOCKED FPS
10/15/2014 - CO2 Exploits, Hacks & Tools - 111 Replies
Unlocked FPS will make your game run smoother. If the FPS are stuck on a value below original, or can't go over some value, it is most likely to be a result of a bad graphic card. It is easier to fb/ss, even with your ping unchanged. It is updated to work on patch 5170+ Conquer-HIGH-FPS has slightly increased FPS Conquer-ULTRA-FPS has greatly increased FPS
Unlocked Camera
06/23/2010 - Battle of the Immortals - 5 Replies
Hello I was wondering if its possible to unlock the camera Y rotation... was searching for it but without any luck. I'm prolly not the same one that has camera issues... thanks
Unlocked FPS
04/17/2010 - Conquer Online 2 - 3 Replies
Anyone Got A Unlocked FPS been looking round for an hour & couldn't find one for 5165 .
Unlocked FPS
09/28/2009 - Conquer Online 2 - 2 Replies
can anyone tell me how to unlocked fps?
Account unlocked
08/30/2005 - Conquer Online 2 - 2 Replies
I got my account unlocked and i'm in jail, now what...? the NPC says he needs 100k but i only have 40k, is there any way around this??? or is there any way i can bring another char to that jail???



All times are GMT +2. The time now is 09:37.


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.