Register for your free account! | Forgot your password?

You last visited: Today at 10:44

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

Advertisement



Items with Time

Discussion on Items with Time within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2
Items with Time

I would like to know if there is a way to by time in some type items, helmet, weapons etc so that the time expires and the item disappears.
Bacкa is offline  
Old 05/29/2018, 07:23   #2
 
Spectral#1's Avatar
 
elite*gold: 0
Join Date: Jan 2016
Posts: 302
Received Thanks: 216
USE [PS_gameData]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create TRIGGER [dbo].[itemdelete]
ON [dbo].[chars]
after update
as
IF (UPDATE(leavedate))
begin

SET NOCOUNT ON;

DECLARE @D INT = (SELECT CharID FROM inserted)


DELETE PS_GameData.dbo.CharItems WHERE CharID = @D AND (ItemID = 0) AND DATEDIFF(DAY, Maketime, GETDATE()) >= 1

END

------------------

deletes the item after 1 day. change 1 to watever number you want. or change the day to minute year month etc. Simple script.
Spectral#1 is offline  
Thanks
2 Users
Old 05/31/2018, 22:34   #3
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2
Quote:
Originally Posted by Spectral#1 View Post
USE [PS_gameData]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

create TRIGGER [dbo].[itemdelete]
ON [dbo].[chars]
after update
as
IF (UPDATE(leavedate))
begin

SET NOCOUNT ON;

DECLARE @D INT = (SELECT CharID FROM inserted)


DELETE PS_GameData.dbo.CharItems WHERE CharID = @D AND (ItemID = 0) AND DATEDIFF(DAY, Maketime, GETDATE()) >= 1

END

------------------

deletes the item after 1 day. change 1 to watever number you want. or change the day to minute year month etc. Simple script.
Tanks.

and if he uses the item and after that he puts in the deposit, the time of the item will count anyway?
Bacкa is offline  
Old 05/31/2018, 23:21   #4
 
Spectral#1's Avatar
 
elite*gold: 0
Join Date: Jan 2016
Posts: 302
Received Thanks: 216
The items time counts from its creation no matter where it goes. the script i provided will only delete it from the character though. You must add userstoreditems if you want it to delete from WH. Make it untradable. Or else youll have to add all the other spots too, GH, market, etc.
Spectral#1 is offline  
Old 06/01/2018, 05:44   #5
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2
has some items that the script does not remove.
(ItemID = 77001)
Bacкa is offline  
Old 06/01/2018, 07:00   #6
 
Spectral#1's Avatar
 
elite*gold: 0
Join Date: Jan 2016
Posts: 302
Received Thanks: 216
then you are writing its ID wrong
Spectral#1 is offline  
Old 06/01/2018, 07:12   #7
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2

HTML Code:
149	1	77001	5096685863069351936	77	1	0	0	400	227	118	133	228	119	134	00101100040034002570	1	2017-10-29 17:03:10.000	X	False
HTML Code:
DELETE PS_GameData.dbo.CharItems WHERE CharID = ChariD AND (ItemID = 77001) AND DATEDIFF(MINUTE, Maketime, GETDATE()) >= 1
Bacкa is offline  
Thanks
1 User
Old 06/01/2018, 18:58   #8
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
The problem may it be here
Code:
WHERE CharID = ChariD
Your CharID is not declared
SnickQ is offline  
Old 06/01/2018, 20:16   #9
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2
Quote:
Originally Posted by SnickQ View Post
The problem may it be here
Code:
WHERE CharID = ChariD
Your CharID is not declared

Yes I also noticed this but since it was removing other items I didn't mind moving, (Item ID = 77001) They too are not removing item type 150/120
Bacкa is offline  
Old 06/01/2018, 20:47   #10
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
Becouse this part (if have declare):
Code:
 WHERE CharID = ChariD AND (ItemID = 77001) AND DATEDIFF(MINUTE, Maketime, GETDATE()) >= 1
Remove every item from your bag with id 77001 and MakeTime "equal&more" - 1 minute.

I do not have access to sql now but try add "ItemUID log" when item 77001 is create and then remove from UID or add MakeType some letters like "Z" and then remove 'Z' + 1 minute?
SnickQ is offline  
Thanks
1 User
Old 06/02/2018, 11:55   #11
 
Spectral#1's Avatar
 
elite*gold: 0
Join Date: Jan 2016
Posts: 302
Received Thanks: 216
WHERE CharID = @D
Spectral#1 is offline  
Old 06/02/2018, 14:23   #12
 
elite*gold: 0
Join Date: Mar 2017
Posts: 33
Received Thanks: 2
I can, but items like fantasy and pets are not deleting
Bacкa is offline  
Reply


Similar Threads Similar Threads
[Trading] Steam Items for Wow play time/account w/ play time
11/08/2015 - World of Warcraft Trading - 3 Replies
Have around $400 worth of items on steam, looking to trade for wow playtime, if you sell an account it must have a good amount of play time already on it.
Removed Time on TIME QUEST.
01/09/2008 - 9Dragons - 4 Replies
Like the title said, if you have a quest that required time to pass the QUEST will you can do this.. Ex. If you are Demon the GC8 is the very difficult quest if no healer helping on you. If you deside to get that quest, will after you talk to WU YUNYAN he will tele you to the DEMON CLAN Place. then you will see some Animation, after that you are now Near to the DMEON BULL and he says that you will get schimeraHORN, it is very difficult to get 5 BloodChimeraHorn in 5mins. This...
Lucky Time HACK, for when u get lucky time
10/24/2006 - CO2 Exploits, Hacks & Tools - 6 Replies
when u go sit in guys thing given lucky time, light off firecracker to do another emotion becuse when doing it, it wont let, so lightfirecracker, then sit, when he leaves, ull still be getting lucky time



All times are GMT +1. The time now is 10:44.


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.