Well as a rookie i wanted to pass a code (hitman event) to l2jfrozen after i passed it successfully i want to remove. I thought that i made it right but as i see i @@#$@ up and gameconsoll shows me this error :
Could not store char base data:
java.sql.SQLException: No value specified for parameter 62
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatem
ent.java:2566)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
a:2542)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
a:2468)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1298)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPr
eparedStatement.java:989)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.storeCharB
ase(L2PcInstance.java:10879)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.store(L2Pc
Instance.java:10727)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.store(L2Pc
Instance.java:10753)
at com.l2jfrozen.gameserver.network.clientpackets.CharacterCreate.initNe
wChar(CharacterCreate.java:267)
at com.l2jfrozen.gameserver.network.clientpackets.CharacterCreate.runImp
l(CharacterCreate.java:143)
at com.l2jfrozen.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:75)
at com.l2jfrozen.gameserver.network.L2GameClient.run(L2GameClient.java:1
194)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Could not store char base data:
java.sql.SQLException: No value specified for parameter 62
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatem
ent.java:2566)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
a:2542)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
a:2468)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1298)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPr
eparedStatement.java:989)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.storeCharB
ase(L2PcInstance.java:10879)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.store(L2Pc
Instance.java:10727)
at com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.store(L2Pc
Instance.java:10753)
at com.l2jfrozen.gameserver.network.L2GameClient$DisconnectTask.run(L2Ga
meClient.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Yes, there is another, very simple, efficient, and quite elegant, way to do this.
What you need is:
- create one Config of type Boolean, lets call it MOB_DROP_ONLY_ADENA, which will act as the trigger point for this feature.
- locate the method which is responsible for parsing the drops of the monsters from XML.
- in this method, there should be a loop for each of the parsed items and there we add a simple check:
if (Config.MOB_DROP_ONLY_ADENA && item.getItemId() != 57)
{
continue;
}
And we are done.
Now, every time the server tries to parse a drop item, it will check if the ID of the item is 57 (adena) and skip it if it isnt.
You should add a further check to make sure that the NPC you are parsing the drop for is of type Monster and not of type RaidBoss or GrandBoss (or any other custom type you might have).
The easiest way is with with a lookup into the NPC/Monster Template, if there is one on your assembly of choice. What these templates do, usually, is to provide some lookup options for certain features of theirs, such as level, type, etc.
Hello, good morning everyone. I would like to know some way so that the mobs only drop adena, the only way I know is to go to each mob's line and delete the materials. Would there be any other way?
Question
andon19
Well as a rookie i wanted to pass a code (hitman event) to l2jfrozen after i passed it successfully i want to remove. I thought that i made it right but as i see i @@#$@ up and gameconsoll shows me this error :
Link to comment
Share on other sites
7 answers to this question
Recommended Posts