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

TalkAction Bomberman

@anywhere, outside of a function
should be at top or bottom
 
facepalming.gif
 
Cykotitan Ty !!

Cykotitan ty!

all running good

only the powers cant use...if you can help im +rep u
 
Last edited:
was okay the script leaver more time to place the pump simply does not give. not leave the pump I tried to use the command z;Z and replace more has not yet :/
 
It's z OR Z -.-

And if you're using a translator, atleast try to write your in language correctly.
 
and if a player dies and where he teleported?

[25/04/2010 01:31:50] [Error - TalkAction Interface]
[25/04/2010 01:31:50] In a timer event called from:
[25/04/2010 01:31:50] data/talkactions/scripts/bomb.lua:eek:nSay
[25/04/2010 01:31:50] Description:
[25/04/2010 01:31:50] attempt to index a nil value
[25/04/2010 01:31:50] stack traceback:
[25/04/2010 01:31:50] [C]: in function 'doCreateItem'
[25/04/2010 01:31:50] data/talkactions/scripts/bomb.lua:116: in function <data/talkactions/scripts/bomb.lua:87>

[25/04/2010 01:31:51] [Error - TalkAction Interface]
[25/04/2010 01:31:51] In a timer event called from:
[25/04/2010 01:31:51] data/talkactions/scripts/bomb.lua:eek:nSay
[25/04/2010 01:31:51] Description:
[25/04/2010 01:31:51] attempt to index a nil value
[25/04/2010 01:31:51] stack traceback:
[25/04/2010 01:31:51] [C]: in function 'doCreateItem'
[25/04/2010 01:31:51] data/talkactions/scripts/bomb.lua:116: in function <data/talkactions/scripts/bomb.lua:87>


sorry the bad english google translator sometimes has no efficiency :p
 
Last edited:
[25/04/2010 01:31:50] [Error - TalkAction Interface]
[25/04/2010 01:31:50] In a timer event called from:
[25/04/2010 01:31:50] data/talkactions/scripts/bomb.luanSay
[25/04/2010 01:31:50] Description:
[25/04/2010 01:31:50] attempt to index a nil value
[25/04/2010 01:31:50] stack traceback:
[25/04/2010 01:31:50] [C]: in function 'doCreateItem'
[25/04/2010 01:31:50] data/talkactions/scripts/bomb.lua:116: in function <data/talkactions/scripts/bomb.lua:87>

[25/04/2010 01:31:51] [Error - TalkAction Interface]
[25/04/2010 01:31:51] In a timer event called from:
[25/04/2010 01:31:51] data/talkactions/scripts/bomb.luanSay
[25/04/2010 01:31:51] Description:
[25/04/2010 01:31:51] attempt to index a nil value
[25/04/2010 01:31:51] stack traceback:
[25/04/2010 01:31:51] [C]: in function 'doCreateItem'
[25/04/2010 01:31:51] data/talkactions/scripts/bomb.lua:116: in function <data/talkactions/scripts/bomb.lua:87>

error in sript
 
You already posted that.

For some reason _pos is nil when it tries to create a powerup :p
 
yes I had already posted this bug, but you had not responded.
there any way to fix and correct this error?
 
2822-bombbug.png

1. Bombs pass right through wall

Just to mention it again, Using TFS 0.4 r 3684


I See Explosion stop in Block Here.
How wall can stop too ?
Lua:
local function boom(pos, cid)
	local v = getTileItemById(pos, t.bombID).uid
	if isPlayer(cid) and isInRange(getThingPos(cid), t.from, t.to) then
		setPlayerStorageValue(cid, t.storage.placed, getPlayerStorageValue(cid, t.storage.placed) - 1)
		doCreatureSay(cid, t.text, TALKTYPE_ORANGE_2, false, nil, pos)
		doSendMagicEffect(pos, t.effect)
		local c = getTopCreature(pos).uid
		if isPlayer(c) and isInRange(getThingPos(c), t.from, t.to) then
			doSendMagicEffect(pos, CONST_ME_GIFT_WRAPS)
			doTeleportThing(c, t.temple)
			doSendMagicEffect(t.temple, CONST_ME_MORTAREA)
			local n1, n2 = getPlayerName(c), getPlayerName(cid)
			doBroadcastMessage(n1==n2 and n1 .. " killed " .. (getPlayerSex(c) == 0 and "her" or "him") .. "self!" or n1 .. " was killed by " .. n2 .. "!", MESSAGE_STATUS_WARNING)
			local a = getPlayersInRange({x=497, y=500, z=7}, 7, 5)
			if #a < 2 then
				doBroadcastMessage(getPlayerName(a[1]) .. " has won the match!", MESSAGE_STATUS_WARNING)
				doPlayerAddLevel(a[1], 1)
				doTeleportThing(a[1], t.temple)
				doSendMagicEffect(t.temple, CONST_ME_FIREWORK_RED)
				reset()
				reset()
			end
		else
			local b = getTileItemById(pos, t.blockID).uid
			if b > 0 then
				doSendMagicEffect(pos, CONST_ME_BLOCKHIT)
				doRemoveItem(b)
				local r = math.random(10)
				if r < 4 then
					doCreateItem(r==1 and 8304 or r==2 and 8306 or r==3 and 8310, 1, _pos)
				end
			end
		end
		local N, E, W, S, l = 1, 1, 1, 1, getPlayerStorageValue(cid, t.storage.radius)
		function loopDir(dir)
			local _pos = {x=pos.x+(dir=="E" and E or dir=="W" and -W or 0), y=pos.y+(dir=="N" and -N or dir=="S" and S or 0), z=pos.z}
			if queryTileAddThing(v, _pos, 4) == RETURNVALUE_NOERROR or getTileItemById(_pos, t.blockID).uid > 0   then
				doSendMagicEffect(_pos, t.effect)
				local c = getTopCreature(_pos).uid
				if isPlayer(c) and isInRange(getThingPos(c), t.from, t.to) then
					doSendMagicEffect(_pos, CONST_ME_GIFT_WRAPS)
					doTeleportThing(c, t.temple)
					doSendMagicEffect(t.temple, CONST_ME_MORTAREA)
					local n1, n2 = getPlayerName(c), getPlayerName(cid)
					doBroadcastMessage(n1==n2 and n1 .. " killed " .. (getPlayerSex(c) == 0 and "her" or "him") .. "self!" or n1 .. " was killed by " .. n2 .. "!", MESSAGE_STATUS_WARNING)
					local a = getPlayersInRange({x=497, y=500, z=7}, 7, 5)
					if #a < 2 then
						doBroadcastMessage(getPlayerName(a[1]) .. " has won the match!", MESSAGE_STATUS_WARNING)
						doPlayerAddLevel(a[1], 1)
						doTeleportThing(a[1], t.temple)
						doSendMagicEffect(t.temple, CONST_ME_FIREWORK_RED)
						reset()
						reset()
						return "endgame"
					end
				else
					local b = getTileItemById(_pos, t.blockID).uid
					if b > 0 then
						doSendMagicEffect(_pos, CONST_ME_BLOCKHIT)
						doRemoveItem(b)
						local r = math.random(10)
						if r < 4 then
							doCreateItem(r==1 and 8304 or r==2 and 8306 or r==3 and 8310, 1, _pos)
						end
						return false
					end
				end
			elseif queryTileAddThing(v, _pos, 4) == 3 then
				return false
			end
			return true
		end
		while N <= l do
			local q = loopDir("N")
			if q == "endgame" then
				return doRemoveItem(v, 1)
			elseif not q then
				break
			else
				N = N + 1
			end
		end
		while E <= l do
			local q = loopDir("E")
			if q == "endgame" then
				return doRemoveItem(v, 1)
			elseif not q then
				break
			else
				E = E + 1
			end
		end
		while W <= l do
			local q = loopDir("W")
			if q == "endgame" then
				return doRemoveItem(v, 1)
			elseif not q then
				break
			else
				W = W + 1
			end
		end
		while S <= l do
			local q = loopDir("S")
			if q == "endgame" then
				return doRemoveItem(v, 1)
			elseif not q then
				break
			else
				S = S + 1
			end
		end
	end
	doRemoveItem(v, 1)
end


I pay 15 dolar to fix this.
 
0.4 sucks, it's still in testing stages. You should use 0.3.6pl1.
 
i have problem ;/ who help me?

[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/bomb.lua:21: '<eof>' expected near 'end'
[Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/bomb.lua)
data/talkactions/scripts/bomb.lua:21: '<eof>' expected near 'end'
 
I got this error
[Error - TalkAction Interface]
In a timer event caller from:
Data/talkactions/scripts/bomb.lua:eek:nSay
Description;
<LuaDoRemoveItem> Item not found
and
[Error - TalkAction Interface]
Ina a timer event called from:
data/talkactions/scripts/bombs.lua:eek:nSay
Description
<LuadDoTitleQueryAdd> Thing not found
What is the problem?
 
Back
Top