|
You last visited: Today at 07:59
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.
03/14/2019, 15:31
|
#106
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
Quote:
Originally Posted by [ADM]Minxii
[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:
should help with that.
|
|
|
03/14/2019, 23:09
|
#107
|
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
|
|
|
03/15/2019, 12:33
|
#108
|
elite*gold: 0
Join Date: Jan 2013
Posts: 461
Received Thanks: 561
|
Quote:
Originally Posted by [ADM]Minxii
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.
|
|
|
03/15/2019, 14:23
|
#109
|
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
|
|
|
03/15/2019, 18:53
|
#110
|
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)
|
|
|
|
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.
|
|
|
07/01/2019, 11:32
|
#112
|
elite*gold: 0
Join Date: Jun 2019
Posts: 23
Received Thanks: 3
|
Need for SQL2000,Please......
|
|
|
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?
|
|
|
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
|
|
|
04/04/2020, 23:07
|
#115
|
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 324
|
Quote:
Originally Posted by santimc
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.
|
|
|
04/04/2020, 23:09
|
#116
|
elite*gold: 0
Join Date: Oct 2012
Posts: 18
Received Thanks: 1
|
Quote:
Originally Posted by Velocity.
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
|
|
|
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
|
|
|
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?
|
|
|
05/24/2021, 15:57
|
#119
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
Quote:
Originally Posted by [adm]Bowser
Does anyone have this but with a maximum of four gmrr per item?
|
This should help you:
Quote:
|
|
|
05/25/2021, 17:15
|
#120
|
elite*gold: 0
Join Date: Apr 2021
Posts: 8
Received Thanks: 0
|
Quote:
Originally Posted by SnickQ
This should help you:
|
where i have to put this ?
Quote:
Originally Posted by SnickQ
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
|
|
|
 |
|
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.
|
|