afisakov
You can change this now in User CP.
- Reaction score
- 37
What I am looking for is some sort of native or short function to take an item rawcode and convert it into a chat string.
GetItemName doesn't work very well since it relies an item, not itemtype, and I cannot use GetLastcreateditem since it doesn't seem compatible with "call UnitAddItemById(u,resultid)"
the best I can come up with is below, but it doesn't seem a very elegant solution
P.S. resultid is a local integer that holds item rawcode, passed on from another trigger
yes the item does get added properly
Thanks in advance for your help
GetItemName doesn't work very well since it relies an item, not itemtype, and I cannot use GetLastcreateditem since it doesn't seem compatible with "call UnitAddItemById(u,resultid)"
the best I can come up with is below, but it doesn't seem a very elegant solution
Code:
GetItemName(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),resultid))
P.S. resultid is a local integer that holds item rawcode, passed on from another trigger
yes the item does get added properly
Thanks in advance for your help