Get Item Type from ID of Item Type

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
i have ID of some item type,for example

18465038709285

now that integer needs to return Item Type

how to do it :confused:

i mean on issued order ID when shop is ordered to sell item

SOLVED:

-to know what type of item is shop ordered to sell ...
Custom Script: set udg_ITEM_TYPE = (GetIssuedOrderId())
 
Last edited:
Level 14
Joined
Mar 4, 2009
Messages
1,156
I have absolutly no clue what you are asking...
Item types are 32 bit integers just like the one you have there (although shorter).
An item type is like 'I000' which is a 32 bit integer. The native returns the integer of the item type. Use it in all item type fields in the way you want.
i mean on issued order ID when shops is ordered to sell an item


I don't really get what the problem is and why would you want a Jass-based number, when you can find it as "Item-type of (Sold item)".

because when shop is ordered to sell than you have no item sold but there is OrderById and from that order i need to get Item Type

that order has 14 digits


with this script you will see wich order did the shop get
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( "Order Id: " + I2S(GetIssuedOrderId()) ) )

from this i need to get item-type
(GetIssuedOrderId())
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
You sure that the orderID is not the item type? As both are 32 bit integers.
It should be atmost 2147483648 or less which is 10 digets.

I know that with build orders the build order is the building type and the same with unit training orders so you probably have the item type already as that orderID. Just try using it in your script as if it was the item type and see if it works.
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
You sure that the orderID is not the item type? As both are 32 bit integers.
It should be atmost 2147483648 or less which is 10 digets.

I know that with build orders the build order is the building type and the same with unit training orders so you probably have the item type already as that orderID. Just try using it in your script as if it was the item type and see if it works.
lol,first what i tough was ,yeah it might work ..il try it for 3 days or something ......
damn...its works! :xxd::gg::thumbs_up:

thanks! ,never tough i should try that

SOLVED:
set udg_ITEM_TYPE = (GetIssuedOrderId())


can´t give you +rep again :p,will do soon
 
Status
Not open for further replies.
Top