Instructions:
In NPCConversationManager.java in your createAlliance function,
Replace
withCode:PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("INSERT INTO `alliance` (`name`, `guild1`, `guild2`) VALUES (?, ?, ?)");
and in the NPC 2010009,Code:PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("INSERT INTO `alliance` (`name`, `guild1`, `guild2`) VALUES (?, ?, ?)",PreparedStatement.RETURN_GENERATED_KEYS);
replace
withCode:cm.disbandAlliance(cm.getC(), cm.getPlayer().getGuild().getAllianceId());
Pretty simple fix. Compile and you're done. We tried to fix expanding alliances but it decided not to work. There are still a few things missing from Alliances though. (Functionality in the alliance window, expanding alliances, and rankings I believe.) Oh and the alliance NPC needs to be re-written. We may try and tackle these things this weekend.Code:cm.disbandAlliance(cm.getClient(), cm.getPlayer().getGuild().getAllianceId());
Credits: GFGlegend and me.



Reply With Quote![[Add-on]Fix for creating and deleting alliances in MoopleDev](http://ragezone.com/hyper728.png)

