Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
attr
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
attr
Hello. How i can 'block' item by attr for sell ?
02-17-2013 05:15 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: attr
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.
02-17-2013 09:56 AM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: attr
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
(This post was last modified: 02-19-2013 08:40 AM by Art.)
02-19-2013 08:39 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)