If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 3825
L2JDP Revision Number: 6902
Greetings,
need to ask if is possible after creating a character, to load it from db as logging it as shop, instead of using a npc-shop/crafter.
For example, i have a dwarf created and i want to load it every time the server restarts, as online/offline private creation shop. Is it possible?
Regards
Loading a char/shop
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Loading a char/shop
what you mean is saving offline shop/craft and loading after restart/shutdown?
it's possible, you need to save the shops in database and reload them after shutdown, but it will take more time to restart, and make the db weight more, also will take additional resources
it's possible, you need to save the shops in database and reload them after shutdown, but it will take more time to restart, and make the db weight more, also will take additional resources
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 5
- Joined: Sat Dec 01, 2007 3:48 pm
Re: Loading a char/shop
hi,you need to save the shops in database and reload them after shutdown
how can i do this ? because i'm really interested to get a crafter by this way.
thanks in advance,
regards.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Loading a char/shop
... check how recipe storing is done
Character.properties
# Store/Restore Dwarven Manufacture list
# Keep manufacture shoplist after relog
# Default: False
StoreRecipeShopList = True
follow it in source
Character.properties
# Store/Restore Dwarven Manufacture list
# Keep manufacture shoplist after relog
# Default: False
StoreRecipeShopList = True
follow it in source
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 5
- Joined: Sat Dec 01, 2007 3:48 pm
Re: Loading a char/shop
Code: Select all
# Store/Restore Dwarven Manufacture list# Keep manufacture shoplist after relog# Default: FalseStoreRecipeShopList = True

but
what you mean with
could you explain me how to ? is there some java code to write ? because i don't know how a char can be loaded in "private creation shop" when the server restarts.follow it in source
thanks in advance,
regards.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Loading a char/shop
umm... do you even compile the server?
or you just dl the nightlies?
if it's the second one and you don't know a shit about java, don't bother
or you just dl the nightlies?
if it's the second one and you don't know a shit about java, don't bother
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: Loading a char/shop
Not supported and no plans to support it due to security issues.lap wrote:because i don't know how a char can be loaded in "private creation shop" when the server restarts.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 5
- Joined: Sat Dec 01, 2007 3:48 pm
Re: Loading a char/shop
yes i'm newbie in l2j world, and know nothing about java.
i was just asking if possible or not to do this, so it's above my knowledges.
thanks all for your fast answers.
regards.
i was just asking if possible or not to do this, so it's above my knowledges.
thanks all for your fast answers.
regards.