Ray Rewind
Doctor
HEya I followed a Tutorial!
http://otland.net/f82/zombie-event-new-version-bug-free-updated-128664/
But somehow it does not work I get this errors in console
These is my ondeath.lua
my onstartup
talkactions!
- - - Updated - - -
anyone an idea?:O
http://otland.net/f82/zombie-event-new-version-bug-free-updated-128664/
But somehow it does not work I get this errors in console
PHP:
[21/08/2013 21:03:19] [Error - LuaScriptInterface::loadFile] cannot open data/talkactions/scripts/zombie/onsay.lua: No such file or directory
[21/08/2013 21:03:19] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/zombie/onsay.lua)
[21/08/2013 21:03:19] cannot open data/talkactions/scripts/zombie/onsay.lua: No such file or directory
[21/08/2013 21:03:26] [Error - GlobalEvent Interface]
[21/08/2013 21:03:26] data/globalevents/scripts/zombie/onstartup.lua:onStartup
[21/08/2013 21:03:26] Description:
[21/08/2013 21:03:26] data/globalevents/scripts/zombie/onstartup.lua:7: attempt to call global 'addZombiesEventBlockEnterPosition' (a nil value)
[21/08/2013 21:03:26] stack traceback:
[21/08/2013 21:03:26] data/globalevents/scripts/zombie/onstartup.lua:7: in function <data/globalevents/scripts/zombie/onstartup.lua:1>
[21/08/2013 21:03:34] [Error - CreatureScript Interface]
[21/08/2013 21:03:34] data/creaturescripts/scripts/zombie/ondeath.lua:onDeath
[21/08/2013 21:03:34] Description:
[21/08/2013 21:03:34] data/creaturescripts/scripts/zombie/ondeath.lua:2: attempt to call global 'getZombiesToSpawnCount' (a nil value)
[21/08/2013 21:03:34] stack traceback:
[21/08/2013 21:03:34] data/creaturescripts/scripts/zombie/ondeath.lua:2: in function <data/creaturescripts/scripts/zombie/ondeath.lua:1>
These is my ondeath.lua
PHP:
function onDeath(cid)
setZombiesToSpawnCount(getZombiesToSpawnCount() + 2)
doCreatureSay(cid, "I'll be back!", 19)
return true
end
my onstartup
PHP:
function onStartup()
db.executeQuery("UPDATE `player_storage` SET `value` = 0 WHERE `key` = " .. ZE_isOnZombieArea .. ";")
doSetStorage(ZE_STATUS, 0)
doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS)
doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0)
doSetStorage(ZE_ZOMBIES_SPAWNED, 0)
addZombiesEventBlockEnterPosition()
return true
end
talkactions!
PHP:
<talkaction log="yes" words="/zombiestart force" access="4" event="script" value="zombie/onsay.lua"/>
- - - Updated - - -
anyone an idea?:O