HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Preventing a unit from selling an item

04-01-2010, 10:48 PM#1
Av3n
I've no clue on how to venture into this trigger wise. Anyone got any ideas on how it would work?

-Av3n
04-02-2010, 04:31 AM#2
Neco
Collapse JASS:
native SetItemPawnable takes item i, boolean flag returns nothing

Could you use this?
04-03-2010, 03:51 PM#3
Ignitedstar
That's funny... I thought there was a field in the Object Editor for this? Something like 'Item - Is Sellable/Pawnable". Or I think it was "Can be Sold to Merchants" and "Can be Sold by Merchants".
04-03-2010, 08:57 PM#4
Av3n
It's cause I'm handling most of the items via triggers since I do need them a t some point sellable.

Thanks for the tip, I always scrolled past that function XD.

-Av3n