What's wrong with this code? When you buy this item it goes to your inventory, but the Buy verb stays and doesn't go away...
obj/house2key
icon = 'turfs.dmi'
icon_state = "key"
name = "Key Card"
verb
Buy()
set src in view(1)
set category = "Commands"
var/choice = input("Would you like to buy this building for 5000 Credits???") in list("Yes", "No")
if(choice=="Yes")
if(usr.credits >= 5000)
usr << "You bought the building!!!"
usr.credits -= 5000
usr.contents += src
else
alert ("You don't have enough money")
if(choice=="No")
usr << "Ok"
ID:177538
Aug 28 2002, 2:51 pm (Edited on Aug 28 2002, 3:22 pm)
|
|
Aug 28 2002, 5:03 pm
|
|
oview, not view.
|
In response to Garthor
|
|
Thanks. Such a small problem that I missed.
|