Difference between revisions of "SetDecayTest"

From UODemo Wiki
Jump to: navigation, search
m
 
Line 8: Line 8:
 
</pre>
 
</pre>
 
If you pass any number other than 0, 1 or 2 then mode 2 is assumed and activated by this function.
 
If you pass any number other than 0, 1 or 2 then mode 2 is assumed and activated by this function.
 +
There is no true function that can be used to get the current decay mode, but you can use the [[getDefaultDieDecay]] function for this purpose by interpreting its return value.
  
  
 
Return to the [[Command List]].
 
Return to the [[Command List]].

Latest revision as of 20:19, 11 August 2011

void setDecayTest(integer NewDecayTestMode);

This function can be used to set the object decay mode of the server. Reverse engineering (source) has shown that 3 modes exist.

0 = no testing aka normal decay
1 = fast decay
2 = no decay aka ageless

If you pass any number other than 0, 1 or 2 then mode 2 is assumed and activated by this function. There is no true function that can be used to get the current decay mode, but you can use the getDefaultDieDecay function for this purpose by interpreting its return value.


Return to the Command List.