All pastes #934294 Raw Edit

Zoopz - Item Application

public php v1 · immutable
·published 2008-03-08 19:17 UTC
rendered paste body
		$items = getUserItems($user, true);		if (count($items) > 0) {			foreach ($items as $item_info) {				$item = getItem($item_info['itemid']);								if ($item['type'] == 'appearance') {					if ($item['renderimage'] != '') {						$im_item = imagecreatefrompng('img/items/' . $item['renderimage'] . '.png');						imageAlphaBlending($im_item, true);						imageSaveAlpha($im_item, true);												imagecopy($im, $im_item, 0, 0, 0, 0, 150, 150);					}				}			}		}