• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Skrypt - Gdzie błąd?

Status
Not open for further replies.

Crypton

New Member
Joined
Mar 18, 2009
Messages
16
Reaction score
0
Witam,
gdy włączam server otrzymuję taki błąd:
[15/02/2010 20:52:51] [Warning - Event::loadScript] Event onUse not found (data/actions/scripts/bc2.lua)

Oto skrypt, jak to naprawić?:
function onThink(interval, lastExecution)
local wallpos = {1061,1409,11} -- pozycja sciany --
local wallid = 1353
local wall = getTileItemById(wallid, wallpos)
local timetocreate = 20 --czas w minutach po jakim ma sie pojawić sciana --
if wall.uid == 1 then
doRemoveItem(wall.uid, 1)
local function create(cid)
doCreateItem(wallid, wallpos)
end
addEvent(create, timetocreate*1000*60, cid)
end
end
actions.xml:
<action uniqueid="43000" interval="400" script="bc2.lua" />

Chodzi mi w tym oto aby ściana znikała automatycznie co X sekund i pojawiała się po 20 minutach.
 
Last edited:
Event onUse not found (data/actions/scripts/bc2.lua)
function onThink(interval, lastExecution)
<action uniqueid="43000" interval="400" script="bc2.lua" />

pozdro
 
Czyli w "actions" może być tylko "onUse"?? Jak można zrobić event który rozpoczyna się co kilka minut?
 
jezu chryste świety panie

a pomyśl co jest wywoływane co kilka minut? i poszukaj tego
 
Status
Not open for further replies.
Back
Top