Auto apply skills at login

04/19/2012 19:51 player1up#1
I've noticed that there are some p-servers that do the auto skill thing for conti's and such. I couldn't find the script to do it, so I modified the database stored procedure that reads the applied skills.

( usp_Read_Char_ApplySkills_R )

psudo code ( what the code does in laymans terms ):

1. Applies skills during toon login when the skills for the toon are read by the login procedure.
a. Checks to see if the skill is already applied.
b. if skill is applied, reset the timer to full term.
c. if skill is not applied, add it.
2. Returns the applied skills ( including ones we just added ) to the client


Comments at the begining of the section describe what is being added. If your skill table is different than mine,
you will need to adjust the skillid's to match what is in YOUR database table.

I've also included some stored procedures to read drops.
ShowGrade -- shows all items of a grade that you specify
Usage: exec ShowGrade 50
ShowDropsByMobName -- shows the grade, itemname, mobname,mobid, and droprate with a mob name that you specify
Usage: exec ShowDropsByMobName 'lumen' -- shows drops for mobname that is EXACTLY 'lumen'
or ShowDropsByMobName '%boar%' -- shows drops for mobname that has 'boar' anywhere in the mobname
or ShowDropsByMobName 'Bloody%' -- shows drops for mobname that starts with 'Bloody'
ShowDropsByGrade -- shows the grade, itemname, mobname,mobid, and droprate with an item name that you specify
Usage: similar to ShowDropsByMobName

In addition to being able to quickly search drops directly from the DB, the stored procs can be referenced from a website to provide a searchable drop list.

Happy gaming!
--player1up
02/25/2015 10:14 admin_lewis#2
Can you build script only for new players what makes characters and get all of those 30 days without recharge time plz
02/25/2015 12:40 momocruz#3
Quote:
Originally Posted by admin_lewis View Post
Can you build script only for new players what makes characters and get all of those 30 days without recharge time plz
Use change stat point per level for Hard Mode do like if was Ultimate and use script like this and all your toon are HM and no need Rez rune and when die get all HP MP SP



Just use Brain.EXE and Search Butom
02/25/2015 19:07 italo.sanchez#4
Insert after SET @CharID = IDENT_CURRENT ('Chars')
on stored procedure usp_Create_Char_R

02/27/2015 15:15 italo.sanchez#5
usp_Read_Char_ApplySkills_R
03/01/2015 11:49 admin_lewis#6
Quote:
Originally Posted by italo.sanchez View Post
Insert after SET @CharID = IDENT_CURRENT ('Chars')
on stored procedure usp_Create_Char_R

thanks much
04/25/2015 14:51 Cansas59#7
how can i removed this?
05/11/2015 06:42 Mark.Teal1982#8
Quote:
Originally Posted by Cansas59 View Post
how can i removed this?
just go into the stored procedure usp_Create_Char_R in the database and remove the code that was posted above if you wanted to remove it

Quote:
Originally Posted by momocruz View Post
Use change stat point per level for Hard Mode do like if was Ultimate and use script like this and all your toon are HM and no need Rez rune and when die get all HP MP SP



Just use Brain.EXE and Search Butom
the idea of that is good but comes with problems because you would have to also go in and edit all the gears, weapons, accessories, mounts and skills that only UMs can use and HMs don't have access to in turn I think it would be more work as to just writing a script for it