• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Scripts to Mods Transformer

@up
no, only !mods
;p
hmm, i cant get it to work then :eek:
do you have to write anything special in talkactions.xml?

edit:
If have it like this
Code:
<talkaction words="/mods" event="script" value="mods.lua"/>
i get this error
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>
 
Last edited:
hmm, i cant get it to work then :eek:
do you have to write anything special in talkactions.xml?

edit:
If have it like this
Code:
<talkaction words="/mods" event="script" value="mods.lua"/>
i get this error
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>

f = line:match('value=".*".*')

you have an old talkactions.xml

the format should be


PHP:
    <talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>

 
f = line:match('value=".*".*')

you have an old talkactions.xml

the format should be


PHP:
    <talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>

oh, thanks :p

Code:
[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.
 
Last edited:
I still got this error

[13/08/2009 16:37:25] Lua Script Error: [TalkAction Interface]
[13/08/2009 16:37:25] data/talkactions/scripts/mods.lua:eek:nSay

[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>

and my talkaction.xml is like that

<talkaction words="!mods" hide="yes" event="script" value="mods.lua"/>
what i am doing wrong?
 
same every line in the document should be like this

PHP:
    <talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
 
This script works godly, it will be so awesome if you can do the same to the other scripts like action, creaturescript, raids and movements, well anyways this script is pure awesomeness and you... ARE A FUCKING GOD! LOL Keep up that awesome scripting:thumbup:
 
i tried the script and it works perfectly but when it turns it into mods it make all of the talkactions available to any access, any player can use the talkactions that are made only for the gods,GM and such, but since this is just only to show that a script that can turn lua scripts into MODs then i guess this sort of stuff can happen. anyways keep up the awesome job let's hope that an action, creaturescript to Mod is made.
P.S. Correct me if I'm wrong but, I think it will be much harder to make an Action to Mod script since when I read your script in it it seems to specify the types of functions within talkactions and talkactions are made up of "function onSay" while actions have various others, so i think that might make it hard to make.
@UzIcO
yeah i know, but it works that's all that matters. :D
 
Back
Top