Renusek
beton beton beton punk!
@up
no, only !mods
;p
no, only !mods
;p
hmm, i cant get it to work then@up
no, only !mods
;p
<talkaction words="/mods" event="script" value="mods.lua"/>
[13/08/2009 18:54:48] Lua Script Error: [TalkAction Interface]
[13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:onSay
[13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:13: attempt to index global 'f' (a nil value)
[13/08/2009 18:54:48] stack traceback:
[13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:13: in function 'NahrutoFTW'
[13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:31: in function <data/talkactions/scripts/mods.lua:30>
hmm, i cant get it to work then
do you have to write anything special in talkactions.xml?
edit:
If have it like thisi get this errorCode:<talkaction words="/mods" event="script" value="mods.lua"/>
Code:[13/08/2009 18:54:48] Lua Script Error: [TalkAction Interface] [13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:onSay [13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:13: attempt to index global 'f' (a nil value) [13/08/2009 18:54:48] stack traceback: [13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:13: in function 'NahrutoFTW' [13/08/2009 18:54:48] data/talkactions/scripts/mods.lua:31: in function <data/talkactions/scripts/mods.lua:30>
<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
oh, thanksf = line:match('value=".*".*')
you have an old talkactions.xml
the format should be
PHP:<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
[13/08/2009 19:34:04] Reloaded talk actions.
[13/08/2009 19:35:04] >> Reloading mods...
[13/08/2009 19:35:04] Loading !bless.xml... done.
[13/08/2009 19:35:04] Loading !deathlist.xml... done.
[13/08/2009 19:35:04] Loading !enchant.xml... done.
[13/08/2009 19:35:04] Loading !frags.xml... done.
[13/08/2009 19:35:04] Loading !go.xml... done.
[13/08/2009 19:35:04] Loading !leavehouse.xml... done.
[13/08/2009 19:35:04] Loading !mods.xml...[Error - ScriptingManager::loadFromXml] Cannot load mod mods/!mods.xml
[13/08/2009 19:35:04] Line: 55, Info: Extra content at the end of the document
[13/08/2009 19:35:04] failed!
[13/08/2009 19:35:04] Loading !online.xml... done.
[13/08/2009 19:35:04] Loading !pos.xml... done.
[13/08/2009 19:35:04] Loading !pvp.xml... done.
[13/08/2009 19:35:04] Loading !q.xml... done.
[13/08/2009 19:35:04] Loading !serverinfo.xml... done.
[13/08/2009 19:35:04] Loading !uptime.xml... done.
[13/08/2009 19:35:04] Loading a.xml... done.
[13/08/2009 19:35:04] Loading b.xml... done.
[13/08/2009 19:35:04] Loading bc.xml... done.
[13/08/2009 19:35:04] Loading bg.xml... done.
[13/08/2009 19:35:04] Loading buypremium_command.xml... done.
[13/08/2009 19:35:04] Loading c.xml... done.
[13/08/2009 19:35:04] Loading changender_command.xml... done.
[13/08/2009 19:35:04] Loading clean.xml... done.
[13/08/2009 19:35:04] Loading cliport.xml... done.
[13/08/2009 19:35:04] Loading closeserver.xml... done.
[13/08/2009 19:35:04] Loading commands.xml... done.
[13/08/2009 19:35:04] Loading config.xml... done.
[13/08/2009 19:35:04] Loading custommonsters.xml... done.
[13/08/2009 19:35:04] Loading customspells.xml... done, but disabled.
[13/08/2009 19:35:04] Loading deathlist.xml... done.
[13/08/2009 19:35:04] Loading down.xml... done.
[13/08/2009 19:35:04] Loading gethouse.xml... done.
[13/08/2009 19:35:04] Loading goto.xml... done.
[13/08/2009 19:35:04] Loading highscorebook.xml... done, but disabled.
[13/08/2009 19:35:04] Loading i.xml... done.
[13/08/2009 19:35:04] Loading info.xml... done.
[13/08/2009 19:35:04] Loading kick.xml... done.
[13/08/2009 19:35:04] Loading love.xml... done.
[13/08/2009 19:35:04] Loading m.xml... done.
[13/08/2009 19:35:04] Loading mc.xml... done.
[13/08/2009 19:35:04] Loading mkick.xml... done.
[13/08/2009 19:35:04] Loading mode.xml... done.
[13/08/2009 19:35:04] Loading n.xml... done.
[13/08/2009 19:35:04] Loading newtype.xml... done.
[13/08/2009 19:35:04] Loading notations.xml... done.
[13/08/2009 19:35:04] Loading online.xml... done.
[13/08/2009 19:35:04] Loading openserver.xml... done.
[13/08/2009 19:35:04] Loading owner.xml... done.
[13/08/2009 19:35:04] Loading pos.xml... done.
[13/08/2009 19:35:04] Loading pvp.xml... done.
[13/08/2009 19:35:04] Loading r.xml... done.
[13/08/2009 19:35:04] Loading raid.xml... done.
[13/08/2009 19:35:04] Loading reload.xml... done.
[13/08/2009 19:35:04] Loading reports.xml... done.
[13/08/2009 19:35:04] Loading s.xml... done.
[13/08/2009 19:35:04] Loading save.xml... done.
[13/08/2009 19:35:04] Loading send.xml... done.
[13/08/2009 19:35:04] Loading serverinfo.xml... done.
[13/08/2009 19:35:04] Loading shutdown.xml... done.
[13/08/2009 19:35:04] Loading squelch.xml... done.
[13/08/2009 19:35:04] Loading storage.xml... done.
[13/08/2009 19:35:04] Loading t.xml... done.
[13/08/2009 19:35:04] Loading town.xml... done.
[13/08/2009 19:35:04] Loading unban.xml... done.
[13/08/2009 19:35:04] Loading up.xml... done.
[13/08/2009 19:35:04] Loading uptime.xml... done.
[13/08/2009 19:35:04] Loading wp.xml... done.
[13/08/2009 19:35:04] Loading x.xml... done.
[13/08/2009 19:35:04] Loading y.xml... done.
[13/08/2009 19:35:04] Loading z.xml... done.
[13/08/2009 19:35:04] > 68 mods were loaded.
[13/08/2009 16:37:25] Lua Script Error: [TalkAction Interface]
[13/08/2009 16:37:25] data/talkactions/scripts/mods.luanSay
[13/08/2009 16:37:25] data/talkactions/scripts/mods.lua:13: attempt to index global 'f' (a nil value)
[13/08/2009 16:37:25] stack traceback:
[13/08/2009 16:37:25] data/talkactions/scripts/mods.lua:13: in function 'NahrutoFTW'
[13/08/2009 16:37:25] data/talkactions/scripts/mods.lua:31: in function <data/talkactions/scripts/mods.lua:30>
what i am doing wrong?<talkaction words="!mods" hide="yes" event="script" value="mods.lua"/>
heres a script that uses modsno scripts for mods yet r there?
+And guys, you must change all 'return true' and 'return false' to '_result = true' and '_result = false' . Then mods should work fine.
I think that this should be bumped due to its Greatness. =]