Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 13:38

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

Advertisement



[Share/Guide] Information about White (100%) and common/special Blue states

Discussion on [Share/Guide] Information about White (100%) and common/special Blue states within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
witchymoo's Avatar
 
elite*gold: 40
Join Date: Jul 2013
Posts: 167
Received Thanks: 201
Post [Share/Guide] Information about White (100%) and common/special Blue states

Hello,

I'd like to share something about BLUE and WHITE attributes (I think there's yet complete explanation around).

Variance (white state)
MagParam (common blue state)
MagParam (special blue state)
Usage example:
Making earring full white 100% and 9 blue attributes including the special ones:
Code:
USE [SRO_VT_SHARD]
DECLARE @EarringItemID64 INT = <your_earring_ID_here>	-- change this to your earring ID
DECLARE @EQPlus TINYINT = 12	-- da PLUS
UPDATE _Items SET OptLevel = @EQPlus, Variance = 1073741823, MagParamNum = 9, MagParam1 = 30064771144, MagParam2 = 30064771150, MagParam3 = 85899346100, MagParam4 = 85899346094, MagParam5 = 85899346088, MagParam6 = 85899346106, MagParam7 = 85899346112, MagParam8 = 214748365115, MagParam9 = 214748365139, MagParam10 = NULL, MagParam11 = NULL, MagParam12 = NULL WHERE ID64 = @EarringItemID64
Result is: Making chest full white 100% (except dura) and full blue attributes including special ones:
Code:
USE [SRO_VT_SHARD]
DECLARE @MailItemID64 INT = <your_chest_ID_here>	-- change this to your chest ID
DECLARE @EQPlus TINYINT = 12	-- da PLUS
UPDATE _Items SET OptLevel = @EQPlus, Variance = 34359738336, MagParamNum = 5, MagParam1 = 30064771144, MagParam2 = 30064771150, MagParam3 = 858993459290, MagParam4 = 257698037898, MagParam5 = 901943132463, MagParam6 = NULL, MagParam7 = NULL, MagParam8 = NULL, MagParam9 = NULL, MagParam10 = NULL, MagParam11 = NULL, MagParam12 = NULL WHERE ID64 = @MailItemID64
Result is: And so on...

Hope this could help a little bit

PS: You can also merge this with SP i made to add automatic gear for GMs in .

cheers
witchymoo is offline  
Thanks
9 Users
Old 11/07/2013, 02:18   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,350
Received Thanks: 6,497
#Approved
PortalDark is offline  
Old 11/07/2013, 02:50   #3
 
elite*gold: 460
Join Date: Jul 2012
Posts: 394
Received Thanks: 272
don't give me fish but learn me how to get it

i mean (Instead of creating the tutorial with totally bullshit no-exiplanation not well-guided, create something useful or at least EXPLAIN the calculation of this equiation to get the value done instead of going to smc and run it.)
Alexiuns is offline  
Old 11/07/2013, 04:09   #4
 
witchymoo's Avatar
 
elite*gold: 40
Join Date: Jul 2013
Posts: 167
Received Thanks: 201
Quote:
Originally Posted by Alexiuns View Post
don't give me fish but learn me how to get it

i mean (Instead of creating the tutorial with totally bullshit no-exiplanation not well-guided, create something useful or at least EXPLAIN the calculation of this equiation to get the value done instead of going to smc and run it.)
You know what, Mr Pro, I bet you never even tried to get that info yourself, and if even if you did, did you share? I don't think so Now someone had it done and you throw negativity at the effort, and yet, you saw the info, that's just pathetic. You shouldn't even looking at threads started by newbies like me, and rather than throwing bullsh*t all around, I think you better make some effort by doing it and finding whatever info you need and share with us.

I couldn't find anything about calculation around the net and I don't know anyone who really knows about the formula, neither do you, right? Instead waiting and throwing sh*t around I took simpler step and found some useful information to share, what did you found about it? care to share?

Quote:
Originally Posted by PortalDark View Post
#Approved
Thank you
witchymoo is offline  
Thanks
1 User
Old 11/07/2013, 06:23   #5
 
Justin1337*'s Avatar
 
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
Thanks dude =)
Justin1337* is offline  
Thanks
1 User
Old 11/07/2013, 14:02   #6
 
@$$'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 732
Received Thanks: 87
Nice keep shareing :-)
@$$ is offline  
Thanks
1 User
Old 11/07/2013, 21:26   #7
 
elite*gold: 460
Join Date: Jul 2012
Posts: 394
Received Thanks: 272
Quote:
Originally Posted by witchymoo View Post
You know what, Mr Pro, I bet you never even tried to get that info yourself, and if even if you did, did you share? I don't think so Now someone had it done and you throw negativity at the effort, and yet, you saw the info, that's just pathetic. You shouldn't even looking at threads started by newbies like me, and rather than throwing bullsh*t all around, I think you better make some effort by doing it and finding whatever info you need and share with us.

I couldn't find anything about calculation around the net and I don't know anyone who really knows about the formula, neither do you, right? Instead waiting and throwing sh*t around I took simpler step and found some useful information to share, what did you found about it? care to share?



Thank you
as you said you are newbie.. so you have to search about me first, then write this answer
you are useless; sharing smth not useful and any beginner can do it
so don't bother yourself and make this useless release
go better learn what is the meaning of "database" or "SQL"
Alexiuns is offline  
Thanks
1 User
Old 11/07/2013, 22:39   #8
 
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
I also prefer a method on how to calculate these parameters.Would be better than giving STR7/INT7 FB 100% stats,since not everyone is using D11 gear.
magicanoo is offline  
Old 06/03/2015, 13:29   #9
 
elite*gold: 0
Join Date: Jun 2015
Posts: 17
Received Thanks: 0
i want

Stat 80% please

Quote:
Originally Posted by @$$ View Post
Nice keep shareing :-)
HellMezo* is offline  
Old 10/03/2015, 14:02   #10
 
Hedgehock's Avatar
 
elite*gold: 0
Join Date: Oct 2015
Posts: 45
Received Thanks: 81
Nice ! Just wanted to remind I've wrote a little sample for decoding joymax way of storing that kind of data in php. In this case - variance.

[item_stats.class.php]
Code:
<?php

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

 
 public function __construct($item_type)
 {
  if($item_type > 3 || $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 GetParamCountForItem()
 {
  switch($this -> m_ItemType)
  {
   case 0:
   {
    return count(self::$s_WeaponStatNames);
   }
   break;
   case 1:
   {
    return count(self::$s_EquipmentStatNames);
   }
   break;
   case 2:
   {
    return count(self::$s_ShieldStatNames);
   }
   break;
   case 3:
   {
    return count(self::$s_AccessoryStatNames);
   }
   break;
  }
 }
 
 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;
 
 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;
 }
 
 public function PercentageFromBitvalue($bitvalue)
 {
  return round(($bitvalue * 100 / 31) - 0.5 , 0);
 }
 
 
 public function GetVarianceDump($variance, $item_type_id)
 {
  $result = null;
  $g_Item = new CItemInfo($item_type_id);
  
  $n = 0;
  $nParams = $g_Item -> GetParamCountForItem();
  while($n < $nParams)
  {
    $cur_stat = $variance & 0x1F;
    $g_Item -> AddParam($this -> PercentageFromBitvalue($cur_stat));
    $variance >>= 5;
    $n++;
   
  }

  //print_r($g_Item -> GetParams());
  return $g_Item -> GetParams();
 }
}
?>
Usage example:


[get_whitestats.php]

Code:
<html>
<head>
 <title>ohai squirl</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><input type='submit' value='Gib meh'></td>
 </form>
 </table>
 </center>
</body>

</html>

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

 $instance = CItemClass::Instance();
 
 //$a = (long) ($_POST['variance']);
 print_r(
  $instance -> GetVarianceDump((float)($_POST['variance']), $_POST['item_type'])
 );
}
?>
I remember it had some kind of bug, but that's not the point. What I wanna show is how to do bit operations.
Hedgehock is offline  
Thanks
1 User
Old 10/26/2022, 16:59   #11
 
elite*gold: 0
Join Date: Jun 2017
Posts: 1
Received Thanks: 0
Quote:
Originally Posted by Hedgehock View Post
Nice ! Just wanted to remind I've wrote a little sample for decoding joymax way of storing that kind of data in php. In this case - variance.

[item_stats.class.php]
Code:
<?php

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

 
 public function __construct($item_type)
 {
  if($item_type > 3 || $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 GetParamCountForItem()
 {
  switch($this -> m_ItemType)
  {
   case 0:
   {
    return count(self::$s_WeaponStatNames);
   }
   break;
   case 1:
   {
    return count(self::$s_EquipmentStatNames);
   }
   break;
   case 2:
   {
    return count(self::$s_ShieldStatNames);
   }
   break;
   case 3:
   {
    return count(self::$s_AccessoryStatNames);
   }
   break;
  }
 }
 
 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;
 
 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;
 }
 
 public function PercentageFromBitvalue($bitvalue)
 {
  return round(($bitvalue * 100 / 31) - 0.5 , 0);
 }
 
 
 public function GetVarianceDump($variance, $item_type_id)
 {
  $result = null;
  $g_Item = new CItemInfo($item_type_id);
  
  $n = 0;
  $nParams = $g_Item -> GetParamCountForItem();
  while($n < $nParams)
  {
    $cur_stat = $variance & 0x1F;
    $g_Item -> AddParam($this -> PercentageFromBitvalue($cur_stat));
    $variance >>= 5;
    $n++;
   
  }

  //print_r($g_Item -> GetParams());
  return $g_Item -> GetParams();
 }
}
?>
Usage example:


[get_whitestats.php]

Code:
<html>
<head>
 <title>ohai squirl</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><input type='submit' value='Gib meh'></td>
 </form>
 </table>
 </center>
</body>

</html>

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

 $instance = CItemClass::Instance();
 
 //$a = (long) ($_POST['variance']);
 print_r(
  $instance -> GetVarianceDump((float)($_POST['variance']), $_POST['item_type'])
 );
}
?>
I remember it had some kind of bug, but that's not the point. What I wanna show is how to do bit operations.
It's very helpful to me
hoangvispkt is offline  
Reply

Tags
100%, attributes, blue, fb, white


Similar Threads Similar Threads
[Guide] Common Problems Preventing Login
07/06/2023 - CO2 PServer Guides & Releases - 57 Replies
Introduction: Please take note that I'm using the newer client as a reference for debugging. Clients using older methods of displaying login information and error messages will act differently, so be prepared for that. Clients using "Cn_Res.ini" in their INI folder are most likely supported by this guide. This guide is rough and incomplete, but hopefully will help you get through the login process and into the game world. You can find packet structures on the Conquer Wiki or by searching...
[GUIDE] Troubleshooting Common Server Set Up Problems
03/15/2015 - Shaiya PServer Guides & Releases - 45 Replies
Here is a list of common problems users run into when setting up a private server. These are in order of server set up completeness (from starting services to logging into Shaiya and performing in-game actions). These are directly from my server set up tutorial. I decided to make them their own post as it was a bit much to load the guide up every time I wanted to look at this part. Also this should be easier for new users to find. All services show a red X This is most likely...
[GM]Red,yallow,white,black,blue.bla
09/01/2011 - S4 League Hacks, Bots, Cheats & Exploits - 40 Replies
-closed -Not Work Any More
Hey WTS my Acc lvl 92 Bower Full Blue + 5 Set Pm me and for more Information
12/22/2009 - Silkroad Online Trading - 0 Replies
WTS my Account Server Alexander lvl 92 Bower Full Blue + 5 Set with New Avatar Dress and Dead Pick pet NOT Email verfied I Sell for Silk PaySafeCard Add me On MSN Email : [email protected] Add me im Every ONline
[Guide] CoEmuV2 2 common problems FIX
06/11/2009 - CO2 PServer Guides & Releases - 2 Replies
Close change topic name



All times are GMT +1. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.