equipment permissions
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
equipment permissions
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)
Former programmer for the TMWA server.
Re: equipment permissions
you can spot a doubled bonuses which is only temporary (in fact, it appears between 2 iterations of a loop).This does NOT work - it leads to doubled bonuses and/or corruption
So far I can say this works.
There are various timers available. And not everything works in equip scripts. Need detail.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.
Otherwise I CWLK.
Re: equipment permissions
CWLK = ?v0id wrote: There are various timers available. And not everything works in equip scripts. Need detail.
Otherwise I CWLK.
I mean player-attached timers - in this case addtimer(). (areatimer is the other way of attaching a timer to a player)
(the only other timers are NPC timers - initnpctimer and family)
Former programmer for the TMWA server.