kimokimo
Kimo
can anyone make this when player kill monster then remove wall for 10min and then back again
+rep
function onDeath(cid, corpse, killer)
local M ={
["rat"] = {Pos = {x=177,y=40,z=7},id= 1058 ,time = 600},
}
local x = M[getCreatureName(cid)]
function criar()
local parede = getTileItemById(x.Pos, x.id)
doCreateItem(x.id, 1, x.Pos)
end
if x then
local parede = getTileItemById(x.Pos, x.id)
if parede then
doRemoveItem(parede.uid, 1)
doCreatureSay(cid, "The wall will appears in "..x.time.." seconds.", TALKTYPE_ORANGE_1)
addEvent(criar, x.time*1000)
end
end
return TRUE
end
<event type="death" name="KillMonster" event="script" value="KillMonster.lua"/>
registerCreatureEvent(cid,'KillMonster')
<script>
<event name="KillMonster"/>
</script>
local M ={
["rat"] = {Pos = {x=177,y=40,z=7},id= 1058 ,time = 600},
}