• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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:
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())
 
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.
 
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.
Back
Top