Control script
Control script
When i start control script for some item then shutdown pol and start it again did i have to run this script again or is it running?
Re: Control script
If its set in itemdesc.cfg as the ControlScript for the item, it should run for that item on item creation and system start for that item.
Re: Control script
well it isnt it starts when someone identify item then is start_script(":magic:MagicControl",item)
Re: Control script
Well you're starting it with start_script which could be a control script but isn't by POL's definition. If you always want a script to run for a certain objtype, you can use the setting in itemdesc.cfg -> ControlScript :magic:MagicControl otherwise any other way you would always have to start it yourself. You can use a start.src to start when POL starts but if you're doing it on every one of a certain item, you should use the itemdesc.cfg setting.