High Timez
Novacane
- Joined
- Mar 17, 2013
- Messages
- 105
- Reaction score
- 3
Any errors?
Check also declared itemid, maybe you have twice ID's declared.
I tested it on my OT and it works.
No errors, Idk Im kind of confused lol. Where do I check this declared itemid? and what is the aid 0?
On your actions.xml file, but when you start the server you should get a warning (Duplicate registered item id blabla).
<action fromid="2086" toid="2092" script="other/doors.lua"/>
Gah sorry I forgot to list it, but do I change it to this?Mystic Spirit has this about the keys in actions.xml (at least, I assume you still use that one, because you forgot to mention it in the thread)
So be sure you don't still have id 2090/2091 added as key to the door.lua script.XML:<action fromid="2086" toid="2092" script="other/doors.lua"/>
Also Mystic Spirit uses script instead of event and value, so check if you added it correctly.
<action fromid="2086" toid="2089" script="other/doors.lua"/>
Yes, you can do that.
You can add the 2092 with a new line incase you want to use it as key.
Yes, Crying Damson (0.3/0.4) uses event and value as directory, Mystic Spirit (0.2) uses just script, like you can see in the other actions.xml lines. So the directory should be with script="other/namescript.lua" and not with event and value (the other is just an example, add there the folder you added the script in).
[25/03/2013 16:28:07] Lua Script Error: [Action Interface]
[25/03/2013 16:28:07] in a timer event called from:
[25/03/2013 16:28:07] data/actions/scripts/tools/mock_portal.lua:onUse
[25/03/2013 16:28:07] data/actions/scripts/tools/mock_portal.lua:78: attempt to call global 'getThingFromPos' (a nil value)
[25/03/2013 16:28:07] stack traceback:
[25/03/2013 16:28:07] [C]: in function 'getThingFromPos'
[25/03/2013 16:28:07] data/actions/scripts/tools/mock_portal.lua:78: in function <data/actions/scripts/tools/mock_portal.lua:71>