Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 09:34

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

Advertisement



Help for make a script for never 30 day's item

Discussion on Help for make a script for never 30 day's item within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old 10/27/2015, 13:38   #16
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
Honestly, it could be any number of things. The fact that you are unable to actually understand what areas could be having troubles for this to work, means we are pretty much unable to help you.

All the info you are giving us to help is "It's not working" which doesn't help us at all. I suggest learning the systems of the game, and database better until you actually understand the very basics before trying to get things like this working without knowing how it is they actually should work.
Truth1010 is offline  
Old 10/27/2015, 15:58   #17
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Truth1010 View Post
Honestly, it could be any number of things. The fact that you are unable to actually understand what areas could be having troubles for this to work, means we are pretty much unable to help you.

All the info you are giving us to help is "It's not working" which doesn't help us at all. I suggest learning the systems of the game, and database better until you actually understand the very basics before trying to get things like this working without knowing how it is they actually should work.
i'm no expert, but i know the game and all function that is take, now all problem that all get we can see in log, my log here are right, no have problem, i use sql 2012, ep 5.4 database and client, and use ps_game with itemmallfix

i have test and i have find that only with logout the database updates.
AxelMac is offline  
Old 10/31/2015, 08:47   #18
 
wallerus's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 300
Received Thanks: 473
You could create a trigger instead that runs when character JoinDate is changed (login datetime). I remember I had the same issue you had (time is only updated on logout) with that script.
wallerus is offline  
Old 10/31/2015, 11:54   #19
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
I've been thinking of replying on this thread for a few days now, given that I'm still not sure if you guys fixed your issue or not.

Anyway, here's a super simple fix that took less than 10 minutes to code and test and will take care of your issue.

Code:
USE PS_GameData
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE usp_Read_Char_ApplySkills_R
	
	@CharID INT
	
AS
BEGIN
	
	SET NOCOUNT ON
	
	DECLARE @CharApplySkills TABLE
	(
		SkillID SMALLINT,
		SkillLevel TINYINT,
		LeftResetTime INT
	)
	
	INSERT @CharApplySkills
	SELECT SkillID, SkillLevel, LeftResetTime FROM CharApplySkills WHERE CharID = @CharID
	
	IF NOT EXISTS (SELECT 1 FROM @CharApplySkills WHERE SkillID = 286 AND SkillLevel = 3)
		INSERT @CharApplySkills (SkillID, SkillLevel, LeftResetTime) VALUES (286, 3, 2592000)
	ELSE UPDATE @CharApplySkills SET LeftResetTime = 2592000 WHERE SkillID = 286 AND SkillLevel = 3
	
	IF NOT EXISTS (SELECT 1 FROM @CharApplySkills WHERE SkillID = 225 AND SkillLevel = 1)
		INSERT @CharApplySkills (SkillID, SkillLevel, LeftResetTime) VALUES (225, 1, 2592000)
	ELSE UPDATE @CharApplySkills SET LeftResetTime = 2592000 WHERE SkillID = 225 AND SkillLevel = 1
	
	IF NOT EXISTS (SELECT 1 FROM @CharApplySkills WHERE SkillID = 227 AND SkillLevel = 1)
		INSERT @CharApplySkills (SkillID, SkillLevel, LeftResetTime) VALUES (227, 1, 2592000)
	ELSE UPDATE @CharApplySkills SET LeftResetTime = 2592000 WHERE SkillID = 227 AND SkillLevel = 1
	
	SELECT SkillID, SkillLevel, LeftResetTime FROM @CharApplySkills

	SET NOCOUNT OFF
	
END
Thanks to wallerus for the 2592000 value.
nubness is offline  
Thanks
2 Users
Old 10/31/2015, 14:50   #20
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111

Thanks nubness, but not working i don't understand where is the problem, but working after login, not insert when make a char only after update..
AxelMac is offline  
Old 10/31/2015, 15:00   #21
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
I don't know what other code you have in there, but get rid of it. The code I submitted in my previous post is enough to get this to work.
nubness is offline  
Old 11/04/2015, 23:00   #22
 
elite*gold: 0
Join Date: Jul 2009
Posts: 380
Received Thanks: 85
what he is meaning this is for when the toon logs out then back in it will have the buffs he is wanting it on toon cration witch is what i posted a while back. the one i posted works perfectly and the buffs are on the toon befor it even logs in to game for the first time this is why i added it to the char creation proc
Big_ is offline  
Old 11/04/2015, 23:13   #23
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Big_ View Post
what he is meaning this is for when the toon logs out then back in it will have the buffs he is wanting it on toon cration witch is what i posted a while back. the one i posted works perfectly and the buffs are on the toon befor it even logs in to game for the first time this is why i added it to the char creation proc
yeah, but the proc not write in table charapplyskill, i don't know because, my table is right,where I can see this problem?
AxelMac is offline  
Old 11/05/2015, 00:15   #24
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
If you have done everything that has been stated here 3 or 4 times now, then it should be working.

For us to guess why your database is mysteriously not working would be next to impossible. You are the one looking at the database, learn what you are doing and you'll be able to sort out your own problem as to why it's not working how you want it to.

Without seeing your database, we can only guess.
Truth1010 is offline  
Old 11/05/2015, 00:22   #25
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Truth1010 View Post
If you have done everything that has been stated here 3 or 4 times now, then it should be working.

For us to guess why your database is mysteriously not working would be next to impossible. You are the one looking at the database, learn what you are doing and you'll be able to sort out your own problem as to why it's not working how you want it to.

Without seeing your database, we can only guess.
I do not understand why does not work, because it worked before and I had no such problem, no reason I do not work anymore, that's why I do not know what to do, the script that I put myself, before I worked no longer thought it was a problem in the script but instead the problem comes from the database, but do not know where
AxelMac is offline  
Old 11/05/2015, 00:34   #26
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
Like i said before. Without seeing what is going on in your database, there isn't much we can do to help.

Look at what you recently added/removed/changed, see if you screwed up something somewhere there.

Attach SQL profiler and look at what it tracks for you. There are countless ways to troubleshoot problems like this, and if all else fails, start from scratch with a clean DB and re-add what you want. It takes like time than you've already spent on this thread asking why it doesn't work to set up from nothing.
Truth1010 is offline  
Reply


Similar Threads Similar Threads
Can you make a item to make it 2x Compose
12/04/2011 - EO PServer Hosting - 2 Replies
Is it possible to make a item that makes your pet 2x compose for say 2 hours and it to only giv the player with the item "who uses it " to have 2x compose ? Any one know anything like this please respond :) could do with all the help i can get thanks :D
AHK Help How To make a script
04/27/2011 - General Coding - 0 Replies
hi guys.. i need your help for AHK(AutoHotKey) Script...sorry for a noob question i'm just starting.. and i want to learn it faster/ASAP... ...I'm currently figuring it out how to spam leftarrow or rightarrow then rest for a minute or a seconds then back it again for spamming.. btw.. if someone who kindly enough to make this script. it would be a big help to me :handsdown: <~ Sorry if i'm breaking a rules :D oh and 1 morething.. why i choose AutoHotKey..hmmm i think it's more...
Make ur item +2 FROM 3x+1 !!
07/08/2009 - CO2 Guides & Templates - 15 Replies
ok, it is my first post hope u like it :) here we go: 1.get a +1 item from the same type of the required equipment 2.Get other 2x +1 items(of the same type)/stones 3.go to the wuxing oven and put the stuff from step 2 in the item from step 1 4.its simple now u got a +2 item which add to the progress (+40),, just put it in ur main required equipment:p
Did any one can make Some thing to tell ppl here how make new item in Bin 5065
05/30/2009 - CO2 Private Server - 5 Replies
Did any one can make Some thing to tell ppl here how make new item in Bin 5065 pl pl pl p pl plz



All times are GMT +1. The time now is 09: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.