macine Posted July 10, 2013 Posted July 10, 2013 hi guy i have a doubt here: Can i make a equipment script that look to a determinate skill (like SM_SWORD) and if is level 5 or less the player cannot equip the item? if it is possible how will look like ? Quote
Emistry Posted July 10, 2013 Posted July 10, 2013 if( getskilllv("<skillname>") <= 5 ) unequip <equipmentpart>; Quote
Patskie Posted July 10, 2013 Posted July 10, 2013 if (getskilllv(SM_SWORD) <= 5) nude; *getskilllv(<skill id>) *getskilllv("<skill name>") This function returns the level of the specified skill that the invoking character has. If they don't have the skill, 0 will be returned. The full list of character skills is available in 'db/(pre-)re/skill_db.txt'. There are two main uses for this function, it can check whether the character has a skill or not, and it can tell you if the level is high enough. Quote
Joseph Posted July 10, 2013 Posted July 10, 2013 if (getskilllv(SM_SWORD) <= 5) nude; *getskilllv(<skill id>) *getskilllv("<skill name>") This function returns the level of the specified skill that the invoking character has. If they don't have the skill, 0 will be returned. The full list of character skills is available in 'db/(pre-)re/skill_db.txt'. There are two main uses for this function, it can check whether the character has a skill or not, and it can tell you if the level is high enough. You will be naked if you use nude. 1 Quote
Patskie Posted July 10, 2013 Posted July 10, 2013 Yaa haha. didn't comply with his/her requirement. ha ha ha Quote
macine Posted July 10, 2013 Author Posted July 10, 2013 Thank you very much! something like that will work? if(getskilllv("SM_SWORD")<2) unequip(4); and another doubt,i need to put the code what column ? Script or Equip_Script? and i need to add in both db/re/item_db.txt and the SQL database? or just one? Quote
Joseph Posted July 18, 2013 Posted July 18, 2013 That will be perfectly fine. { <your_script_here> },{},{} Quote
Question
macine
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.