Jump to content
  • 0

OnEquip_Script and OnUnequip_Script


sotf

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

Good day! I plan to add Enchant System on my offline server but I have encountered a major problem, so here it is:

 

codes inside OnEquip_Script and OnUnequip_Script fields doesn't work if the enchant/card is inserted on the slot where a card shouldn't be.

 

Ex.

 

Headgear: Hat[1]

 

Custom Enchant:

{ bonus bStr,5; },{ set enstr,enstr+1; if(enstr >= 5) { bonus bStr,-3; }},{ set enstr,enstr-1;}

As we know, Hat[1] has the following slots

[ O ] [ X ] [ X ] [ X ]

having O = available slot

and X = unavailable slot

 

If I put my custom enchant inside O, codes inside OnEquip_Script and OnUnequip_Script works properly.

But if it's on one of the X's, it won't work at all.

Is it possible to make those codes inside OnEquip_Script and OnUnequip_Script work even if it is inside one of the X slots?

If it is, how? Please enlighten me. I wanted to limit my custom enchant's effect if it reaches a certain quantity on a player's headgear(s).

Edited by sotf
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   1
  • Joined:  10/12/12
  • Last Seen:  

you use rAmod ro eAmod

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

I am using updated rAthena. was updated last year.

Edited by sotf
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

BUMP! Anyone? Maybe a simple source edit can enable any item's OnEquip and OnUnequip_Script effects even if compounded on non-card slot?

Edited by sotf
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...