Siemka, posiadam otsmaterię z 2013 roku, lecz jej eventy (modsy) nie działają; słyszałem, że materia nie stała na linuxie więc eventy nie są pisane pod zwykłego TFS-a, zwracam się do Was z prośbą co należałoby zmienić z takowych eventach aby w pełni spełniały swoje zadanie.... Proszę o pomoc...
[13:37:48.367] [Error - CreatureScript Interface]
[13:37:48.367] domodlib("config_fire_storm_event")
[13:37:48.367]
[13:37:48.367] function onLogin(cid)
[13:37:48.367] if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then
[13:37:48.367] doCreatureSetStorage(cid, configFireStormEvent.storages.player, -1)
[13:37:48.367] doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)
[13:37:48.367] doCreatureSetNoMove(cid, false)
[13:37:48.367] doRemoveCondition(cid, CONDITION_INFIGHT)
[13:37:48.367] end
[13:37:48.367] registerCreatureEvent(cid, 'Fire_Storm_Event_Dead')
[13:37:48.367] return true
[13:37:48.367] end
[13:37:48.368] nLogin
[13:37:48.368] Description:
[13:37:48.368] [string "LuaInterface::loadBuffer"]:4: attempt to compare number with string
[13:37:48.368] stack traceback:
[13:37:48.368] [string "LuaInterface::loadBuffer"]:4: in function <[string "LuaInterface::loadBuffer"]:3>
> Broadcasted message: "Fire Storm Event will start in 2 minutes. You can join to the event by say "!fire join".".
[13:38:04.409] [Error - TalkAction Interface]
[13:38:04.409] domodlib("config_fire_storm_event")
[13:38:04.409] domodlib("lib_fire_storm_event")
[13:38:04.409] function onSay(cid, words, param)
[13:38:04.409] if getStorage(configFireStormEvent.storages.main) > 0 then
[13:38:04.409] return doPlayerSendCancel(cid, 'Fire Storm Event is already running.')
[13:38:04.409] end
[13:38:04.409]
[13:38:04.409] doStartCountingFireStormEvent(0)
[13:38:04.409]
[13:38:04.409] for _, pid in ipairs(getPlayersOnline()) do
[13:38:04.409] if getCreatureStorage(pid, configFireStormEvent.storages.player) > 0 then
[13:38:04.409] doCreatureSetStorage(pid, configFireStormEvent.storages.player, -1)
[13:38:04.409] doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
[13:38:04.409] end
[13:38:04.409] end
[13:38:04.409]
[13:38:04.409] doSetStorage(configFireStormEvent.storages.joining, 1)
[13:38:04.409] addEvent(doStartFireStormEvent, configFireStormEvent.delayTime * 60 * 1000)
[13:38:04.409] return true
[13:38:04.409] end
[13:38:04.409] nSay
[13:38:04.409] Description:
[13:38:04.409] [string "LuaInterface::loadBuffer"]:12: attempt to compare number with string
[13:38:04.409] stack traceback:
[13:38:04.409] [string "LuaInterface::loadBuffer"]:12: in function <[string "LuaInterface::loadBuffer"]:4>
> Broadcasted message: "Fire Storm Event will start in 2 minutes. You can join to the event by say "!fire join".".
[13:38:18.491] [Error - TalkAction Interface]
[13:38:18.491] domodlib("config_fire_storm_event")
[13:38:18.491] domodlib("lib_fire_storm_event")
[13:38:18.491] function onSay(cid, words, param)
[13:38:18.491] if getStorage(configFireStormEvent.storages.main) > 0 then
[13:38:18.491] return doPlayerSendCancel(cid, 'Fire Storm Event is already running.')
[13:38:18.491] end
[13:38:18.491]
[13:38:18.491] doStartCountingFireStormEvent(0)
[13:38:18.491]
[13:38:18.491] for _, pid in ipairs(getPlayersOnline()) do
[13:38:18.491] if getCreatureStorage(pid, configFireStormEvent.storages.player) > 0 then
[13:38:18.491] doCreatureSetStorage(pid, configFireStormEvent.storages.player, -1)
[13:38:18.491] doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true)
[13:38:18.491] end
[13:38:18.491] end
[13:38:18.491]
[13:38:18.491] doSetStorage(configFireStormEvent.storages.joining, 1)
[13:38:18.491] addEvent(doStartFireStormEvent, configFireStormEvent.delayTime * 60 * 1000)
[13:38:18.491] return true
[13:38:18.491] end
[13:38:18.491] nSay
[13:38:18.491] Description:
[13:38:18.491] [string "LuaInterface::loadBuffer"]:12: attempt to compare number with string
[13:38:18.491] stack traceback:
[13:38:18.492] [string "LuaInterface::loadBuffer"]:12: in function <[string "LuaInterface::loadBuffer"]:4>
> Broadcasted message: "Fire Storm Event will start in 1 minutes. You can join to the event by say "!fire join".".
> Broadcasted message: "Fire Storm Event will start in 1 minutes. You can join to the event by say "!fire join".".
Last edited: