• 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

fbdfo.jpg

that the Bomber man place and this the Lever ^

and now how can i fix that ... 0.3.6


that can help the other too
 
Fixed but now ....


i played it for 1 day ,next day > u can't do word > "z;Z" which in talking action


so any help ..
 
lever.lua
Code:
function getPlayersInRange(position, radiusx, radiusy)
	local creaturesList = {}
	for x = -radiusx, radiusx do
		for y = -radiusy, radiusy do
			if not (x == 0 and y == 0) then
				local creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z})
				if creature.type == 1 then
					table.insert(creaturesList, creature.uid)
				end
			end
		end
	end

	local creature = getTopCreature(position)
	if creature.type == 1 then
		if not(table.find(creaturesList, creature.uid)) then
			table.insert(creaturesList, creature.uid)
		end
	end
    return creaturesList
end

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
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1946 then
		return doTransformItem(item.uid, item.itemid - 1)
	end

	local v = getPlayersInRange({x=497, y=500, z=9}, 7, 5)
	if #v > 0 then
		return doPlayerSendCancel(cid, "Please wait for the current match to end.")
	end

	local players = {}
	for i = 1, #t do
		local v = getTopCreature(t[i]).uid 
		players[i] = isPlayer(v) and v or nil
	end

	if #players < 2 then
		return doPlayerSendCancel(cid, "You need at least 2 players to enter.")
	end
	
	local first = players[1] and 1 or players[2] and 2 or players[3] and 3 or players[4] and 4
	for i = 1, 4 do
		if players[i] then
			setPlayerStorageValue(players[i], storage.placed, 0)
			setPlayerStorageValue(players[i], storage.max, 1)
			setPlayerStorageValue(players[i], storage.radius, 1)
			doSendMagicEffect(t[i], CONST_ME_TELEPORT)
			doTeleportThing(players[i], n[i])
			doSendMagicEffect(n[i], CONST_ME_TELEPORT)
		end
	end

	doTransformItem(item.uid, item.itemid + 1)
	return true
end
About this, where to put it? Actions?
Please give full explain about it!
 
It looks awesome! I'm glad to give you rep, becouse of your idea .
ht1.jpg
jh88.jpg
test.jpg
huang10
 
I got problems, i'm using tfs 0.4 and when i got 2 players in position and use the lever it still says: You need at least 2 players.

I would appericiate help very much!

Thanks!
 
Everything works perfectly.

But I have a problem. I do not land grabs items.

Help please
 
Last edited:
Why can't you just write like creaturescript/powerups or wherever they should be? :/
 
An improvement to getPlayersInRange:
Code:
function getPlayersInRange(pos, rX, rY)
local ret = {}
for x = -rX, rX do
for y = -rY, rY do
local v = getTopCreature({x = pos.x+x, y = pos.y+y, z = pos.z})
if v.type == 1 then
table.insert(ret, v.uid)
end
end
end
return ret
end
where should this be did you said cyko?
 
thank you for this great artwork!
I did improoved some things, like kicking afk players and so on...im using it on my server.
If needed can post here improovements.

But genial idea and nice code! Thanks again ;)
 
thank you for this great artwork!
I did improoved some things, like kicking afk players and so on...im using it on my server.
If needed can post here improovements.

But genial idea and nice code! Thanks again ;)

I made a new bomberman which is alot more like the real game, with sudden death after 2 minutes so players can't afk and it's alot easier to configure.
Might release it if people still want this. :)
 
Doesn't work 100% (0.3.6) When it's more then 2 people then it's kind of bugging, when someone goes suicide then the others don't teleports out @Cykotitan
 
works, finishes. but error while using.

[19/01/2014 13:45:42] [Error - TalkAction Interface]
[19/01/2014 13:45:42] In a timer event called from:
[19/01/2014 13:45:42] data/talkactions/scripts/bomb.lua:eek:nSay
[19/01/2014 13:45:42] Description:
[19/01/2014 13:45:42] (luaDoTileQueryAdd) Tile not found

anything on this?
 
When a bomb exploit close an other bomb, this one dont exploit creating a chain reaction.
How i can do this possible?
 
I have the same error...

data/talkactions/scripts/bomb.lua:eek:nSay
Description:
(luaDoTileQueryAdd) Thing not found

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

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

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

Help please!!
 
Back
Top