Jump to content
  • 0

Equipament Script HELP


Question

Posted
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 ?

6 answers to this question

Recommended Posts

Posted


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.

Posted
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. :D

  • Upvote 1
Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...