waqmaz
Member
- Joined
- Jun 17, 2015
- Messages
- 203
- Reaction score
- 11
TFS 0.3.6
I am searchin this forums since two hours and haven't found anything.
There is an event.
I remove a wall in onKill event and then a text appears: "Wall removed".
I do not know how to detect if an event has been done to say "Wall created". I 've tried to use many script like:
Code:
function onKill(cid, target)
local pos = {x = 1050, y = 1050, z = 7}
local time_ = 3000
local item_uid = 1036
local value = 1
local monster = 'Cave Rat'
local wall = getTileItemById(poz, item_uid).uid
if getCreatureName(target) == monster then
if wall > 0 then
doRemoveItem(wall)
doCreatureSay(cid, "wall removed", TALKTYPE_ORANGE_1)
end
event = addEvent(doCreateItem, time_, item_uid, value, pos)
end
return true
end
There is an event.
Code:
event = addEvent(doCreateItem, time, item_id, value, pos)
I remove a wall in onKill event and then a text appears: "Wall removed".
I do not know how to detect if an event has been done to say "Wall created". I 've tried to use many script like:
Code:
if event == 0/nil/false, I've tried storage to, anything works :(
Last edited: