Register for your free account! | Forgot your password?

You last visited: Today at 03:26

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] MagParam Decrypter

Discussion on [RELEASE] MagParam Decrypter within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Closed Thread
 
Old   #1


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
Exclamation [RELEASE] MagParam Decrypter

Hello there...
I coded some **** that will help you Decrypt MagParams..

Requirements

-You need a database with SHARD, why?, i was lazy to write the whole thing so i just used a query to make it easier.

Theory
#####
Example
######

A Look From the Code
Code:
string.Format("{###}", Dec);
Convert.ToInt64(MagP, 16);
The whole thing works on those 2[converters] other lines are just sqlcon/texts and ****
Thanks Syloxx for making some ***** clear.



Code:
Tomorrow i will check if someone made something for variance if not i will try to make it
I know it's decrypted already
​Exo is offline  
Thanks
11 Users
Old 09/14/2014, 02:40   #2
 
Justin1337*'s Avatar
 
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
Thanks dude. =)
Justin1337* is offline  
Thanks
1 User
Old 09/14/2014, 03:17   #3
 
ledgervera's Avatar
 
elite*gold: 80
Join Date: May 2014
Posts: 199
Received Thanks: 456
Thanks for sharing, keep it up
ledgervera is offline  
Old 09/14/2014, 04:10   #4
 
Justin1337*'s Avatar
 
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
Quote:
Originally Posted by xExorcist View Post
Go get your own avatar you &&&&&leecher xD
haha. :P
Justin1337* is offline  
Old 09/14/2014, 12:19   #5
 
elite*gold: 0
Join Date: Mar 2014
Posts: 362
Received Thanks: 192
Keep going ..
CallM3B1tch is offline  
Old 09/14/2014, 14:09   #6
 
Snow*'s Avatar
 
elite*gold: 1
Join Date: Nov 2011
Posts: 2,532
Received Thanks: 1,439
yas yas

item_stats.class.php
PHP Code:
<?php

class CItemInfo
{
    private 
$m_ItemType 0;
    private 
$m_nCurParam 0;
    private 
$m_CurStatParams = array();
    
    static 
$s_WeaponStatNames 
        array(
'Durability''PhyReinforce''MagReinforce''HitRatio''PhyAttack''MagAttack''CriticalRatio');
    
    static 
$s_EquipmentStatNames 
        array(
'Durability''PhyReinforce''MagReinforce''PhyDefense''MagDefense''ParryRatio');
    
    static 
$s_ShieldStatNames =
        array(
'Durability''PhyReinforce''MagReinforce''BlockRatio''PhyDefense''MagDefense');
    
    static 
$s_AccessoryStatNames =
        array(
'PhyAbsorb''MagAbsorb');
        

    
    public function 
__construct($item_type)
    {
        if(
$item_type || $item_type 0) die("Item with type > 4 or < 0 !!1 (CItemInfo)!!");
        
$this -> m_ItemType $item_type;
    }
    
    public function 
AddParam($param_value)
    {
        
$this -> m_CurStatParams[$this -> m_nCurParam++] = $param_value;
    }
    
    
    public function 
GetParams()
    {
        
$result = array(array());
        switch(
$this -> m_ItemType)
        {
            case 
0:
            {
                for(
$i 0$i count (self::$s_WeaponStatNames); $i++)
                {
                    
$result[$i] = 
                        array(
self::$s_WeaponStatNames[$i] => $this -> m_CurStatParams[$i]);
                }
            }
            break;
            case 
1:
            {
                for(
$i 0$i count (self::$s_EquipmentStatNames); $i++)
                {
                    
$result[$i] = 
                        array(
self::$s_EquipmentStatNames[$i] => $this -> m_CurStatParams[$i]);
                }
            }
            break;
            case 
2:
            {
                for(
$i 0$i count (self::$s_ShieldStatNames); $i++)
                {
                    
$result[$i] = 
                        array(
self::$s_ShieldStatNames[$i] => $this -> m_CurStatParams[$i]);
                }
            }
            break;
            case 
3:
            {
                for(
$i 0$i count (self::$s_AccessoryStatNames); $i++)
                {
                    
$result[$i] = 
                        array(
self::$s_AccessoryStatNames[$i] => $this -> m_CurStatParams[$i]);
                }
            }
            break;
        }
        return 
$result;
    }
}

class 
CItemClass
{
    
    static 
$s_Instance;
    
    static 
$s_ItemTypes 
        array(
'Weapon''Equipment''Shield''Accessory');
    
    private function 
__construct()
    {
    
    }
    
    protected function 
__clone()
    {
    
    }
    
    static public function 
Instance()
    {
        if(
is_null(self::$s_Instance))
        {
            
self::$s_Instance = new self();
        }
        return 
self::$s_Instance;
    }
    
    
//extract percentage from 32 bits
    
public function PercentageFromBitvalue($bitvalue)
    {
        return 
round(($bitvalue 100 31) - 0.5 0);
    }
    
    public function 
GetVarianceDump($variance$item_type_id)
    {
        
$result null;
        
$nCounter 0
        
//$variance = (ulong) $variance;
        
$g_Item = new CItemInfo($item_type_id);
        
    
        while(
$variance 0)
        {
                
$cur_stat $variance 0x1F;
                
$g_Item -> AddParam($this -> PercentageFromBitvalue($cur_stat));
                
$variance >>= 5;
        }

        
print_r($g_Item -> GetParams());
        return 
$g_Item -> GetParams();
    }
}
?>
get_whitestats.php
PHP Code:
<html>
<head>
    <title>squirrel</title>
</head>

<body>
    <center>
    <table border = '1' cellspacing = '2' cellpadding = '2'>
    <form method='post'>
    <td>Variance</td><td><input type='text' name='variance'></td><tr/>
    <td>ItemType</td>
    <td>
        <select name = 'item_type'>
        <option value='0'>Weapon</option>
        <option value='1'>Armor</option>
        <option value='2'>Shield</option>
        <option value='3'>Accessory</option>
        </select>
    </td>
    <td></td><td><input type='submit' value='GIV'></td>
    </form>
    </table>
    </center>
</body>

</html>

<?php


if(!empty($_POST['variance']))
{
    include(
'item_stats.class.php');

    
$instance CItemClass::Instance();
    
    
//$a = (long) ($_POST['variance']);
    
$instance -> GetVarianceDump((float)($_POST['variance']), $_POST['item_type']);
    
    
    
}

?>
credits goes to the squirrel
Snow* is offline  
Old 09/16/2014, 08:54   #7
 
kingman77778's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 80
Received Thanks: 8
Keep going
kingman77778 is offline  
Old 05/23/2015, 21:15   #8
 
where_love2003's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 193
Received Thanks: 27
why you not char sql ?
where_love2003 is offline  
Old 05/24/2015, 11:08   #9
 
Syloxx's Avatar
 
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
Quote:
Originally Posted by where_love2003 View Post
why you not char sql ?
because i didnt told him how 2 do that in sql
Syloxx is offline  
Closed Thread

Tags
blue, magparam, vsro, xexorcist


Similar Threads Similar Threads
[release] main.swf decrypter
11/11/2023 - DarkOrbit - 16 Replies
Hi I build a tool do decrypt the main.swf. This Tool download the main.swf from int1 server -> decrypt it -> and you can save it where you want on your computer Will help you to find out, which scripts are at the game and how it works. http://www7.pic-upload.de/14.11.13/hdlnoagxbloh.j pg
MagParam Decrypt
09/18/2014 - SRO Private Server - 5 Replies
Hi. I need MagParam Columns decrypt. For Example: 30064771150 - Int 6 How can i decrypt it php or c# ?
[RELEASES] warCrypt [ Bin EN/DEcrypter and Packet EN/DEcrypter ]
12/26/2012 - WarRock Hacks, Bots, Cheats & Exploits - 18 Replies
Informations: This Lib is coded for WarRock you 2 different classes inside this Lib: The 'BinFile' class and the 'PacketData' class. The BinFile class has the options: - EncryptBinRaw(byte) - DecryptBinRaw(string) The function 'DecryptBinRaw' returns the the decrypted result of the used input string. The function 'EncryptBinRaw' returns the the crypted result of the used input bytes.
[Release]Metin2Mester Decrypter
04/21/2011 - Metin2 PServer Guides & Strategies - 38 Replies
....



All times are GMT +1. The time now is 03:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.