Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 00:36

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

Advertisement



Auto Equip Item When Create Char

Discussion on Auto Equip Item When Create Char within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old 01/27/2017, 17:12   #16
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360


Or
Code:
USE PS_GameData
GO
CREATE VIEW NewID
AS
SELECT NewID() AS NewID
Code:
USE [PS_GameData]
GO

/****** Object:  UserDefinedFunction [dbo].[ItemUID]    Script Date: 31.07.2013 00:03:25 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- =============================================
-- Author:		Euphoria Dev Team
-- =============================================
CREATE FUNCTION [dbo].[ItemUID]
()
RETURNS BIGINT
AS
BEGIN
	
	DECLARE [MENTION=1134588]item[/MENTION]UID BIGINT

	NEWUID:
	SET [MENTION=1134588]item[/MENTION]UID = ABS(CAST(HASHBYTES('SHA1',CAST((SELECT NewID FROM PS_GameData.dbo.NewID) AS NVARCHAR(MAX))) AS BIGINT))

	IF EXISTS(SELECT * FROM PS_GameData.dbo.CharItems WHERE ItemUID = [MENTION=1134588]item[/MENTION]UID) OR
	EXISTS(SELECT * FROM PS_GameData.dbo.GuildStoredItems WHERE ItemUID = [MENTION=1134588]item[/MENTION]UID) OR
	EXISTS(SELECT * FROM PS_GameData.dbo.MarketItems WHERE ItemUID = [MENTION=1134588]item[/MENTION]UID) OR
	EXISTS(SELECT * FROM PS_GameData.dbo.UserStoredItems WHERE ItemUID = [MENTION=1134588]item[/MENTION]UID)
	GOTO NEWUID

	RETURN [MENTION=1134588]item[/MENTION]UID

END
GO
And put in Proc [dbo].[usp_Create_Char_R]
Code:
if (@Job in (0,1,2,3) and [MENTION=395373]Chari[/MENTION]D [MENTION=395373]Chari[/MENTION]D )
	begin
	
	INSERT INTO CharItems (CharID, ItemID, ItemUID, Type, TypeID, Bag, Slot, Quality, Gem1, Gem2, Gem3, Gem4, Gem5, Gem6, Craftname, Count, Maketime, Maketype, Del)
			VALUES  [MENTION=395373]Chari[/MENTION]D, 16004 , dbo.ItemUID(), 16, 4, 1, 1, (SELECT Quality FROM PS_GameDefs.dbo.Items WHERE ItemID = 16004), 5, 33, 12, 0, 0, 0, '05050505050505050555', 1, GETDATE(), 'S', 0)
Credits for Phillip
SnickQ is offline  
Reply


Similar Threads Similar Threads
Ludoworks Olsta - Cap 135 | PVP/PVE Content | Professional Team| Even more
07/19/2013 - SRO PServer Advertising - 13077 Replies
http://img502.imageshack.us/img502/3149/emaillogof .png Introduction, small briefing included Register!
Alpha-Infectus/Cap110/NewSkills/NewBlue/Job Based/Auto Equip Item/10KSilk/And More
10/11/2012 - SRO PServer Advertising - 143 Replies
http://epvpimg.com/3R7Gc Hello Guys Today we just Finish Devoloper Alpha Online After 15 Days testing and plane for this Server its not bassed on Donation only its really fun PVE High RAte Server Enjoy the Details And Have fun General • Website: Alpha Infectus Online • Register: Alpha Online | Register • Download: Alpha Online | Download



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


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.