[PHP] t_item display class, armor and weapon for website
#1

DEMO: 2

 

VERSION 2.1 ADDED

Fixed Image Links

 

VERSION 2 ADDED

Added icons

Added Nighshadow

Changed table width to 600

Rearranged the order of the titles

changed the language from England English to American English

 

(OLD) VERSION 1

This is like Maxs but more categorized into class / weapon / armor

Easily integrated into a website

 

Guide to intergrating into your website

edit config.php to desired ip, DB user, DB pass & database name

Take everything from display.php file and place it where you want on your website

copy all files apart from display.php (you dont want to overwrite your current index.php)into the same directory as the page that it will be displaying on

Note: if you you want this on a page not called index.php. in deisplay.php do a find and replace on index.php and replace all to your file name

 

 

Download

file to large for attatchment.

 

Version 2.1

2

 

Version 2.1 Patch [ if you already had v2 and need to patch over it ]

2

 

 

[special Thanks to Wizatek for the auto icon list]

#2

WOW very nice indeed great share!

 

Love the site very smart, puts me to shame but im no pro =D

#3
Its a good site, very good (nice)

#4

Very nice!

 

I seen u write there that u wanted to display the icons of a item also.

 

if u use this as GD image then u will.

All u have to do is convert the ItemBtn*.tex files to jpg/gif/png

 

 

// Create image instances
$src = imagecreatefromgif(ItemBtn.$_GET[i]..gif);
$dest = imagecreatetruecolor(32, 32);

$row_start = $_GET[r] * 32;
$row_end = $row_start + 32;

$col_start = $_GET[c] * 32;
$col_end = $col_start + 32;

// Copy
imagecopy($dest, $src, 0, 0, $col_start, $row_start, $col_end, $row_end);

// Output and free from memory
header(Content-Type: image/gif);
imagegif($dest);

imagedestroy($dest);
imagedestroy($src);
?>

 

Then u can just get the icon with

 

 

This will display icon id 0 (ItemBtn0)

Row 0 , Column 0 (gold coin icon)

 

The values are in the t_item database

#5
nice Smile

#6

Would be nice if someone could release the .tex to .gif

Found the .tex files just duno how to convert them, at a guess I need a brain an make a nice tool like Wizateks but I dont have a brain so if someone does pls share or PM Smile

 

Ty for script Wizatek

#7

There u go : 2

That great program can convert the .tex files to tga and png. and back to tex

 

Just click back when u get send to the facebook page.

#8
Thank you wiz, saved me a lot of time!

#9

i have an issue Smile

 



echo "". "". "";

 

 

Displays the correct images but it makes the table list horizontal

 

any ideas?

#10

ok so v2 released, tiny error but everything still works Smile

 

2

 

its got the td and alignment code on the end of the image url



Forum Jump:


Users browsing this thread: 1 Guest(s)