Jump to content
  • 0

Error on character creation


Question

Posted

14j97c9.jpg

 

I've tried to create a new column in my SQL called townID. I suppose it'll work somewhat like a faction. Except the ID is only going to used when a player hits respawn or uses a SOE.

 

The only place I've worked inside was L2PcInstance.java, and I've added the value "townID" to the SQL strings:

private static final String INSERT_CHARACTER
private static final String UPDATE_CHARACTER
private static final String RESTORE_CHARACTER

 

These have all been changed to access the ID integer, which will be 0 - 2, 0 being no town assigned, 1 being elven village, and 2 being dark elven village.

 

Everything gets entered into the table just fine, except my character starts in some odd location, where X Y and Z are all set to NULL, and curHp, curMp, etc, are set to 0.

 

I'm using l2jserver and the latest svn version for gracia. I can post more of my code if you'd like, but I've found myself stuck on this point. Thanks for any help!

 

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock