Register for your free account! | Forgot your password?

You last visited: Today at 13:00

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

Advertisement



itemadition.ini easy creation

Discussion on itemadition.ini easy creation within the EO PServer Guides & Releases forum part of the EO PServer Hosting category.

Reply
 
Old   #1

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
itemadition.ini easy creation

Dear users
This php script contains a easy way to populate your itemadition.ini file

What does it do ?

There are so many clients and so many databases that they are all differend

some databases contains a other value then other databases

The intemadition.ini provide the + bonus ( like +255) for the client side
it shows you the avaible + bonus
but as long it is not in database it will not provide any kind of bonus

so this script is just to take the value from database so you can easy create new bonusses or make sure that all items in the database also exist on the client

How does it work
Realy easy
just create a php file , edit some settings in the script and run the script
it will make a txt file that contains all item bonus from the database

on this way you just need to add the + bonus you want to the database and you can generate a simple txt file
PHP Code:
<?php
// Define mySQL variables
$hostname="localhost";  //The ip adress ( localhost )
$username="root"// Database User ( root )
$password="test"// Database user Password ( test )
$database="my"// Game Database ( my )
$bonus 24 // The bonus you like to add ( (takes double value of +12 bonus)

//DO NOT EDIT BELOW XD
// Connect to mySQL
MYSQL_CONNECT($hostname$username$password);
MYSQL_SELECT_DB('$database');

$file "eudemons.txt";
$f fopen($file'w'); // Open in write mode
$count=0;
$sql mysql_query("SELECT * FROM cq_itemaddition WHERE level = 12 ORDER BY typeid,level ASC");
while(
$row mysql_fetch_array($sql))
{
      
$string "\n";
      
$row[2] = $bonus;
      
$row[3] = $row[3] + $row[3];
      
$row[4] = $row[4] + $row[4];
      
$row[5] = $row[5] + $row[5];
      
$row[6] = $row[6] + $row[6];
      
$row[7] = $row[7] + $row[7];
      
$row[8] = $row[8] + $row[8];
      
$row[9] = $row[9] + $row[9];
      
$row[10] = $row[10] + $row[10];
      
$row[11] = $row[11] + $row[11];
     
$string .= "$row[1] $row[2] $row[3] $row[4] $row[5] $row[6] $row[7] $row[8] $row[9] $row[10] $row[11]";
     
fwrite($f$string);
    
mysql_query("insert into cq_itemaddition (id, typeid,level, life, attack_max, attack_min, defense, mgcatk_max, mgcatk_min, magic_def, dexterity, dodge) values (' ','".$row[1]."','".$row[2]."','".$row[3]."','".$row[4]."','".$row[5]."','".$row[6]."','".$row[7]."','".$row[8]."','".$row[9]."','".$row[10]."','".$row[11]."')") or die(mysql_error());

$count++;
}
fclose($f);


echo 
"<a href=eudemons.txt>TEST! and $count</a>";
?>
here is a example output of the file (eudemons.txt)
Code:
490100 24 0 664 600 0 362 328 0 0 0
490110 24 0 730 660 0 398 360 0 0 0
490120 24 0 780 704 0 428 386 0 0 0
490130 24 0 858 776 0 472 424 0 0 0
490140 24 0 924 836 0 506 456 0 0 0
490150 24 0 974 880 0 534 482 0 0 0
490160 24 0 1078 974 0 590 532 0 0 0
enjoy
Greets From Powerchaos
PowerChaos is offline  
Thanks
3 Users
Old 05/26/2014, 22:00   #2

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
fixed a small error
just remove $row[12] and it will be fine

Greets From PowerChaos

updated script

now you can add easy a bonus

in my example i took the +24 , it auto take the double value of +12 and change it to +24
it also automatic make the stats double ( based on +12 stats) and add it to the db

so you got all items with a extra + (if exist in db )

Greets From PowerChaos
PowerChaos is offline  
Thanks
1 User
Old 05/27/2014, 04:19   #3
 
Khalidmadkour's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 184
Received Thanks: 107
Wow thanks PowerChaos
I don't know what is it or even how is it work , but I though you should get a comment and thank for make it
Khalidmadkour is offline  
Old 05/28/2014, 05:04   #4

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
ok let me explain it easy xD

it is for the bonus that you get on your equipment

like sword(+1)
The bonus with yellow stones

basic does the game contain all items to make it +12
but some users like to offer +255 equipment or any other value

beside the extra potention does it not provide any bonus ( it let you lose the bonus )

so unless it is added to the db , is +12 even better then +255 ( exept for the potention part)


The script just take out all weapons present in database , change the value to the value you choose ( +255 for example)
Put it in database ( 2X value of +12 bonus )
Print out a txt file that contains the needed information that need to be added to the client ( or they wont see it )


so in short

The db part add extra damage to your +bonus
the client part is just visual based , it is like shopping mall

if you do not add the id's that are in the mall to the db , then you can not buy it
same apply to everything basicly
Client side is just to show the value to the players but does not apply the value in game xD

hope this could help you

Greets From PowerChaos
PowerChaos is offline  
Thanks
1 User
Old 06/05/2014, 08:31   #5
 
Khalidmadkour's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 184
Received Thanks: 107
yea i got it Nice ;D
Khalidmadkour is offline  
Old 06/28/2014, 12:23   #6
 
elite*gold: 0
Join Date: Jul 2013
Posts: 24
Received Thanks: 4
whyyyyyyyyy

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\wamp\www\item.php on line 18
TEST! and 0
[GM]Fallen[PM] is offline  
Old 06/28/2014, 16:45   #7
 
elite*gold: 0
Join Date: Dec 2013
Posts: 49
Received Thanks: 4
by using this script , we can do many thing . tq bro
DarkNightEO is offline  
Thanks
1 User
Old 06/28/2014, 17:56   #8
 
elite*gold: 0
Join Date: Jul 2013
Posts: 24
Received Thanks: 4
Quote:
Originally Posted by DarkNightEO View Post
by using this script , we can do many thing . tq bro
can you give me that script.. i don't know why this script error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\wamp\www\item.php on line 18
TEST! and 0
[GM]Fallen[PM] is offline  
Old 06/30/2014, 00:53   #9

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
Quote:
Originally Posted by [GM]Fallen[PM] View Post
can you give me that script.. i don't know why this script error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\wamp\www\item.php on line 18
TEST! and 0
that error just means that you do not have any items in that certain database/table

Code:
SELECT * FROM cq_itemaddition WHERE level = 12
so in short
select all rows
from
cq_itemaddition
Where
level is equal to 12

select all rows is the wildcard ( * )
from cq_itemaddition that is the bonus table ( matching the ini file name )
level means the bonus ( +12 in this case)

so if it does return a warning ( mysql_fetch) so it does not find a single value of items that are +12 in this case (is it not empty ? )

change level to 11 for example to see if it does work then ( in case you changed +12 to +255 or so :P )

Greets From PowerChaos
PowerChaos is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Dragonica Private Server Creation , Création de serveur privée dragonica
05/02/2014 - Dragonica - 7 Replies
En : Hi guys today I want any of you give me a website link or page on epvp for me to create a private server Dragonica Thank you and ENJOY Dragonica Fr : Salut les gars aujourd'hui je voudrais quelqu'un d'entre vous me donne un lien site ou page sur epvp pour que je me crée un serveur privée dragonica
Pumio Mini D3D v2 easy hack (chams,no recoil and more easy hax) only for pro cqc
07/02/2011 - WarRock Hacks, Bots, Cheats & Exploits - 2 Replies
Download: Multiupload.com - upload your files to multiple file hosting sites! VirusTotal: https://www.virustotal.com/file-scan/report.html?i d=67df2e20df80a2dc9f794783d9be488c9d7511c89dc81258 16b6dcd5b6dd85ef-1309520821 Screen: ImageShack&#174; - Online Photo and Video Hosting
Pumio PMini D3D v2 easy hack (chams,no recoil and more easy hax) only for pro cqc
07/01/2011 - WarRock Hacks, Bots, Cheats & Exploits - 3 Replies
DL: Multiupload.com - upload your files to multiple file hosting sites! VT: https://www.virustotal.com/file-scan/report.html?i d=67df2e20df80a2dc9f794783d9be488c9d7511c89dc81258 16b6dcd5b6dd85ef-1309520821 Screen: ImageShack&#174; - Online Photo and Video Hosting



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


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.