• 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!

Problems with mods

pansuchar

Member
Joined
Dec 29, 2008
Messages
68
Reaction score
5
Hi. I use tfs 0.3.6 I need help with my event:
When the event ends and players are transferred to dp event still works and shows the error in the console:
Code:
[21/03/2014 11:55:44] [Error - TalkAction Interface]
[21/03/2014 11:55:45] In a timer event called from:
[21/03/2014 11:55:45] buffer:onSay
[21/03/2014 11:55:45] Description:
[21/03/2014 11:55:45] [string "            function doStopZombieEvent()..."]:148: attempt to call field 'query' (a nil value)
[21/03/2014 11:55:45] stack traceback:
[21/03/2014 11:55:45] [string "            function doStopZombieEvent()..."]:148: in function <[string "            function doStopZombieEvent()..."]:107>
 
Last edited:
Change db.query to db.executeQuery.
Works good :) But I have one more error in my console when I join to event by command: !zombie join, I dont know, Its important?
Code:
[21/03/2014 15:51:26] [Error - TalkAction Interface]
[21/03/2014 15:51:26] buffer:onSay
[21/03/2014 15:51:26] Description:
[21/03/2014 15:51:26] (luaDoAddCondition) Condition not found
 
Add this in the config part.
Code:
fight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(fight, CONDITION_PARAM_TICKS, -1)


Then change this
Code:
doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1))
To this
Code:
doAddCondition(cid, fight)
 
I change
Code:
doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1))

In which part of config i had to add this:
Code:
fight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(fight, CONDITION_PARAM_TICKS, -1)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Zombie_Event" version="3.0" author="VirrageS" contact="otland.net" enabled="yes">

    <config name="config_zombie_event">
        <![CDATA[
            configZombieEvent = {
                storages = {
                    main = '44461', -- set free storage
                    player = '44462', -- set free storage
                    joining = '44463', -- set free storage
                    kills = '44464', -- set free storage
                    exhaust = '44465', -- set free storage
                    countEvent = '44466' -- set free storage
                },

                fight = createConditionObject(CONDITION_INFIGHT)
                setConditionParam(fight, CONDITION_PARAM_TICKS, -1)
             
                position = {x=76,y=267,z=8}, -- position to which player is teleporting
                room = {
                    from = {x=53,y=236,z=8}, -- left top corner of event room
                    to = {x=94,y=285,z=8} -- right bottom corner of event room
                },             
             
                rewards = {2472}, -- reward id which player can win (reward is random)             
                players = {
                    max = 20, -- max players in event
                    min = 2, -- min players to event start
                    minLevel = 100, -- min level to join to event
                    pvpEnabled = false -- can players hit theirselfs
                },
             
                days = {
                    ['Tuesday'] = {'21:59:20'},
                    ['Thursday'] = {'21:59:20'},
                    ['Friday'] = {'21:59:20'},
                    ['Sunday'] = {'21:59:20'}
                },
             
                spawnDelay = 2000, -- miliseconds
                amountCreatingMonsters = 5,
                monsters = {'Scratchclaw', 'Propell Zombie', 'Vile Centurion', 'Mongrel Man', 'Daidalost'}, -- name of monsters which is creating in event

                delayTime = 1.0, -- time in which players who joined to event are teleporting to teleport position [miuntes]
                startEvent = 1, -- time from teleport to start event [seconds]
                stopEvent = 9200, -- [seconds]
                text = '-PL-\nAby wygrac i otrzymac nagrode, zabij jak najwieksza liczbe zombie przez 20min lub pozostan sam na arenie.\n\n-ENG-\nTo win and get a reward, kill as many zombies for 20 minutes or stay the same in the arena.'
            }
        ]]>
    </config>

I add like that, but have errors :confused:
 
Back
Top