Loading a char/shop

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
warfare
Posts: 8
Joined: Sat Dec 01, 2007 10:18 am

Loading a char/shop

Post by warfare »

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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Loading a char/shop

Post by jurchiks »

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
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.
lap
Posts: 5
Joined: Sat Dec 01, 2007 3:48 pm

Re: Loading a char/shop

Post by lap »

you need to save the shops in database and reload them after shutdown
hi,

how can i do this ? because i'm really interested to get a crafter by this way.
thanks in advance,
regards.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Loading a char/shop

Post by jurchiks »

... 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
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.
lap
Posts: 5
Joined: Sat Dec 01, 2007 3:48 pm

Re: Loading a char/shop

Post by lap »

Code: Select all

# Store/Restore Dwarven Manufacture list# Keep manufacture shoplist after relog# Default: FalseStoreRecipeShopList = True
done, (i found that by myself how to keep manufacture shop list after 1 hour of search :))

but

what you mean with
follow it in source
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.

thanks in advance,
regards.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Loading a char/shop

Post by jurchiks »

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
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.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Loading a char/shop

Post by _DS_ »

lap wrote:because i don't know how a char can be loaded in "private creation shop" when the server restarts.
Not supported and no plans to support it due to security issues.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
lap
Posts: 5
Joined: Sat Dec 01, 2007 3:48 pm

Re: Loading a char/shop

Post by lap »

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.
Post Reply