Okay I have remade the code a little and the python file as well.
Java Code:
private static final String UPDATE_CHAR_COLOR = "UPDATE character_color SET name_color=?, WHERE charId=?";
public void saveNameColor(int color){
Connection con = null;
PreparedStatement statement = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection(false);
statement = con.prepareStatement(UPDATE_CHAR_COLOR);
statement.setString(1, StringToHex(Integer.toHexString(color).toUpperCase()));
statement.setInt(2, getObjectId());
getAppearance().setNameColor(color);
broadcastUserInfo();
statement.execute();
statement.close();
}
catch(Exception e){}
finally
{
CloseUtil.close(con);
}
}
Python Code:
if event == "1":
if st.getQuestItemsCount(57) > 250000:
st.takeItems(57,250000)
st.saveNameColor(0x009900)
return "1.htm"
if st.getQuestItemsCount(57) <= 250000:
return "Announcements: No Enought Adena To Select Color!"
st.exitQuest(0)
But still no luck ://