![]() |
|
[PHP] t_item display class, armor and weapon for website - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124) +----- Forum: Emulation Guides (https://lckb.dev/forum/forumdisplay.php?fid=188) +----- Thread: [PHP] t_item display class, armor and weapon for website (/showthread.php?tid=31) Pages:
1
2
|
- Sycohazza - 07-06-2011 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] - Sutz - 07-06-2011 WOW very nice indeed great share! Love the site very smart, puts me to shame but im no pro =D - Mega123 - 07-06-2011 Its a good site, very good (nice) - Wizatek - 07-06-2011 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 - pako71 - 07-06-2011 nice ![]() - Sutz - 07-06-2011 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 ![]() Ty for script Wizatek - Wizatek - 07-06-2011 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. - Sycohazza - 07-06-2011 Thank you wiz, saved me a lot of time! - Sycohazza - 07-07-2011 i have an issue ![]() echo "". "". ""; Displays the correct images but it makes the table list horizontal any ideas? - Sycohazza - 07-07-2011 ok so v2 released, tiny error but everything still works ![]() 2 its got the td and alignment code on the end of the image url |