SphereCommunity
attr - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: attr (/Thread-attr)



attr - Art - 02-17-2013 05:15 AM

Hello. How i can 'block' item by attr for sell ?


RE: attr - RanXerox - 02-17-2013 09:56 AM

Add a tag to items you dont want to be bought or sold... TAG.NoVendor=1

Then make sure all players have the following trigger:

Code:
ON=@ItemBuy
   IF (<ACT.TAG0.NoVendor>)
      SRC.SYSMESSAGELOC color_text,1004038//"You may not trade this item."
      RETURN 1
   ENDIF

I personally don't think it is necessary to have the @ItemSell trigger as well... but that's up to you.


RE: attr - Art - 02-19-2013 08:39 AM

Thanks, but for my purpose i used 'newbie' attr (that item is anyway in newbie container). It blocks item for displaying in sell menu Smile