runtime error: type mismatch
proc name: Buy (/obj/guilddoor2/verb/Buy)
source file: myturfs.dm,616
usr: Dante_Zero (/mob/characters/HalfSaiyanSL)
src: the guilddoor2 (/obj/guilddoor2)
call stack:
the guilddoor2 (/obj/guilddoor2): Buy()
guilddoor2
icon = 'neoturfs.dmi'
icon_state = "door"
density = 1
layer = MOB_LAYER + 2
var/password
var/opened=0
var/bought = 0
verb
Buy()
set src in oview(1)
set category="Door"
if(src.bought == 0||src.bought == null)
switch(alert("Would you like to Purchase this Guild?", "Purchase", "Yes","No"))
if("Yes")
if(usr.Zenni < 1000)//$$$$$$ Line 616
usr<<"This costs 1000 zenni!"
if(usr.Zenni >= 1000)
usr.Zenni -= 1000
usr<<"Okay! You may enter!"
src.name = "[usr]'s Guild"
src.bought = 1
Open()
set src in oview(1)
set category="Door"
set name="Open"
if(src.password == null && src.bought == 1)
var/password1 = input("What do you wish to make the password?") as text
src.password = password1
else
if(src.opened == 0 && src.bought == 1||src.opened == null && src.bought == 1)
var/choice = input("What is the password?") as text
if(choice == src.password)
usr.loc=locate(43,3,10)
else
usr<<"Incorrect Password!"
else
usr<<"This Guild is for sale!"