- Joined
- Nov 17, 2010
- Messages
- 6,798
- Solutions
- 581
- Reaction score
- 5,361
Code:
The Forgotten Server, version 0.3.7_SVN (Crying Damson)
I originally had the item decay from items.xml, but when given from an npc or quest it did not decay.
So I've tried transforming the item given into a uniqueid, with a decay time, however the npc does not give the item at all!
Currently does nothing when you say 'blah' except give the player the message.
No error's in console when loading/reloading npc's.
No error when player says 'blah'.
Any idea's?
Thanks for any help, and as always,
I love you guys and gals.
Code:
if msgcontains(msg, "blah") then
selfSay("Here is an item. It will expire in 1 hour.", cid)
local time = 60
function decay()
local thing = doPlayerAddItem(cid, 6537, 1)
doTransformItem(thing.uid, 1000)
addEvent(decay,time*1000)
end
end
Last edited: