PenUltima Online

It is currently Sun Sep 07, 2008 2:13 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: .unloadall script?
PostPosted: Tue Aug 15, 2006 4:26 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 4:27 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 410
Location: San Diego, California
Code:
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

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 5:20 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
Austin wrote:
Code:
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 6:01 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
Terryl wrote:
Another thing, is there a way to like reload objtypes.txt without restarting the server?

reload? it is never loaded...

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 6:08 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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 :/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 6:13 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 7:02 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 7:16 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 7:25 am 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 12:40 pm 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 276
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 1:04 pm 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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? :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 1:25 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 15, 2006 1:30 pm 
Offline

Joined: Thu Aug 10, 2006 9:59 am
Posts: 32
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 :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Waluy and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl