cocacola13
Member
good morning I have a question, Can you make a script that after killing a monster allows you to go through the door. and if you don't kill him you can't go.
TFS 1.3
OtserverBR
TFS 1.3
OtserverBR
local storage = 108476
local monstername = "demon"
function onKill(player, target)
if target:isPlayer() or target:getMaster() or target:getName():lower() ~= monstername:lower() then
return true
end
player:setStorageValue(storage, 1)
return true
end
<event type="kill" name="MonsterDoor" script="MonsterDoor.lua"/>
player:registerEvent("MonsterDoor")