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

She can not write well in English interpreter used the excuse for mistakes.


Ennokas ty +rep!
 
Hello i got problem then 2x ppl left on arena and 1 trying kill other then i kill another guy server got crash and

Error [Error - TalkAction Interface]
In a timer event called from:
data/talkactions/scripts/bomb.lua:eek:nSay
Description:
(luaDoTileQueryAdd) Thing not found


[07/10/2010 12:19:33] [Error - TalkAction Interface]
[07/10/2010 12:19:33] In a timer event called from:
[07/10/2010 12:19:33] data/talkactions/scripts/bomb.lua:eek:nSay
[07/10/2010 12:19:34] Description:
[07/10/2010 12:19:34] (luaDoRemoveItem) Item not found

[07/10/2010 12:22:51] [Error - TalkAction Interface]
[07/10/2010 12:22:51] In a timer event called from:
[07/10/2010 12:22:51] data/talkactions/scripts/bomb.lua:eek:nSay
[07/10/2010 12:22:51] Description:
[07/10/2010 12:22:51] (luaGetCreatureName) Creature not found


[07/10/2010 12:22:51] [Error - TalkAction Interface]
[07/10/2010 12:22:51] In a timer event called from:
[07/10/2010 12:22:51] data/talkactions/scripts/bomb.lua:eek:nSay
[07/10/2010 12:22:51] Description:
[07/10/2010 12:22:51] data/talkactions/scripts/bomb.lua:134: attempt to concatenate a boolean value
[07/10/2010 12:22:51] stack traceback:
[07/10/2010 12:22:52] data/talkactions/scripts/bomb.lua:134: in function 'loopDir'
[07/10/2010 12:22:52] data/talkactions/scripts/bomb.lua:180: in function <data/talkactions/scripts/bomb.lua:87>


i using tfs 0.3.6pl


and second thing how i need setup lever ? im to lazy my lever dont work =(


please help rep+++
 
Last edited:
my only issue is that the place doesn't reset itself between games...the barrels don't reappear after the previous game ended...also when you are the last one standing wouldn't it be nice to be teleported out? that part is just a thought...plz help
 
where in the script is lever.lua
In the first post
my only issue is that the place doesn't reset itself between games...the barrels don't reappear after the previous game ended...also when you are the last one standing wouldn't it be nice to be teleported out? that part is just a thought...plz help
You've configured something wrong, all of that is working properly.
 
Code:
Bomb.lua

},
	delay = 3000,
	bombID = 10570,
	effect = CONST_ME_FIREAREA,
	blockID = 9468,
	text = "BOOM!",
	temple = {x=498, y=541, z=9},
	exceptions = {
		{x=490, y=495, z=9},
		{x=491, y=495, z=9},
		{x=490, y=496, z=9},
		
		{x=503, y=495, z=9},
		{x=504, y=495, z=9},
		{x=504, y=496, z=9},
		
		{x=490, y=505, z=9},
		{x=491, y=505, z=9},
		{x=490, y=504, z=9},
		
		{x=503, y=505, z=9},
		{x=504, y=505, z=9},
		{x=504, y=504, z=9}
	}

_____________________________________________________

level.lua

local t, n, storage = {
	{x=496, y=537, z=9},
	{x=497, y=537, z=9},
	{x=498, y=537, z=9},
	{x=499, y=537, z=9}
}, {
	{x=490, y=495, z=9},
	{x=504, y=505, z=9},
	{x=504, y=495, z=9},
	{x=490, y=505, z=9}
}, {
	placed = 10001,
	max = 10002,
	radius = 10003
}

What are those?.. what pos do i need to add there?
 
Great,, I fixed that 2 days ago.. but now when The game starts.. every one plays etc.. but when I kill the 3 players i still am in the bomb arena.. the barrels wont reset or anything :s
 
Code:
[24/11/2010 16:03:01] [Error - TalkAction Interface] 
[24/11/2010 16:03:01] buffer:onSay
[24/11/2010 16:03:01] Description: 
[24/11/2010 16:03:01] data/lib/032-position.lua:2: attempt to compare nil with number
[24/11/2010 16:03:01] stack traceback:
[24/11/2010 16:03:01] 	data/lib/032-position.lua:2: in function 'isInRange'
[24/11/2010 16:03:01] 	[string "loadBuffer"]:194: in function <[string "loadBuffer"]:193>

Code:
function isInRange(pos[COLOR="red"]ition[/COLOR], fromPosition, toPosition)
	return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.z >= fromPosition.z and position.x <= toPosition.x and position.y <= toPosition.y and position.z <= toPosition.z)
end

function getDistanceBetween(fromPosition, toPosition)
	local x, y = math.abs(fromPosition.x - toPosition.x), math.abs(fromPosition.y - toPosition.y)
	local diff = math.max(x, y)
	if(fromPosition.z ~= toPosition.z) then
		diff = diff + 9 + 6
	end

	return diff
end

function getDirectionTo(pos1, pos2)
	local dir = NORTH
	if(pos1.x > pos2.x) then
		dir = WEST
		if(pos1.y > pos2.y) then
			dir = NORTHWEST
		elseif(pos1.y < pos2.y) then
			dir = SOUTHWEST
		end
	elseif(pos1.x < pos2.x) then
		dir = EAST
		if(pos1.y > pos2.y) then
			dir = NORTHEAST
		elseif(pos1.y < pos2.y) then
			dir = SOUTHEAST
		end
	else
		if(pos1.y > pos2.y) then
			dir = NORTH
		elseif(pos1.y < pos2.y) then
			dir = SOUTH
		end
	end

	return dir
end

function getCreatureLookPosition(cid)
	return getPosByDir(getThingPos(cid), getCreatureLookDirection(cid))
end

function getPositionByDirection(position, direction, size)
	local n = size or 1
	if(direction == NORTH) then
		position.y = position.y - n
	elseif(direction == SOUTH) then
		position.y = position.y + n
	elseif(direction == WEST) then
		position.x = position.x - n
	elseif(direction == EAST) then
		position.x = position.x + n
	elseif(direction == NORTHWEST) then
		position.y = position.y - n
		position.x = position.x - n
	elseif(direction == NORTHEAST) then
		position.y = position.y - n
		position.x = position.x + n
	elseif(direction == SOUTHWEST) then
		position.y = position.y + n
		position.x = position.x - n
	elseif(direction == SOUTHEAST) then
		position.y = position.y + n
		position.x = position.x + n
	end

	return position
end

function doComparePositions(position, positionEx)
	return position.x == positionEx.x and position.y == positionEx.y and position.z == positionEx.z
end

function getArea(position, x, y)
	local t = {}
	for i = (position.x - x), (position.x + x) do
		for j = (position.y - y), (position.y + y) do
			table.insert(t, {x = i, y = j, z = position.z})
		end
	end

	return t
end
i already looked through the thread didnt find a fix. all i saw was that u put red in the code. my code already looks like that
 
Then maybe you forgot to copy some variable into your mod? Yea it's probably that, or... I don't know.
 
Back
Top