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!
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.
@Celestine pls direct the topic to the proper section.
@Marmas I'm sorry I couldn't help you with L2OFF. I could help you with the error in systemmsg tho. If you want, share the systemmsg and tell me what you need to be added.
The server is L2off files .
there are some messages that show this thing.
each one with random number ( the line that is missing at systemmsg)
but how I can know what it needs to be there?
I do change it to c4 but it gives the error that I cannot save it and it dissapears
does it needs source code to be changed ?
If File edit shows error and deletes the file then either you're writing something wrong, or you haven't set it to read c4 files.
If you may, explain further the issue, which message you want to edit and to what.
Edit* What do you mean antipk zone? Like Peace zone?
And for God’s sake, please download lightshot and use print screen.
Price reduction on Google accounts - only $0.14 each, discounts are possible when buying in bulk!
Discounts when buying in bulk on Google accounts with 2FA and application password enabled.
Question
dpbBryan
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:
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.