PenUltima Online

It is currently Fri Sep 05, 2008 12:28 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: question on rebuilding all vendors at once...
PostPosted: Thu Feb 23, 2006 5:20 pm 
Offline

Joined: Fri Feb 17, 2006 7:31 pm
Posts: 22
Location: Saint Paul, MN
I know that the nodewipe command will delete all the vendors but is there a way to delete the ones standing and then recreate them all without having to go to each node and recreate them? The reason I ask is that I adjusted the costs of some items in game and when I restarted all the npc's (restartall command) and then rebooted the server afterwards the same prices remain - the only time they change is if i delete the vendor and rebuild them manually (which is a pain). Any ideas how to do this? any help would be appreciated.

Thanks!

Mijimoe


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 23, 2006 9:31 pm 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
if you are talking about prices of items sold by merchants you have to:
.unloadcfg :PKG:itemdesc //PKG is package name where is itemdesc.cfg with changed item price
then restartall

but if you thing about something else... please explain your problem again point by point.


Top
 Profile  
 
 Post subject: one question more for clarification....
PostPosted: Fri Feb 24, 2006 7:07 am 
Offline

Joined: Fri Feb 17, 2006 7:31 pm
Posts: 22
Location: Saint Paul, MN
Ok I think I understand what you are saying. Here is an example listed below so that I can get a clear idea as to how to run this command:

I altered the costs for potions in the game. The potion costs are in the following location on the server running the shard:

c:\pol\pkg\skills\alchemy\itemdesc.cfg

Therefore, I have tried doing the following command to no avail:

.unloadcfg :alchemy:itemdesc

Is this the correct syntax or is there something here that I am missing?

In addition to this, I also would like to unload the config file that is located at:

c:\pol\config\itemdesc.cfg

What is the syntax for this if possible?

Any additional help would be greatly appreciated.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 24, 2006 7:20 am 
Offline
User avatar

Joined: Sat Feb 04, 2006 8:17 am
Posts: 137
Location: Illinois, USA
To my knowledge with POL95 you can not unload the itemdesc.cfg files in game yet, even with the .unloadcfg command.

Maybe this has changed with 96 but I have not gotten that far with 96 yet.

_________________
2nd place is the 1st loser.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 1:33 am 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
you can unload them, but only for ReadConfigFile

and about prices...
vendors have their stuff in their storageareas inv_fs

after unloading file destroy every item in this container and recreate items

Code:
function RecreateMyStorage()
   var storage, inv_fs, inv_pb, inv_1c;
   storage := FindStorageArea( "Merchant Storage" );
   if (!storage)
      syslog( "Unable to FindStorageArea Merchant Storage" );
      exit;
   endif
   inv_fs := find_or_create_item( storage, me.serial + " FS", UOBJ_METALCHEST );
   foreach item in inv_fs
      destroyitem(item);
   endforeach
   var merchant_type := GetObjProperty( Self(), "MerchantType" );
   RestockInventory( merchant_type, inv_fs );
endfunction


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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