TFS 1.X+ new mail msg tfs 1.5 7.72

bpm91

Premium User
Premium User
Joined
May 23, 2019
Messages
342
Solutions
5
Reaction score
26
hello, I'm trying to edit a script where when the person receives a parcel, the other person who receives it will be notified that they received it in a green message, but I'm not able to make it work in creaturescripts


<event type="receivemail" name="Mail" script="mail.lua"/>


Lua:
function onReceiveMail(cid, sender, item, openBox)
    
if(openBox) then
        
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.")
    
end

    
return true

end



1652488114760.png
 

Peonso

Godly Member
Joined
Jan 14, 2008
Messages
1,692
Solutions
30
Reaction score
1,397
hello, I'm trying to edit a script where when the person receives a parcel, the other person who receives it will be notified that they received it in a green message, but I'm not able to make it work in creaturescripts


<event type="receivemail" name="Mail" script="mail.lua"/>


Lua:
function onReceiveMail(cid, sender, item, openBox)
   
if(openBox) then
       
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "New mail has arrived.")
   
end

   
return true

end



View attachment 67797

not a valid event type
 
Top