Unfortunately, I can't get the quest giver to put the mail she's supposed to give me in the Inbox tab. It'll go to my Inventory just fine, but I don't want it sent there. How do I have items and mail sent to the Inbox tab?
Code:
mob
npc
Rowena
icon = 'player.dmi'
icon_state = "female"
Click()
alert("Hey, I'm Rowena. I have a gift for you")
rowenaletter = 1
new/obj/mail/Rowenas_Letter(usr.inbox)
These are my Statpanels
mob
Stat()
statpanel(name)
stat(src)
statpanel("Inventory",usr.contents)
statpanel("Party",usr.groups)
statpanel("Inbox",usr.inbox)
And this is the code for the letter
obj
Rowenas_Letter
icon = 'obj.dmi'
icon_state = "mail"
verb
Get()
set src in oview(1)
new/obj/mail/Rowenas_Letter("Inbox")
del src
Open()
set src in oview(1)
icon_state = "mailopen"
src.open = 1
Read_Mail()
set src in oview(1)
if(src.open == 1)
alert("Hey what's up, [usr]. This is your first message. Welcome to Bebop Universe. For more information on how things work, open the HELP tab. See you around. -Raivu")
src.icon_state = "mailread"
else
usr << "You need to open the mail first"
mailopen
icon = 'obj.dmi'
icon_state = "mailopen"
mailread
icon = 'obj.dmi'
icon_state = "mailread"
Also, you could condense the Open() and Read_Mail() into a Click(), as I don't see any where where the letter is droped.