LimitInfo -> basetab_sg

Results 1 to 10 of 10
  1. #1
    Member boifan is offline
    MemberRank
    Sep 2013 Join Date
    28Posts

    cool LimitInfo -> basetab_sg


    RaGEZONE Recommends

    RaGEZONE Recommends

    Came across this function which reads LimitInfo field in basetab_sg.
    Code is not mine whatsoever, just wanted to share maybe someone will find it useful.

    Code:
    • function getchardata($charname,$opt){
    • $char = $this->myfetch($this->myquery("select decode(LimitInfo,'UgCf#@+2YanWe765') FROM basetab_sg where Name = '$charname' "));
    • $blob = $this->strToHex($char[0]);
    • if($opt =='level')return hexdec(substr($blob,52,2));
    • if($opt =='coin')return hexdec(substr($blob,26,2).substr($blob,24,2).substr($blob,22,2).substr($blob,20,2));
    • if($opt =='salary')return hexdec(substr($blob,66,2).substr($blob,64,2).substr($blob,62,2).substr($blob,60,2));
    • if($opt =='credit')return hexdec(substr($blob,74,2).substr($blob,72,2).substr($blob,70,2).substr($blob,68,2));
    • if($opt =='exp')return hexdec(substr($blob,44,2).substr($blob,42,2).substr($blob,40,2).substr($blob,38,2).substr($blob,36,2));
    • }
    UgCf#@+2YanWe765 = decode key

    Credits to Necrentos for Coding.
    PS: Some people already know this and more but are too greedy to share with community... Shame on you :)
    Last edited by boifan; 26-03-17 at 04:18 PM. Reason: added credits


  2. #2
    Member arpan is offline
    MemberRank
    May 2013 Join Date
    77Posts

    Re: LimitInfo -> basetab_sg

    Can you explain more about this?

  3. #3
    Member boifan is offline
    MemberRank
    Sep 2013 Join Date
    28Posts

    Re: LimitInfo -> basetab_sg

    In that example you can pull some infos from every character, like coins,salary,credit,experience.
    of course if you edit it to read some other blob for example MemberInfo in Guildtab_sg you can probably read infos about a certain guild etc,


  4. #4
    Member arpan is offline
    MemberRank
    May 2013 Join Date
    77Posts

    Re: LimitInfo -> basetab_sg

    Interesting. Thank you..

  5. #5
    Member arpan is offline
    MemberRank
    May 2013 Join Date
    77Posts

    Re: LimitInfo -> basetab_sg

    Looks like this ain't working for me. Did you try this out?

    --- UPDATE --

    It worked. Thank you.
    Last edited by arpan; 21-03-17 at 07:54 AM.

  6. #6
    Hardcore Member necrentos is offline
    MemberRank
    Sep 2012 Join Date
    121Posts

    Re: LimitInfo -> basetab_sg

    its my old code =)
    [BOI]KS - Legends Nerver Die
    Real Play to Win Server.

  7. #7
    Member boifan is offline
    MemberRank
    Sep 2013 Join Date
    28Posts

    Re: LimitInfo -> basetab_sg

    sorry Necrentos, don't really remember where i encountered it, anyway added credits to you

  8. #8
    Gay Lord ! imrain01 is offline
    True MemberRank
    Apr 2011 Join Date
    252Posts

    Re: LimitInfo -> basetab_sg

    any guide how to use this please.Php or mysql ?
    Battle Of The Immortals : Đao Kiếm Thần Vực

  9. #9
    Hardcore Member necrentos is offline
    MemberRank
    Sep 2012 Join Date
    121Posts

    Re: LimitInfo -> basetab_sg

    its ok, thanks for the credits =)
    [BOI]KS - Legends Nerver Die
    Real Play to Win Server.

  10. #10
    Newbie oleghalin is offline
    MemberRank
    Feb 2014 Join Date
    3Posts

    Re: LimitInfo -> basetab_sg

    is it universal decode key? Or just for LimitInfo?




Advertisement