IF player have itemID 715 (yellow gemstone) -> he can use spell and that item will be removed (like by default)
IF player DON'T have itemID 715 map-server will be looking for player inventory for next value after ":", the next value in this example 505. So, if player Don't have 715, but have 505 -> the skill will require this item for skill.
IF player don't have 715 or 505 in inventory -> server will looking for next item_id after ":", the next item is 506. So if player don't have 715 or 505 item in inventory (order is important) the skill will require and use 506 item id.
IF player don't have any item of that list (715, 505, 506) in inventory -> skill will fail.
Requirement Amount (715:505:506,1) is the same for all of this items.
In few words:
I want to make alternative require_db for spell in txt file which is divided by ":" (like weapon's (Spiral Pierce in renewal (it's required OR Spear or Sword))
Question
JohnyRox
Hi, i want to make next thing.
As we all know we have at db/pre or re/skill_require_db.txt
With next structure:
I need to modify that to:
Original:
RequiredItemID1,RequiredItemAmount1
I want to:
RequiredItemID1 : ORRequiredItemID1 : ORRequiredItemID1,RequiredItemAmount1
If player don't have item in inventory -> player can use ANOTHER item for requirement after ":".
EXAMPLES
I need to modify sources & that db to next prototype:
Original:
Modified:
What i want to get by this edit:
In few words:
I want to make alternative require_db for spell in txt file which is divided by ":" (like weapon's (Spiral Pierce in renewal (it's required OR Spear or Sword))
Link to comment
Share on other sites
0 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.