[Add-on]Fix for creating and deleting alliances in MoopleDev

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! redeemer34 is offline
    MemberRank
    Aug 2008 Join Date
    335Posts

    [Add-on]Fix for creating and deleting alliances in MoopleDev

    Instructions:
    In NPCConversationManager.java in your createAlliance function,
    Replace
    Code:
    PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("INSERT INTO `alliance` (`name`, `guild1`, `guild2`) VALUES (?, ?, ?)");
    with
    Code:
    PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement("INSERT INTO `alliance` (`name`, `guild1`, `guild2`) VALUES (?, ?, ?)",PreparedStatement.RETURN_GENERATED_KEYS);
    and in the NPC 2010009,
    replace

    Code:
    cm.disbandAlliance(cm.getC(), cm.getPlayer().getGuild().getAllianceId());
    with
    Code:
    cm.disbandAlliance(cm.getClient(), 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.

    Credits: GFGlegend and me.
    Last edited by redeemer34; 23-03-11 at 02:38 AM.


  2. #2
    Gamma Sparrow is offline
    MemberRank
    Mar 2009 Join Date
    SydneyLocation
    2,960Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Nice release, thanks!
    Last edited by Sparrow; 23-03-11 at 05:08 AM.

  3. #3
    :) iJFAC is offline
    MemberRank
    Sep 2007 Join Date
    SomewhereLocation
    519Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Yeah it does work.. He told me on MSN.. Awesome :3.. keep it up!

  4. #4
    Account Upgraded | Title Enabled! redeemer34 is offline
    MemberRank
    Aug 2008 Join Date
    335Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Thanks guys. I'm gonna just add on to this thread whenever I fix the other parts of alliances, so check back every once in a while.

  5. #5
    while(true) spam(); kevintjuh93 is offline
    ModeratorRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,119Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Thanks for saving me some work. Doing other stuffs right now, so I didn't bother fixing this.

    Guys, what about full Pyramid PQ? :)

  6. #6
    Enthusiast anitawu is offline
    MemberRank
    Feb 2011 Join Date
    25Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Thanks for your sharing ~~

  7. #7
    Account Upgraded | Title Enabled! Remixes is offline
    MemberRank
    Jan 2011 Join Date
    RaGEZONELocation
    258Posts

    Re: [Add-on]Fix for creating and deleting alliances in MoopleDev

    Good job, and I hope you release something like this =P



Advertisement