obj
items
verb
Get()
set src in oview(1,usr)
set category=null
usr<<"<b><font size = 0.5><font color = green>You pick up [src.name].</b>"
src.loc = usr
if(src.name == "Fishing Rod")
usr.hasfishingrod = 1
if (src.name == "Fishing Rod" && usr.hasfishingrod == 1)
usr<<"You already have one rod, you don't need a"
usr<<"<b><font size = 0.5><font color = green>You drop [src.name].</b>"
src.loc = usr.loc
Drop()
set src in usr.contents
set category=null
usr<<"<b><font size = 0.5><font color = green>You drop [src.name].</b>"
src.loc = usr.loc
if(src.name == "Fishing Rod")
usr.hasfishingrod = 0
staticitems
fishingrod
name = "Fishing Rod"
icon = 'Fishing Rod.dmi'
Problem description:Yeah... so every time I try to pick up the fishing rod, it brings me to this (Even if I don't have one in my inventory:
You pick up Fishing Rod.
You already have one rod, you don't need a
You drop Fishing Rod.
Now, probably the easiest way to write a get verb would be as such: