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
( 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