Script that switch...
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Script that switch...

Started by blackwings, 20 January, 2005, 14:35:29

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blackwings

is it possible to create a script, that through command switch between to script. I mean, you have to script in a subfolder to Scripts, then you have this script that I'm requesting in the Scripts folder. Which at start automatically run one of them. But when a OP use a command, like +switch , it unloads the script, then loads the other one + sends to all Ops that it has  switched the script + the name of the script that it has switch ed to. If the command is used again, the it will switch back to the first one..


Optimus

Well i know it's possible with the new unreleased ptokax, cause there is a function to restart scripts.

^^ Cause i think that is needed for your request

blackwings

QuoteOriginally posted by Optimus
Well i know it's possible with the new unreleased ptokax, cause there is a function to restart scripts.

^^ Cause i think that is needed for your request
ok :( guess I have to wait until the new ptokax :(


TecMaster

#3
This should be possible even today I think.

If you just have two scripts you're going to switch beetween then you can specifi the two script in an ini-fil that tells the script that is gooing to be started at startup. When you type +switch it renames the script that is running and should be "switched" out to script1.lua.txt or something else and renames the one that should be run to script1.lua and then uses !restartscripts ... Might work  :D

SMF spam blocked by CleanTalk