Jump to content

Photo

PLEASE HELP SELLING keys

keys key sell selling

  • Please log in to reply
3 replies to this topic

#1
DEATHWALKER95

DEATHWALKER95

    Regular

  • Members
  • PipPip
  • 80 posts

I have a made a mod where i have added a ton of new player houses that can be obtained by buying them the only problem is is you cant sell keys. I need help learning a way to sell keys. If someone has a working script that makes it so i can sell an item that will after in my inventory give me that key that would be awsome. PLEASE HELP



#2
Gribbleshnibit8

Gribbleshnibit8

    Mouse Modder Extraordinaire

  • Premium Member
  • 2,881 posts

Make a misc object with whatever name, value, and other data you want for it. Then make a script like

BEGIN GameMode
    set rCont to GetContainer
    if (rCont == Player)
        Player.additem AwesomeHouseKey 1
        RemoveMe
    endif
END


#3
DEATHWALKER95

DEATHWALKER95

    Regular

  • Members
  • PipPip
  • 80 posts

Make a misc object with whatever name, value, and other data you want for it. Then make a script like

BEGIN GameMode
    set rCont to GetContainer
    if (rCont == Player)
        Player.additem AwesomeHouseKey 1
        RemoveMe
    endif
END

I tried using this script and when i go to save it as a script it does that thing where it wont save and when u go to x out of it it will be like do you want to save? and if you click yes it will keep it open and not save



#4
DEATHWALKER95

DEATHWALKER95

    Regular

  • Members
  • PipPip
  • 80 posts

Never mind everyone i just self taught myself how to sell a key through dialogue. But thanks for the help i found out what i did wrong this is what my scripts did look like and was why it wasnt giving me a key

"player.AddKey KEYNAME 1"

it should have been

"player.AddItem KEYNAME 1"







Also tagged with one or more of these keywords: keys, key, sell, selling

Page loaded in: 1.114 seconds