mob
Shopkeeper2
verb
Buy()
set src in oview(3)
set category = "Shoppers Magazine"
switch(input("Hello! What do you wish to buy?") in list ("smallsword","Nothing"))
if("smallsword")
if(usr.gold <= 24)
usr << "<b>You need 25 GOLD!"
if(usr.gold >= 25)
usr << "<b>You get a small-sword!"
usr.contents += new obj/weapons1/NinjaSword
usr.gold -= 25
if("Nothing")
usr << "<b>Thank You Come Again!"<dm>
And heres the errors
loading Game.dme
Game.dm:745:error:obj:undefined var
Game.dm:745:error:weapons1:undefined var
Game.dm:745:error:NinjaSword:undefined var
Game.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)
Not sure what i did wrong can anyone help me or correct this?
It needs an slash in front of it.
usr.contents += new /obj/weapons1/NinjaSword
...See?