Author Topic: Temporary Effect Turned Permanent  (Read 324 times)

Legacy_BelowTheBelt

  • Hero Member
  • *****
  • Posts: 699
  • Karma: +0/-0
Temporary Effect Turned Permanent
« on: January 01, 2015, 04:44:57 pm »


               

I've got an instance of a temporary item effect that has been effectively turned into a permanent effect.  I'm interested in figuring out an effective and efficient method of controlling for this in the future.


 


One of my players cast flame weapon on another player.  Then, one of them (not sure if it was the caster or the item owner) either logged out or crashed and the weapon now seems to have perma-flame weapon on it.  The item description denotes that the item has a temporary effect, but it never runs out.


 


I was thinking of looping through each and every item during log-in to check for temp effects and remove them, but I'm not sure that's the best solution.


 


Has anyone else tackled this?


 


 



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Temporary Effect Turned Permanent
« Reply #1 on: January 01, 2015, 05:50:37 pm »


               

afaik this happens only after restart ie. you cann flame on your weapon then you log out then you wait till restart and next login its permanent


 


but yes most of the builders remove all temporary itemproperties when login, if you dont be so strict you can do that only when first login (onenter script in first area)



               
               

               
            

Legacy_EzRemake

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Temporary Effect Turned Permanent
« Reply #2 on: January 01, 2015, 06:35:02 pm »


               

This is an issue, especially when people do it purposefully to sabotage someone's on-hit effects.


 


You could just throw this on your rest script


 


IPRemoveMatchingItemProperties(oWeapon, ITEM_PROPERTY_ONHITCASTSPELL, DURATION_TYPE_TEMPORARY, -1);