Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 00: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   #1
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Help for make a script for never 30 day's item

Hi all, i have a problem, with my script for never 30 day's item

when i make a new char i not get buff D: anyone have a solution??
AxelMac is offline  
Old 10/25/2015, 22:23   #2
 
elite*gold: 0
Join Date: Jul 2009
Posts: 352
Received Thanks: 83
you have to relog with this one make the toon relog and ull have them if you want these on toon cration you have to move this type of sql edit to you toon cration proc insted of your skills aply proc
Big_ is offline  
Old 10/25/2015, 23:51   #3
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Big_ View Post
you have to relog with this one make the toon relog and ull have them if you want these on toon cration you have to move this type of sql edit to you toon cration proc insted of your skills aply proc
i have try this, but not working, this proc it is usp_crate_char_r, if you know other details for working this pls write, because not working all method that i have try
AxelMac is offline  
Old 10/25/2015, 23:56   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 352
Received Thanks: 83
here add this at the bottem of the usp_crate_char_r
Big_ is offline  
Old 10/26/2015, 00:41   #5
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Not working.... i not unserstand because >_< i not get buffs
AxelMac is offline  
Old 10/26/2015, 11:56   #6
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
Read_Char_ApplySkills_R

Code:
--start auto-buff
if exists ( select  skillID from charapplyskills with (nolock)  where charID=@CHARID and skillid=233 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=233 
end
if not exists ( select  skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=233)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime) 
Values (@CharID, 233,1,2592000)
end
This is roughly how it should look. Others may have it working differently/cleaner/better, but I'm no sql expert, so it's probably poorly optimized, but it works fine for me. There was a trigger released here that will make the buffs auto cast each time a character logs out as well, which might be helpful to you.

A hint thought. Learn what you are doing yourself, before just copy/pasting things from other people. That way you actually improve your knowledge and learn how to do this, and more advanced things yourself. It's how the best devs here actually learnt what the can do.
Truth1010 is offline  
Old 10/26/2015, 12:37   #7
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Truth1010 View Post
Read_Char_ApplySkills_R

Code:
--start auto-buff
if exists ( select  skillID from charapplyskills with (nolock)  where charID=@CHARID and skillid=233 and skilllevel=1)
begin
update charapplyskills set LeftResettime=2592000 where CharID=@charID and skillid=233 
end
if not exists ( select  skillID from charapplyskills with (nolock) where charID=@CHARID and skillid=233)
begin
insert into CharApplySkills (CharID, SkillID, SkillLevel,LeftResetTime) 
Values (@CharID, 233,1,2592000)
end
This is roughly how it should look. Others may have it working differently/cleaner/better, but I'm no sql expert, so it's probably poorly optimized, but it works fine for me. There was a trigger released here that will make the buffs auto cast each time a character logs out as well, which might be helpful to you.

A hint thought. Learn what you are doing yourself, before just copy/pasting things from other people. That way you actually improve your knowledge and learn how to do this, and more advanced things yourself. It's how the best devs here actually learnt what the can do.
i'm not expert, but i have try with triger or edit all code, all proc for pg, when you make or join, but now working, i not understand because, if other know how remove eternal endurace so i can edit only a file with 3 buff's, i use ep 5.4, i not know because this not working.
AxelMac is offline  
Old 10/26/2015, 14:49   #8
 
Twilight360's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 805
Quote:
Originally Posted by AxelMac View Post
i'm not expert, but i have try with triger or edit all code, all proc for pg, when you make or join, but now working, i not understand because, if other know how remove eternal endurace so i can edit only a file with 3 buff's, i use ep 5.4, i not know because this not working.
Full Working Script By Player1Up.
Twilight360 is offline  
Thanks
1 User
Old 10/26/2015, 18:17   #9
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Twilight360 View Post
Full Working Script By Player1Up.
This is the same as I entered it, is not working......
AxelMac is offline  
Old 10/26/2015, 18:44   #10
 
Twilight360's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 805
Quote:
Originally Posted by AxelMac View Post
This is the same as I entered it, is not working......
What SQL Version are you using?
2005? 2008? 2012?
Twilight360 is offline  
Old 10/26/2015, 20:44   #11
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
I use sql 2012 now, after i use 2008
AxelMac is offline  
Old 10/26/2015, 20:53   #12
 
elite*gold: 0
Join Date: Jul 2009
Posts: 352
Received Thanks: 83
i use sql 2008 and the one i posted to you works 100% i think you need to check you skills and make shure this is the right ids for your 30 day items because the one i posted indeed dose work and flawlessly never herd any 1 not gettn there buffs
Big_ is offline  
Old 10/26/2015, 23:13   #13
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Big_ View Post
i use sql 2008 and the one i posted to you works 100% i think you need to check you skills and make shure this is the right ids for your 30 day items because the one i posted indeed dose work and flawlessly never herd any 1 not gettn there buffs
where you could be the problem? so I saw or I'll fix if I can
AxelMac is offline  
Old 10/27/2015, 03:53   #14
 
elite*gold: 0
Join Date: Jul 2009
Posts: 352
Received Thanks: 83
Check you skill ids of these items and change for the correct ones if they are different
Big_ is offline  
Old 10/27/2015, 11:32   #15
 
AxelMac's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 454
Received Thanks: 111
Quote:
Originally Posted by Big_ View Post
Check you skill ids of these items and change for the correct ones if they are different
it's are not different.... all id's are right, not is here the problem :\
AxelMac 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 +2. The time now is 00:34.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.