Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 22:28

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

Advertisement



PHP skilldata enc [Skill level edit]

Discussion on PHP skilldata enc [Skill level edit] within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 46
Received Thanks: 15
PHP skilldata enc [Skill level edit]

with my script you can edit the skills lvl.
you need to put the files in that folder where is the skildata_*enc.txt
and you need to change .txt coding and change the $lvl variable what now 100
Good Luck

PHP Code:
<?php

error_reporting
(0);
//file names -> after decode
// you need change coding to UTF-8
// after you runed this. you need chage the new files coding to Unicode
$files=array("Decoded_skilldata_5000enc.txt","Decoded_skilldata_10000enc.txt","Decoded_skilldata_15000enc.txt","Decoded_skilldata_20000enc.txt","Decoded_skilldata_25000enc.txt","Decoded_skilldata_30000enc.txt","Decoded_skilldata_35000enc.txt","Decoded_skilldata_40000enc.txt","Decoded_skilldata_45000enc.txt");
//the lvl what you need
$lvl=100

$t=0;

Print(
"\nChanging Skill level to ".$lvl."\n\n\n");

foreach(
$files as $filename){                       // while there are filenames in $files array
print("\nLoading\n");

    
$fp=fopen($filename,"r+");                    // open the $files[x]
print($filename." try to read.");
    
$weapon= array();                             // declare and inicialize $weapon array
    
$i=0;
    
$fid=false;
    while(
$sor=fgets($fp,10240)){                   // while there are more lines in the file 
    
chop($sor);                                    // delelete enters on the end of the line (delete \n)
    
$weapon[$i]=explode("\t",$sor);             // split the line by the tabulators (\t)
    
$i=$i+1;
    
$fid=true;
    }
    if(
$fid){                                    // if fid = true -> there are file what name in $files array
        
$fs fopen("new_".$filename"w+");         // generate and open new_$files[x] file
        
print("\n".$filename." has opened.\n");
        print(
"new_".$filename." has created");        
        }else{
            print(
"\n".$filename." could not opened.");            
            }
   
while(
$i>0){
    
$i--;
    
$exploded=explode("_",$weapon[$i][3]);                    // split the skill name by _
    
if($exploded[0]=="SKILL" && $weapon[$i][36]>$lvl){        // weapont[$i][36] the level of the skill
    
$weapon[$i][0]=0;                                        // rewrite the skill "Service"  0=off and 1=on
    
}
    else{
        
$weapon[$i][0]=1;                                    // rewrite the skill "Service"  0=off and 1=on
        
}
}

$ks=false;

foreach(
$weapon as $wep){                                    //while there are record in the $weapon array rename the line to $wep
    
$c 1;                                                    //
    
foreach($wep as $dep){                                    //while there are record in the $wep array rename the line to $wep
        
        
if($c == count($wep)){                                // if $c == count($wep) we in the last clumn
        
fwrite($fs,$dep);                                    // write to new_$files[x] the weapon[]
        
}else{
            
fwrite($fs,$dep."\t");    
            
$ks=true;
            }
        ++
$c;      
        }
    }
   if(
$ks==true){
        print(
"\nnew_$filename successed\n\n");
        
$t++;
    }
else{
    print(
"\n".$filename." not valid\n\n");
    }
}
print(
"\n".$t." File successed");
?>

Attached Files
File Type: rar Vsro enc-denc.rar (8.6 KB, 757 views)
ocsi94 is offline  
Thanks
3 Users
Old 08/21/2013, 08:13   #2
 
elite*gold: 0
Join Date: Jun 2009
Posts: 193
Received Thanks: 56
Working Well Thanks
gunz5 is offline  
Old 09/10/2013, 10:49   #3
 
AhmedAli0's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 39
Received Thanks: 2
will this change the level of the skills? or just delete the skills above the level?
cause if it is changing it's level
the server will not be balanced
and one more stupid question
where is the skilldata files?
AhmedAli0 is offline  
Old 09/13/2013, 00:47   #4
 
@$$'s Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 734
Received Thanks: 88
Thanks working fine ;-)
keep Sharing
@$$ is offline  
Old 11/12/2013, 18:38   #5
 
elite*gold: 0
Join Date: Nov 2013
Posts: 168
Received Thanks: 117
thanks that helps alot!
Skullsoil is offline  
Old 07/20/2015, 22:16   #6
 
elite*gold: 0
Join Date: Apr 2015
Posts: 4
Received Thanks: 0
hello friend can tell me in detail how it works that code ..
skip999 is offline  
Reply


Similar Threads Similar Threads
How i edit max skill level for cap
09/11/2018 - SRO Private Server - 4 Replies
i m using 110 cap media i wanna make max skill lvl 90, edited max lvl 90 exp 9999999.. on media, but 90 s skill show "up" button and if u click it u got dc, Can anyone help me how i do 90 s skill maxed ?
[imperial-sro] (Max Level 110)(Skill Level 120)-FellowsPets-Custom Uniqes!\Skill R
09/05/2012 - SRO PServer Advertising - 191 Replies
http://store2.up-00.com/June12/2Hu47880.png - Exp Rate : 100x - SP Rate : 100x - Drop Rate : 50x - Gold Drop Rate: 150x - Level Cap : 110 - Skill Cap: 120 - Mastery : 330 - Race : Eu & Ch - Alchemy : 2x
[Question] How to edit skill's level
05/09/2009 - CO2 Private Server - 7 Replies
Where i can edit skills level with navicat? I use TQ Binarys... Note: i don't know if have command's to this in TQBinarys :/
[Tutorial] Edit level, skill and race for items
05/14/2008 - RFO Hacks, Bots, Cheats, Exploits & Guides - 142 Replies
@hiyoal, please close and delete this thread. also please close and delete any copies and remakes. this was a bit to much for sharing with public



All times are GMT +1. The time now is 22:29.


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.