Jump to content

How to make keys sell-able or buy-able?


ZoeyGurl

Recommended Posts

I am trying to sell keys in my NPC's container that can be purchased for an apartment etc.

but they dont show up in game. How do I go about doing this? :confused:

 

I looked for a thread for this and didnt see anything and if this is the wrong place for this question

I apologize. Still learning.

Link to comment
Share on other sites

Keys cannot be bought or sold. You can get around this limitation by making a misc. item with a script that replaces it with the key item when added to the players inventory.

begin onAdd player
    player.addItem KeyItem 1
    removeMe
end

Then you can put the misc. item for sale instead.

Link to comment
Share on other sites

Keys cannot be bought or sold. You can get around this limitation by making a misc. item with a script that replaces it with the key item when added to the players inventory.

begin onAdd player
    player.addItem KeyItem 1
    removeMe
end

Then you can put the misc. item for sale instead.

Thank you so much! I will try this. :thumbsup: Answered..

Edited by ZoeyGurl
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...