PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
question on rebuilding all vendors at once...

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
mijimoe



Joined: 17 Feb 2006
Posts: 22
Location: Saint Paul, MN

PostPosted: Thu Feb 23, 2006 9:20 pm    Post subject: question on rebuilding all vendors at once... Reply with quote

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

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Fri Feb 24, 2006 1:31 am    Post subject: Reply with quote

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.

Author Message
mijimoe



Joined: 17 Feb 2006
Posts: 22
Location: Saint Paul, MN

PostPosted: Fri Feb 24, 2006 11:07 am    Post subject: one question more for clarification.... Reply with quote

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!

Author Message
Tritan



Joined: 04 Feb 2006
Posts: 136
Location: Illinois, USA

PostPosted: Fri Feb 24, 2006 11:20 am    Post subject: Reply with quote

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.

Author Message
FreeSoul



Joined: 04 Feb 2006
Posts: 90
Location: Aman

PostPosted: Sun Feb 26, 2006 5:33 am    Post subject: Reply with quote

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

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty