[Fix] Inventory Penya Bug / Bank Penya Bug..

Results 1 to 11 of 11
  1. #1
    Valued Member xJohn08 is offline
    MemberRank
    Oct 2008 Join Date
    106Posts

    Cool [Fix] Inventory Penya Bug / Bank Penya Bug..

    If Any Of Your Member(s) Have Ever Put More Than 2Bil In There Bank And Re-Log And Its In The Negative Or.. You Pick Up More Than 2Bil And Your Penya Is Reset To 0 Well.. This Will Fix It..

    What It Dose :
    If The "New Penya" Is More Than 2BIl Then It Sets "New Penya" To 2Bil

    MySQL Trigger ( Inventory Fix )
    Code:
    Create Trigger `Anti-Bug` Before Update On `Characters` For Each Row 
    Begin
    If New.Penya > 2000000000 Then 
    Set New.Penya = 2000000000;
    End If;
    End;
    MySQL Trigger ( Bank Fix )
    Code:
    Create Trigger `Anti-Bug` Before Update On `Accounts` For Each Row 
    Begin
    If New.BankPenya1 > 2000000000 Then 
    Set New.BankPenya1= 2000000000;
    End If;
    If New.BankPenya2 > 2000000000 Then 
    Set New.BankPenya2 = 2000000000;
    End If;
    If New.BankPenya3 > 2000000000 Then 
    Set New.BankPenya3= 2000000000;
    End If;
    End;

    Hope This Helps Some People.. ^^

    - John


  2. #2
    Mr.Luxury :D, DeadlyD Wuz Here. Luxury is offline
    MemberRank
    Jan 2009 Join Date
    LuxuryFlyffLocation
    355Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Nice Release but the invintory Fix isnt working it just gives me a error...

  3. #3
    Valued Member xJohn08 is offline
    MemberRank
    Oct 2008 Join Date
    106Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    its prob. cause they both have the same name.. so make 1 Anti-Bug and the other Anti-Bug 2...

  4. #4
    Mr.Luxury :D, DeadlyD Wuz Here. Luxury is offline
    MemberRank
    Jan 2009 Join Date
    LuxuryFlyffLocation
    355Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Create Trigger `Anti-Bug2` Before Update On `Characters` For Each Row
    Begin
    If New.Penya > 2000000000 Then
    Set New.Penya = 2000000000;
    End If;
    End;
    Nop

  5. #5
    Account Upgraded | Title Enabled! Xc3sz is offline
    MemberRank
    Nov 2008 Join Date
    Mostly at..Location
    260Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Why dont just make it turn into perin,Easy....

  6. #6
    Mr.Luxury :D, DeadlyD Wuz Here. Luxury is offline
    MemberRank
    Jan 2009 Join Date
    LuxuryFlyffLocation
    355Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Quote Originally Posted by Xc3sz View Post
    Why dont just make it turn into perin,Easy....
    Yep thats the system im using atm

  7. #7
    Valued Member xJohn08 is offline
    MemberRank
    Oct 2008 Join Date
    106Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Quote Originally Posted by Xc3sz View Post
    Why dont just make it turn into perin,Easy....
    Well on our server perins get duped so we have wiped them from the public =3 But the Trigger works on my server.. =x

  8. #8
    Account Upgraded | Title Enabled! BBim is offline
    MemberRank
    Sep 2008 Join Date
    127.0.0.1Location
    1,110Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Nice idea...
    Just two things:
    - Doesnt the triggers lags the server?
    - The problem of it is size of the packet(its int and not int64) or database?

  9. #9
    Account Upgraded | Title Enabled! Xc3sz is offline
    MemberRank
    Nov 2008 Join Date
    Mostly at..Location
    260Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    Well on our server perins get duped so we have wiped them from the public =3 But the Trigger works on my server.. =x
    Ahhh i See..:P

  10. #10
    PENTAKILL Scratch is offline
    MemberRank
    Oct 2008 Join Date
    LiverpoolLocation
    3,172Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    awww so whats i need do for get inventory bug fix??

  11. #11
    That Old Flyffer creed0116 is offline
    MemberRank
    Dec 2008 Join Date
    BotsmallLocation
    412Posts

    Re: [Fix] Inventory Penya Bug / Bank Penya Bug..

    hmmn... you should delete the trigger of your autochange job at your character table... both works fine with me



Advertisement