Completely unloading a PIDed script?
Posted: Mon Oct 26, 2009 6:13 pm
I tried looking around in a few sources and could not figure this out, please if anyone has any ideas or a post to dirrect me to...
I have a charm animal subscript (startscript), I want to launch from scrolls, wands, etc. Each time it is run to completetion, is the script fully unloaded from the server? Or does the Pid need to be unlaoded for that instance to be fully unloaded?
So if I run the charmed script 5000 times, without unloading it, do I need to the be unloading the subscript.
So in another case. If say I have a script, that is constantly running in the background. Like a hunger script. Regularly making players hungrier and hungrier. Then I want to startscript("dizzy"). Which might last 10 seconds before completetion. At it's end, will it be completely unloaded, or does the server hold onto a residue of memory or code? If it does, can I unload the Pid to flush it?
code
code
code
subscript := startscript("dizzy");
code
code
code
unload_pid(subscript); <---- ???
BTW - I do know about Unload_Scripts(scriptname := ""), but I don't want to unload all instances of this script, just the specific IDs.
Just curious, thanks in advance
I have a charm animal subscript (startscript), I want to launch from scrolls, wands, etc. Each time it is run to completetion, is the script fully unloaded from the server? Or does the Pid need to be unlaoded for that instance to be fully unloaded?
So if I run the charmed script 5000 times, without unloading it, do I need to the be unloading the subscript.
So in another case. If say I have a script, that is constantly running in the background. Like a hunger script. Regularly making players hungrier and hungrier. Then I want to startscript("dizzy"). Which might last 10 seconds before completetion. At it's end, will it be completely unloaded, or does the server hold onto a residue of memory or code? If it does, can I unload the Pid to flush it?
code
code
code
subscript := startscript("dizzy");
code
code
code
unload_pid(subscript); <---- ???
BTW - I do know about Unload_Scripts(scriptname := ""), but I don't want to unload all instances of this script, just the specific IDs.
Just curious, thanks in advance