Jump to content
  • 0

if mapflag -> use this item, if no mapflag -> use another item for skill.


anacondaq

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

Looking for any suggestions about next feature:

 

By default SA_DISPEL required 1 Yellow Gemstone.

I'm looking for any suggestions or where to start to search/think about next feature:

 

For example we want to modify SA_DISPEL to next model:

 

  1. if player on map with mapflag mf_pvp -> SA_DISPEL will required item_id not Yellow Gemstone, but for example Apple.
  2. if player back to normal mapflag -> SA_DISPEL will required normal item (Yellow Gemstone)

 

I'm planning to modify many skills. But editing each spell => bored.

If there are any solution to make some config for example:

 

emulator/db/skill_require_override.txt

 

With next structure:

 

skill_id,EVENT (mapflag or???),Default ID:overrided item_id

 

Example:

 

emulator/db/skill_required_override.txt

// item_id,mapflag ID,original_item:overrided_item,original_item1:overrided_item1

// mapflags ID:

// 0 = normal

// 1 = pvp

// 2 = woe

// 3 = town

// 4 = restricted

// 5 = battlegrounds

289,1,715:505 // in only pvp mapflag will overwrite required item to 505

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

I was playing to make like this.

basically duplicating skill_require_db.txt for certain map, by using flag just like item_noequip (restricted zone) does.

  • Upvote 1
Link to comment
Share on other sites

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.

×
×
  • Create New...