Difference between revisions of "SetDecayTest"
From UODemo Wiki
(Created page with 'void '''setDecayTest'''(integer NewDecayTestMode);<br> This function can be used to set the object decay mode of the server. Reverse engineering ([http://www.joinuo.com/forums/v…') |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | void '''setDecayTest'''(integer NewDecayTestMode);<br> | + | void '''setDecayTest'''(integer ''NewDecayTestMode'');<br> |
This function can be used to set the object decay mode of the server. Reverse engineering ([http://www.joinuo.com/forums/viewtopic.php?f=32&t=852 source]) has shown that 3 modes exist. | This function can be used to set the object decay mode of the server. Reverse engineering ([http://www.joinuo.com/forums/viewtopic.php?f=32&t=852 source]) has shown that 3 modes exist. | ||
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.