.unloadall script?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

.unloadall script?

Post by Terryl »

Is there one allready made? Because I am not the worlds best scripter and it would be easier for me to be able to focus on other stuff :p
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Code: Select all

use uo;
use os;

program UnloadAll(mobile)
     var num := Unload_Scripts("");
     SendSysMessage(mobile, "Unloaded "+num+" scripts.");
     return 1;
endprogram

http://svn.sourceforge.net/viewvc/pol-d ... iew=markup
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Austin wrote:

Code: Select all

use uo;
use os;

program UnloadAll(mobile)
     var num := Unload_Scripts("");
     SendSysMessage(mobile, "Unloaded "+num+" scripts.");
     return 1;
endprogram

http://svn.sourceforge.net/viewvc/pol-d ... iew=markup
Thanks :) Another thing, is there a way to like reload objtypes.txt without restarting the server?
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

Terryl wrote:Another thing, is there a way to like reload objtypes.txt without restarting the server?
reload? it is never loaded...

Shinigami
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Shinigami wrote:
Terryl wrote:Another thing, is there a way to like reload objtypes.txt without restarting the server?
reload? it is never loaded...

Shinigami
Weird... Because the changes I made in it isn't picked up by the server, it is still like I haven't changed the file at all :/
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

the server will generate this file an each restart as a result of reading all itemdesc.cfg's. it was never made to be an input file - change your itemdesc.cfg's.

Shinigami
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Shinigami wrote:the server will generate this file an each restart as a result of reading all itemdesc.cfg's. it was never made to be an input file - change your itemdesc.cfg's.

Shinigami
I allready have, and it still is like I haven't changed it
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

hmm... u've changed one of your itemdesc.cfg's? and than u've [re]started your Pol-server? and nothing was changed inside objtypes.txt? if it is so, did u've checked, that the package where your itemdesc.cfg is located was set to active (check the pkg.cfg inside same folder)?

Shinigami
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Shinigami wrote:hmm... u've changed one of your itemdesc.cfg's? and than u've [re]started your Pol-server? and nothing was changed inside objtypes.txt? if it is so, did u've checked, that the package where your itemdesc.cfg is located was set to active (check the pkg.cfg inside same folder)?

Shinigami
No no :P I haven't restarted the server, I am wondering if these changes can be done without restarting
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce »

You didn't understand Shini's post. That's not a file the server is reading. That's a file the server is making for your information. It only shows the objtypes you are using in all your itemdesc.cfg. So it is just an information file for you to see e.g. in which pkg an objtype is used or which objtype is free.
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Pierce wrote:You didn't understand Shini's post. That's not a file the server is reading. That's a file the server is making for your information. It only shows the objtypes you are using in all your itemdesc.cfg. So it is just an information file for you to see e.g. in which pkg an objtype is used or which objtype is free.
Yeah, but why doesn't the server see my changes in the itemdesc files without a restart? :(
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

because the server will not accept modification of itemdesc.cfg's on runtime. there are tons of reasons... main point could be data integrity and/or performance

Shinigami
Terryl
Neophyte Poster
Posts: 32
Joined: Thu Aug 10, 2006 9:59 am

Post by Terryl »

Shinigami wrote:because the server will not accept modification of itemdesc.cfg's on runtime. there are tons of reasons... main point could be data integrity and/or performance

Shinigami
Okay, thanks, that kind sucks :P But still, thanks anyway :)
Post Reply