bpm91
Intermediate OT User
- Joined
- May 23, 2019
- Messages
- 881
- Solutions
- 7
- Reaction score
- 122
- Location
- Brazil
- YouTube
- caruniawikibr
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"/>
<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