Please verify you are human

[S] SQL Script für das Geschenkefach in der Mall
  Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 02:52

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

Advertisement



[S] SQL Script für das Geschenkefach in der Mall

Discussion on [S] SQL Script für das Geschenkefach in der Mall within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2012
Posts: 15
Received Thanks: 8
[S] SQL Script für das Geschenkefach in der Mall

Hallo,

hat zufällig jemand ein SQL Script um jemanden ein Item ins Geschenkefach in der Mall zu packen, also in die UserStoredPointItems?
Am besten das ganze sogar per UserID und nicht per UserUID.
Wär echt klasse wenn jemand sowas hätte oder es ggf. sogar schreiben könnte, für so "komplexe" Scripte reicht meine Erfahrung leider nicht.

Hello,

someone has accidentally grab a SQL script to someone an item to trade gifts in the mall, so in the UserStoredPointItems?
Best all even by UserID and not by UserUID.
Were really great enough if someone had something to write or possibly even could, for as "complex" Scripts my experience unfortunately.
WildTaurus is offline  
Old 01/21/2013, 13:19   #2
 
AnyChat's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 227
Received Thanks: 161
An so einem Script hätte ich auch Interesse!
AnyChat is offline  
Old 01/21/2013, 14:56   #3
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
I use this from shaiya helper


Example:

Code:
USE [PS_GMTool]
GO
DECLARE	@return_value int
EXEC	@return_value = [dbo].[usp_Gift_Insert]
@GroupName = N'SoE',
@UserUID = Shinra,
@Slot = 1,
@ItemID = 100136,
@ItemCount = 1
SELECT	'Return Value' = @return_value
GO
This script will add acc: Shinra one name change stone in Slot 1
Sh1nra is offline  
Old 01/21/2013, 15:52   #4
 
elite*gold: 0
Join Date: Dec 2012
Posts: 15
Received Thanks: 8
i search for UserStoredPointItems
in my PS_GMTool is no usp_Gift_Insert
WildTaurus is offline  
Old 01/21/2013, 16:49   #5
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 997
Quote:
Originally Posted by Sh1nra View Post
UserUID = Shinra
^Das sollte nicht funktionieren, weil es nicht möglich ist einen VARCHAR Wert als UserUID zu verwenden.

Versuche den folgenden Query zu benutzen. Du musst ihn gegebenenfalls noch bearbeiten.
Code:
USE [PS_GameData]
GO

INSERT INTO [dbo].[UserStoredPointItems]
           ([UserUID]
           ,[Slot]
           ,[ItemID]
           ,[ItemCount]
           ,[BuyDate])
     VALUES
           ((SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = 'username'),  -- Trage den Usernamen hier ein
           1, -- Slot
           100001, -- ItemID
           10, -- ItemCount
           GETDATE())
GO
Das Resultat: Es werden zehn gestapelte 'Etains Potion' in den ersten Slot des Geschenkefachs von dem entsprechendem User platziert.
Philipp_ is offline  
Thanks
5 Users
Old 01/21/2013, 17:46   #6
 
elite*gold: 0
Join Date: Dec 2012
Posts: 15
Received Thanks: 8
Quote:
Originally Posted by Philipp_ View Post
^Das sollte nicht funktionieren, weil es nicht möglich ist einen VARCHAR Wert als UserUID zu verwenden.

Versuche den folgenden Query zu benutzen. Du musst ihn gegebenenfalls noch bearbeiten.
Code:
USE [PS_GameData]
GO

INSERT INTO [dbo].[UserStoredPointItems]
           ([UserUID]
           ,[Slot]
           ,[ItemID]
           ,[ItemCount]
           ,[BuyDate])
     VALUES
           ((SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = 'username'),  -- Trage den Usernamen hier ein
           1, -- Slot
           100001, -- ItemID
           10, -- ItemCount
           GETDATE())
GO
Das Resultat: Es werden zehn gestapelte 'Etains Potion' in den ersten Slot des Geschenkefachs von dem entsprechendem User platziert.
Ergebnis nach dem Ausführen:
Quote:
Meldung 1046, Ebene 15, Status 1, Zeile 9
Subqueries are not allowed in this context. Only scalar expressions are allowed.
Habe es mir nun wie folgt angepasst und so funktioniert es auch, leider ist es dann nicht mehr per ID aber das scheint nicht zu funktionieren:
Code:
USE [PS_GameData]
GO

INSERT INTO [dbo].[UserStoredPointItems]
           ([UserUID]
           ,[Slot]
           ,[ItemID]
           ,[ItemCount]
           ,[BuyDate])
     VALUES
           (1, -- UserUID
           1, -- Slot
           100192, -- ItemID
           10, -- ItemCount
           GETDATE())
GO
Resultat: Account 1 erhält 10 GM-Links

Danke für das Script und den damit verbundenen Denkanstoss^^
WildTaurus is offline  
Reply


Similar Threads Similar Threads
99 Nos Mall
07/27/2011 - Nostale - 9 Replies
Hab mal 2 Fragen zur 99 Nosmall Und zwar erstens. Wie bekomme ich die zum laufen. Ich habe nämlich den deutschen Download benutz und nur den China Client nur da funzt die Mall net Gibs dafür irgend was das es geht. Und ausserdem wollt ich ma Fragen wie das mit der White Tiger Box is Is das ne Überraschugns Box wo alles raus kommen kann und der Tigger oder komtm da nur der Tiger raus. Ps Warum werden da Buschis einzeln verkauft aber dafür gleich ma für fast 500 Nostaller was gleich ma...
Some help for web mall.
07/16/2011 - Shaiya Private Server - 0 Replies
Hello all.I need some help.I have web mall script,and everything works fine untill i try to buy an item from it.I will not post the code here as the script its not mine.If anyone with php skills is willing to help me just pm me here and i will give all the required info.Thx for reading this!
RD and Web mall
10/01/2010 - Silkroad Online - 5 Replies
Hey guys, can anyone make tutorial how to buy in rd or web mall. I forget how to do that coz i didn't play csro like +7 months. Thanks.
C[Sro] Web Mall ( Me or Everyone ? )
09/25/2010 - Silkroad Online - 2 Replies
i have being trying to buy a few thing with gold or silks. before i did it etc it worked. now i go to http://passport.srocn.com/newshop/newgdt/index.asp ?flag=tj and i get something in chinese i translate it and it says You are not authorized to view this page You tried to access a Web server not allowed access to the site's IP address list, and you used to view the IP address of the computer was among them.
[help] how to fix mall
12/11/2009 - EO PServer Hosting - 1 Replies
ok now my mall is buged i can see the items and i can like only buy 1/3 of them. also who do i increase the exp and auto_ep rates along with composing rates.



All times are GMT +1. The time now is 02:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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