• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Bomberman error on death

Sweetlove

Member
Joined
Jun 22, 2009
Messages
270
Reaction score
14
Location
Sverige
Hey, everything works smoothly except when someone gets killed then this appears..
im using 0.3.6 TFS and this script " http://otland.net/threads/bomberman.73864/ "

Code:
[error - talkaction interface ]
In a timer event called from:
data/talkactions/scripts/bomb.lua:onSay
Description:
Data/talkactions/scripts/bomb.lua:134: attempt to concatenate a boolean value
stack traceback:
    data/talkactions/scripts/bomb.lua:134: in function 'loopDir'
    data/talkactions/scripts/bomb.lua:180: in function <data/talkactions/scripts/bomb.lua:87
 
local a = getPlayersInRange({x=497, y=500, z=9}, 7, 5)
Make sure the position you added there is correct, so it's not posible for people to stand outside that range.
 
Should it be like the xyz u linked there?

cuz its just like that

getPlayersInRange({x=497, y=500, z=9}, 7, 5)

or its like this :p
 
Last edited by a moderator:
No, it should be the position of your bomberman room.
Position x: from x-7 till x+7
Position y: from y-5 till y+5

For for example with {x=497, y=500, z=9}
fromposition {x=490, y=495, z=9}
toposition {x=504, y=505, z=9}

Then players can't be outside that range when they are in the bomberman room.
 
I mean this position from local a (this should be the position of the centre of the bomberman room).
Code:
local a = getPlayersInRange({x=497, y=500, z=9}, 7, 5)

I just gave an explanation how to calculate the range.
 
You have a bomberman room right? Then the position you have in the middle of that room, that is the position you are supposed to add as position in the local a = getPlayersInRange lines.
It should be exactly in the middle, but you can also make the range a bit higher, like 8 and 6, instead of 7 and 5, incase it's not exactly in the middle.
 
Haha now i get it, thx i'll get back later with an answer if it works :p

Aight well , i can't make it right in the middle and its 7 on z, should i put it as close as the middle as possibly and put z on like 9 ?
 
Last edited by a moderator:
local a = getPlayersInRange({x=497, y=500, z=9}, 7, 5)
The position should be the position in the middle of the room, you can make the range 7 and 5 higher incase it's not exactly in the middle.
 
Are u saying local a = getPlayersInRange({x=, y=, z=9}, 7, 5) should be in the middle or excactly local a = getPlayersInRange({x=497, y=500, z=9}, 7, 5)............ haha

still not getting teleported out, this is what the guy on the thread u linked said ,
hmm, this happens to me it seems that there must be a query to the database, suitable rewrites to Bomberman.
the mods do there is none associated with this event?
 
Last edited by a moderator:
You can see the position in Remere in you hold your mouse in the middle of the room.
cUBE1g.png

The problem of the other guy was the position, I pmed him back then.
 
Why?
It doesn't matter where it is or how big it is, just use the position in the middle.
If your room is bigger than this, you can just make the range higher.
 
This is 2x in the script (bomp.lua, I haven't looked at the rest since there problems were with this script)
Code:
local a = getPlayersInRange({x=497, y=500, z=9}, 7, 5)
Line 100 and 132.
 
Back
Top