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.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
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.