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

10/25/2015 01:44 AxelMac#1
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??
10/25/2015 22:23 Big_#2
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
10/25/2015 23:51 AxelMac#3
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
10/25/2015 23:56 Big_#4
here add this at the bottem of the usp_crate_char_r
10/26/2015 00:41 AxelMac#5
Not working.... i not unserstand because >_< i not get buffs
10/26/2015 11:56 Truth1010#6
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.
10/26/2015 12:37 AxelMac#7
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.
10/26/2015 14:49 Twilight360#8
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.
10/26/2015 18:17 AxelMac#9
Quote:
Originally Posted by Twilight360 View Post
Full Working Script By Player1Up.
This is the same as I entered it, is not working......
10/26/2015 18:44 Twilight360#10
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?
10/26/2015 20:44 AxelMac#11
I use sql 2012 now, after i use 2008
10/26/2015 20:53 Big_#12
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
10/26/2015 23:13 AxelMac#13
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
10/27/2015 03:53 Big_#14
Check you skill ids of these items and change for the correct ones if they are different
10/27/2015 11:32 AxelMac#15
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 :\