« Previous -
Version 2/5
(diff) -
Next » -
Current version
vl, 07/16/2009 03:32 pm
ItemIcon¶
Base URL¶
URL Parameters¶
sheetid
¶
It's the id of an item that you can find in the Character xml file. For example, iczahp_3.sitem
is a valid sheetid
(example:"http://atys.ryzom.com/api/item_icon.php?sheetid=iczahp_3.sitem").
c
(optional)¶
The color of the item. It's a value between 0 and 7 (example).
q
(optional)¶
The quality of the item (example).
s
(optional)¶
Default is 1.
The size of the stack (example).
sap
(optional)¶
Default is -1.
The number of sap of the item.
-1 | No sap icon, no number | |
0 | sap icon, no number | |
1 | sap icon number 0 | |
2 | sap icon number 1 | |
3 | sap icon number 2 |
destroyed
(optional)¶
Default is 0
.
0
: nothing special (example).1
: display the item as if it was destroyed (with a red cross) (example).
Cache Duration¶
It's cached for ever. Since the icon is unique and never change. For a specific icon, it'll always return the same image.
PHP Interface¶
ryzom_item_icon_image($sheetid, $c=-1, $q=-1, $s=-1, $sap=-1, $destroyed=false)
¶
Returns a string that contains the html code to display a item icon.
ryzom_item_icon_url($sheetid, $c=-1, $q=-1, $s=-1, $sap=-1, $destroyed=false)
¶
Returns a string that contains the url to display a item icon.
ryzom_item_icon_image_from_simplexml($item, $add_text='')
¶
$item
is a simplexml object that contains the item.add_text
is an additional text you want to add in tooltip.
Returns a string that contains the html code to display a item icon depending of the content of $item
.
ryzom_item_icon($sheetid, $c, $q, $s, $sap, $destroyed)
¶
Returns the image data of the item icon. You should never use it except if you want to use the image to combine with another image for example.
Real Examples¶
If you have a website that use this Ryzom API, tell it in the forum and we'll add it.