Register for your free account! | Forgot your password?

You last visited: Today at 21:18

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

Advertisement



Auto apply skills at login

Discussion on Auto apply skills at login within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2011
Posts: 21
Received Thanks: 48
Auto apply skills at login

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 '******%' -- shows drops for mobname that starts with '******'
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
Attached Files
File Type: zip grades_skill_apply.zip (3.1 KB, 582 views)
player1up is offline  
Thanks
14 Users
Old 02/25/2015, 10:14   #2
 
admin_lewis's Avatar
 
elite*gold: 195
Join Date: Jul 2014
Posts: 63
Received Thanks: 88
Can you build script only for new players what makes characters and get all of those 30 days without recharge time plz
admin_lewis is offline  
Old 02/25/2015, 12:40   #3
 
momocruz's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 390
Received Thanks: 376
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
momocruz is offline  
Old 02/25/2015, 19:07   #4
 
italo.sanchez's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 70
Received Thanks: 50
Insert after SET @CharID = IDENT_CURRENT ('Chars')
on stored procedure usp_Create_Char_R

italo.sanchez is offline  
Thanks
1 User
Old 02/27/2015, 15:15   #5
 
italo.sanchez's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 70
Received Thanks: 50
usp_Read_Char_ApplySkills_R
italo.sanchez is offline  
Thanks
2 Users
Old 03/01/2015, 11:49   #6
 
admin_lewis's Avatar
 
elite*gold: 195
Join Date: Jul 2014
Posts: 63
Received Thanks: 88
Quote:
Originally Posted by italo.sanchez View Post
Insert after SET @CharID = IDENT_CURRENT ('Chars')
on stored procedure usp_Create_Char_R

thanks much
admin_lewis is offline  
Old 04/25/2015, 14:51   #7
 
elite*gold: 0
Join Date: Jan 2012
Posts: 428
Received Thanks: 33
how can i removed this?
Cansas59 is offline  
Old 05/11/2015, 06:42   #8
 
elite*gold: 0
Join Date: Feb 2014
Posts: 54
Received Thanks: 47
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
Mark.Teal1982 is offline  
Reply


Similar Threads Similar Threads
Wie Speichert man die Login daten und macht nen Auto Login
07/15/2010 - Metin2 Private Server - 5 Replies
Souh ma wieder ne "Blöde Frage"... wie speichert man die login daten und macht nen autologin für den client wie es hier gemacht worden ist: http://www.elitepvpers.com/forum/metin2-pserver-dis cussions-questions/616285-my-new-client.html Über ne antwort würde ich mich freuen...



All times are GMT +1. The time now is 21:18.


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.