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

Lua Mocks Portal Gun

High Timez

Novacane
Joined
Mar 17, 2013
Messages
105
Reaction score
3
So I'm using Mock's portal gun script here

But when I go to use the keys all it says is "cannot use this object"
 
Last edited:
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)
XML:
<action fromid="2086" toid="2092" script="other/doors.lua"/>
So be sure you don't still have id 2090/2091 added as key to the door.lua script.

Also Mystic Spirit uses script instead of event and value, so check if you added it correctly.
 
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)
XML:
<action fromid="2086" toid="2092" script="other/doors.lua"/>
So be sure you don't still have id 2090/2091 added as key to the door.lua script.

Also Mystic Spirit uses script instead of event and value, so check if you added it correctly.
Gah sorry I forgot to list it, but do I change it to this?
Code:
<action fromid="2086" toid="2089" script="other/doors.lua"/>
 
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).
 
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).

Alright, so I am able to use the keys now, but when I use the crystal key ID:2090 it changes to a golden key ID:2091 correctly, but doesn't set the TP part of it, just the effect.

- - - Updated - - -

I also get this:
Code:
[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>

- - - Updated - - -

bump

- - - Updated - - -

bump I will rep+++ anyone who can help me figure this out!
 
Last edited:
Back
Top