Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 07:59

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

Advertisement



[Euphoria Dev Team Release] Perfect Orange Stats Game Service

Discussion on [Euphoria Dev Team Release] Perfect Orange Stats Game Service within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 03/14/2019, 15:31   #106
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
Quote:
Originally Posted by [ADM]Minxii View Post
[html]2019-03-13 14:30:01 err=-1, [Microsoft][ODBC SQL Server Driver][SQL
Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression., SQL STATE: 21000, NATIVE ERROR: 512 (0x200)
This means that you are trying to do more than one thing in something that is limited to 1.

Quote:
Select TOP 1
should help with that.
SnickQ is offline  
Thanks
1 User
Old 03/14/2019, 23:09   #107
 
[ADM]Minxii's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 141
Received Thanks: 105
ugghh I keep trying to show you but this messes it up and mentions people

Ok well, I have my lines of code like this as I said I googled the issue first. It seems the error is in the Declare UserUID part Because if I delete after int and run the usp_Save_Char_Quest_Add_E it returns a 1 as it should

PHP Code:
DECLARE @ CharID INT = (SELECT Top 1 CharID FROM inserted)
        DECLARE    @ 
UserUID INT = (SELECT Top 1 UserUID FROM Chars WHERE CharID = @ CharID
I run this
PHP Code:
USE [PS_GameData]
GO

DECLARE    @ return_value int

EXEC    
return_value = [dbo].[usp_Save_Char_Quest_Add_E]
        @ 
CharID 1140, --- It happens with other chars too not just that one
        
QuestID 2222,
        @ 
Delay 0,
        @ 
Count1 0,
        @ 
Count2 0,
        @ 
Count3 0

SELECT    
'Return Value' = @ return_value

GO 
It returns "Msg 512, Level 16, State 1, Procedure Perfect_OJ, Line 34 [Batch Start Line 2]
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated."

but if i run the same code with CharID = 1345 it returns a 1 as it should.

So I looked at the line in issue

DECLARE @ UserUID INT = (SELECT Top 1 UserUID FROM Chars WHERE CharID = @ CharID)

So out of interest, I ran the select part in a new query window.
Select Top 1 UserUID from Chars WHERE CharID = 1140 and it returns my UserUID
[ADM]Minxii is offline  
Old 03/15/2019, 12:33   #108
 
beetols's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 461
Received Thanks: 561
Quote:
Originally Posted by [ADM]Minxii View Post
It returns "Msg 512, Level 16, State 1, Procedure Perfect_OJ, Line 34 [Batch Start Line 2]
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated."

but if i run the same code with CharID = 1345 it returns a 1 as it should.
Probably it's because the trigger doesn't delete the quest.. a work around can be this..

Quote:
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Save_Char_Quest_Add_E] Script Date: 15/03/2019 12:29:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER Proc [dbo].[usp_Save_Char_Quest_Add_E]

@CharID int,
@QuestID smallint,
@Delay smallint = Null,
@Count1 tinyint = Null,
@Count2 tinyint = Null,
@Count3 tinyint = Null

AS

SET NOCOUNT ON

IF NOT EXISTS (SELECT QuestID FROM CharQuest WHERE CharID = @CharID AND QuestID = @QuestID)
BEGIN
INSERT INTO CharQuests(CharID,QuestID,[Delay],Count1,Count2,Count3) VALUES(@CharID,@QuestID,@Delay,@Count1,@Count2,@Co unt3)
END
ELSE
BEGIN
UPDATE CharQuests SET [Delay]=@Delay,Count1=@Count1,Count2=@Count2,Count3=@Coun t3 WHERE CharID=@CharID AND QuestID=@QuestID
END

IF(@@ERROR = 0)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END

SET NOCOUNT OFF
Personally I would rewrite the trigger, but this could work.
beetols is offline  
Thanks
1 User
Old 03/15/2019, 14:23   #109
 
[ADM]Minxii's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 141
Received Thanks: 105
I would if I were any good with that sorta thing but I suck with tsql lol Thank you for the above tho it didnt work it actually stopped all quests from inserting into the table
I'll put my head down and try to rewrite the script. Thank goodness for test servers thats all i can say lol
[ADM]Minxii is offline  
Old 03/15/2019, 18:53   #110
 
beetols's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 461
Received Thanks: 561
Sorry, I did a mistake this morning in the code.. here
Quote:
IF EXISTS (SELECT QuestID FROM CharQuest WHERE CharID = @CharID AND QuestID = @QuestID)
Instead for work properly need to be like this!

Quote:
IF NOT EXISTS (SELECT QuestID FROM CharQuest WHERE CharID = @CharID AND QuestID = @QuestID)
beetols is offline  
Thanks
1 User
Old 04/03/2019, 03:31   #111
 
elite*gold: 0
Join Date: Feb 2019
Posts: 2
Received Thanks: 0
Hi, I need help, my points (cash) double when I restart the character.
shaiyabatalla is offline  
Old 07/01/2019, 11:32   #112
 
elite*gold: 0
Join Date: Jun 2019
Posts: 23
Received Thanks: 3
Red face

Need for SQL2000,Please......
aipca is offline  
Old 09/04/2019, 17:45   #113
 
elite*gold: 0
Join Date: Nov 2016
Posts: 2
Received Thanks: 0
Guys i dont have quest (i can't click to Talk) on my warehouse ( 6 29 ) how can i add first quest for this rr system?
biroubaby is offline  
Old 04/04/2020, 21:12   #114
 
elite*gold: 0
Join Date: Oct 2012
Posts: 18
Received Thanks: 1
Hello friends! How do I make it give a different amount instead of +35? for example +60
santimc is offline  
Old 04/04/2020, 23:07   #115
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 324
Quote:
Originally Posted by santimc View Post
Hello friends! How do I make it give a different amount instead of +35? for example +60
I'm a little rusty, but I believe it takes the max stat allowed for the item you are trying to re roll. This has nothing to do with this script.
Velocity. is offline  
Old 04/04/2020, 23:09   #116
 
elite*gold: 0
Join Date: Oct 2012
Posts: 18
Received Thanks: 1
Quote:
Originally Posted by Velocity. View Post
I'm a little rusty, but I believe it takes the max stat allowed for the item you are trying to re roll. This has nothing to do with this script.
regardless of allowed-makes everywhere +35, even if it costs + 20 max
santimc is offline  
Old 04/14/2020, 08:24   #117
 
elite*gold: 0
Join Date: Dec 2012
Posts: 2
Received Thanks: 0
hello first of all I did all the steps from creating the mission in quest id 2222 and modifying the representative elements of the GM recreations ... and I did the test and nothing ... my question is should I put a recreation effect on the element representative? Sorry my inglish
masizo1990 is offline  
Old 05/24/2021, 15:03   #118
 
elite*gold: 0
Join Date: Apr 2021
Posts: 8
Received Thanks: 0
Does anyone have this but with a maximum of four gmrr per item?
[adm]Bowser is offline  
Old 05/24/2021, 15:57   #119
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
Quote:
Originally Posted by [adm]Bowser View Post
Does anyone have this but with a maximum of four gmrr per item?
This should help you:
Quote:
SET @ReqWis = 4
SnickQ is offline  
Thanks
1 User
Old 05/25/2021, 17:15   #120
 
elite*gold: 0
Join Date: Apr 2021
Posts: 8
Received Thanks: 0
Quote:
Originally Posted by SnickQ View Post
This should help you:
where i have to put this ?

Quote:
Originally Posted by SnickQ View Post
This should help you:
i test that and only give me 4 stats in orange, i need 4 GMRR max per item XD like HP STR DEX LUC
[adm]Bowser is offline  
Reply


Similar Threads Similar Threads
Razer Team Orange !
12/17/2012 - Dota - 0 Replies
Razer Team Orange Esports Vote for Orange Esports.DotA and stand a chance to win a $500 Razerstore voucher!!! Don't forget to verify your email to finalize vote for our team.. Support us by sharing this post around with your friends~ Vote here: Team of the Year 2012 http://imageshack.us/scaled/landing/339/teamrazer orangetshirtsp.jpg
[HELP]Scripts For Orange Stats and Perfect link
12/15/2012 - Shaiya Private Server - 5 Replies
Sorry for the English, Already searched every site script for something related to the use of orange perfect stats or stats link or free orange and not found. Anyone know if these scripts are available or sold? I need a lot of these scripts, thank you now ^ ^
[Perfect World] Need a team (Game Developers/Website Developer/GM)
01/01/2012 - Perfect World - 5 Replies
Like the title states. We currently have all the files set up and ready to go, running on 1.4.2. We need.... Game Developers (Coders)(0/2): Let me know how long you have been coding for perfect world and what you can promise me. GM's (1/1):
[Dev Team Release] Game.exe EP 5.1
09/11/2011 - Shaiya PServer Guides & Releases - 4 Replies
here's ep 5.1 game.exe game.zip IP defaut : 127.0.0.1
WTS MAGE 105 HELLION Perfect SKILL AND STATS
05/12/2011 - Dekaron Trading - 0 Replies
Mage 105 - 45%,Wings,Pet,1250 vcs. PM ME OFFER i accept +7 and $.



All times are GMT +1. The time now is 08:00.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.