Jump to content
  • 0

Unlimited Items and skill_require_db.txt


Question

Posted

I'm trying to make a separate item, like an Unlimited Poison Bottle, that will enable the use of Enchant Deadly Poison that won't use Unlimited Poison bottle, but will use a Poison bottle if Unlimited Poison Bottle is not present in the inventory.

378,0,0,60:70:80:90:100,0,0,0,99,0,0,none,0,678,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //ASC_EDP#ƒGƒ“ƒ`ƒƒƒ“ƒgƒfƒbƒhƒŠ?ƒ|ƒCƒYƒ“#

Anyone here knows how? :o

5 answers to this question

Recommended Posts

Posted

if you mean u want to make a OR condition like this

if ( countitem(unlimited poison bottle) ) {

useskill enchant deadly poison

}else if ( countitem(poison bottle) ) {

delitem poison bottle

useskill enchant deadly poison

}

you have to do something like this in the skill.c

afterall, skill_require_db.txt only applicable with AND condition

Posted

You can always put the unlimited poison bottle in as a skill requirement but just have the value as "0“, this prevents any other item from being used, though.

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