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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...