sotf Posted March 30, 2016 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Share Posted March 30, 2016 (edited) 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 March 30, 2016 by sotf Quote Link to comment Share on other sites More sharing options...
0 4n0biz Posted March 30, 2016 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 41 Reputation: 1 Joined: 10/12/12 Last Seen: July 18, 2017 Share Posted March 30, 2016 you use rAmod ro eAmod Quote Link to comment Share on other sites More sharing options...
0 sotf Posted March 31, 2016 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Author Share Posted March 31, 2016 (edited) I am using updated rAthena. was updated last year. Edited March 31, 2016 by sotf Quote Link to comment Share on other sites More sharing options...
0 sotf Posted April 1, 2016 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Author Share Posted April 1, 2016 (edited) 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 April 1, 2016 by sotf Quote Link to comment Share on other sites More sharing options...
Question
sotf
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:
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 sotfLink to comment
Share on other sites
3 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.