Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

LimitInfo -> basetab_sg

Newbie Spellweaver
Joined
Sep 10, 2013
Messages
28
Reaction score
0
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:
[LIST]
[*][COLOR=#000088]function[/COLOR][COLOR=#000000] getchardata[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$charname[/COLOR][COLOR=#666600],[/COLOR][COLOR=#000000]$opt[/COLOR][COLOR=#666600]){[/COLOR]
[*][COLOR=#000000]    $char [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000] $this[/COLOR][COLOR=#666600]->[/COLOR][COLOR=#000000]myfetch[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$this[/COLOR][COLOR=#666600]->[/COLOR][COLOR=#000000]myquery[/COLOR][COLOR=#666600]([/COLOR][COLOR=#008800]"select decode(LimitInfo,'UgCf#@+2YanWe765') FROM basetab_sg where Name = '$charname' "[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#000000]    $blob [/COLOR][COLOR=#666600]=[/COLOR][COLOR=#000000]  $this[/COLOR][COLOR=#666600]->[/COLOR][COLOR=#000000]strToHex[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$char[/COLOR][COLOR=#666600][[/COLOR][COLOR=#006666]0[/COLOR][COLOR=#666600]]);[/COLOR]
[*][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$opt [/COLOR][COLOR=#666600]==[/COLOR][COLOR=#008800]'level'[/COLOR][COLOR=#666600])[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#000000] hexdec[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]52[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$opt [/COLOR][COLOR=#666600]==[/COLOR][COLOR=#008800]'coin'[/COLOR][COLOR=#666600])[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#000000] hexdec[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]26[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]24[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]22[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]20[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$opt [/COLOR][COLOR=#666600]==[/COLOR][COLOR=#008800]'salary'[/COLOR][COLOR=#666600])[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#000000] hexdec[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]66[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]64[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]62[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]60[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$opt [/COLOR][COLOR=#666600]==[/COLOR][COLOR=#008800]'credit'[/COLOR][COLOR=#666600])[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#000000] hexdec[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]74[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]72[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]70[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]68[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#000088]if[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$opt [/COLOR][COLOR=#666600]==[/COLOR][COLOR=#008800]'exp'[/COLOR][COLOR=#666600])[/COLOR][COLOR=#000088]return[/COLOR][COLOR=#000000] hexdec[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]44[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]42[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]40[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]38[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]).[/COLOR][COLOR=#000000]substr[/COLOR][COLOR=#666600]([/COLOR][COLOR=#000000]$blob[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]36[/COLOR][COLOR=#666600],[/COLOR][COLOR=#006666]2[/COLOR][COLOR=#666600]));[/COLOR]
[*][COLOR=#666600]}[/COLOR]
[/LIST]
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:
Newbie Spellweaver
Joined
Sep 10, 2013
Messages
28
Reaction score
0
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,

boifan - LimitInfo -> basetab_sg - RaGEZONE Forums
 
Newbie Spellweaver
Joined
May 28, 2013
Messages
80
Reaction score
0
Looks like this ain't working for me. Did you try this out?

--- UPDATE --

It worked. Thank you.
 
Last edited:
Back
Top