waitTime = 60 -- czas do otwarcia drzwi
Skrypcik jest fajan tylko mam 1 pytanko czy po wpisaniu czasu :
To sa minuty czy sekundy :>?
Kryptolog i Cyberbezpiecznik
~yeb sim all~
_____________
Lua Script Error: [MoveEvents Interface]
data/movements/scripts/trap_room.lua:onStepIn
luaGetPlayerStorageValue(). Player not found
-- Trap Room via Movements by Duda1992 --
function doorDecay(p)
-- do not touch --
pos = {x=p.pos.x, y=p.pos.y, z=p.pos.z, stackpos = 1}
item = getThingfromPos(pos)
doTransformItem(item.uid, p.itemid)
end
-- do not touch -- end --
function onStepIn(cid, item, pos)
-- options --
strogeValue = 8000
text = 'Wtf o.O !?'
waitTime = 60
dir = North
-- end options --
-- do not touch --
isDone = getPlayerStorageValue(cid,strogeValue)
-- do not touch -- end --
-- script --
if isPlayer(cid) == 1 then
if isDone == -1 then
doMoveCreature(cid, dir)
doTransformItem(item.uid, item.itemid-1)
setPlayerStorageValue(cid, strogeValue, 1)
doPlayerSay(cid,text,1)
p = {pos = pos, itemid = item.itemid}
addEvent(doorDecay, waitTime*1000, p)
end
end
end
-- end script --
function doorDecay(p)
pos = {x=p.pos.x, y=p.pos.y, z=p.pos.z, stackpos = 1}
item = getThingfromPos(pos)
dir = North
local NORTH = 0
local EAST = 1
local SOUTH = 2
local WEST = 3
local SOUTHWEST = 4
local SOUTHEAST = 5
local NORTHWEST = 6
local NORTHEAST = 7
-- Trap Room via Movements by Duda1992 --
function doorDecay(p)
-- do not touch --
pos = {x=p.pos.x, y=p.pos.y, z=p.pos.z, stackpos = 1}
item = getThingfromPos(pos)
doTransformItem(item.uid, p.itemid)
end
-- do not touch -- end --
function onStepIn(cid, item, pos)
-- options --
strogeValue = 8000
text = 'Wtf o.O !?'
waitTime = 60
dir = North
-- monsters options --
monsterpos = {x=187, y=445, z=7}
monsterpos2 = {x=189, y=445, z=7}
monsterpos3 = {x=188, y=446, z=7}
monsterpos4 = {x=191, y=446, z=7}
monster1name = 'Rat'
monster2name = 'Rat'
monster3name = 'Rat'
monster4name = 'Rat'
-- end monsters options --
-- end options --
-- do not touch --
isDone = getPlayerStorageValue(cid,strogeValue)
-- do not touch -- end --
-- script --
if isPlayer(cid) == 1 then
if isDone == -1 then
doMoveCreature(cid, dir)
doTransformItem(item.uid, item.itemid-1)
doSummonCreature(monster1name, monsterpos)
doSummonCreature(monster2name, monsterpos2)
doSummonCreature(monster3name, monsterpos3)
doSummonCreature(monster4name, monsterpos4)
setPlayerStorageValue(cid, strogeValue, 1)
doPlayerSay(cid,text,1)
p = {pos = pos, itemid = item.itemid}
addEvent(doorDecay, waitTime*1000, p)
end
end
end
-- end script --
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki