equipment permissions
Posted: 22 Dec 2012, 00:07
I just noticed that the new script function "RequireStat" sometimes calls unequipbyid during an equip script.
This does NOT work - it leads to doubled bonuses and/or corruption.
Instead, schedule a timer with a delay of 0 that removes the item. If you first check that no such timer is already scheduled, it will DTRT if the player somehow has multiple restricted items equipped.
(also, it would be better to pass the bStr directly instead of passing a string)
This does NOT work - it leads to doubled bonuses and/or corruption.
Instead, schedule a timer with a delay of 0 that removes the item. If you first check that no such timer is already scheduled, it will DTRT if the player somehow has multiple restricted items equipped.
(also, it would be better to pass the bStr directly instead of passing a string)