• 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

I'm stupid, I should've used conditions for changing speed instead of boots of haste.
 
you were not stupid, just quick =p
we await for the update X)
 
yup this script will make a perfect mini game for any ots plus if you get it to work for TFS 3.5 Crying Damson i will use it for like a small competition so players can win prizes.
I tested the Bomberman system and it froze my server for like 1 min then it said that i killed my self, the error started when i typed "Z", sorry i don't have the error log since server crashed after that, but everything else worked fine.

P.S. Explain a little more on where to place the scripts also i could not find the item warcrystal id 10570.
 
How to use a bomb becouse i gived the Map to my OTS and nothing the players ale tp to the place but they cannot give bombs on the Floor and how to use this z;Z! Please help
 
Just say Z or z? Also make sure you configured it properly, in case you're not using same positions.
 
Just say Z or z? Also make sure you configured it properly, in case you're not using same positions.

Thanks it works :p but i have a question example: When somebody killing me then There is a Broadcast message.
Question:
The Broadcast message will send the broadcast to all players or only to the players in the Game??
 
Thanks it works :p but i have a question example: When somebody killing me then There is a Broadcast message.
Question:
The Broadcast message will send the broadcast to all players or only to the players in the Game??

All players will see this msg.
 
Cykotitan is a very good programmer, and exceptional good in support, compared to many other members, I like that.

But there are a few programming methodology cockblocks for the ones not experienced with this.

VERY important in your scripts, describe them good and make them human friendly.

= Use description.

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
}

May I ask, what is this? Is it the tiles which can not be destroyed by the bombs?

If that is the case, then what is this?
Lua:
exceptions = {
		{x=1014, y=1042, z=8},
		{x=1016, y=1042, z=8},
		{x=1018, y=1042, z=8},
		{x=1020, y=1042, z=8},
		{x=1022, y=1042, z=8},
		{x=1024, y=1042, z=8},
		{x=1026, y=1042, z=8},
		{x=1024, y=1050, z=8},
		{x=1026, y=1050, z=8}
	}

This would be ALOT more user friendly, if you made it something similar to this:
Lua:
-- Write the x,y,z coordinates of the titles 
-- that are not suppose to explode by 
-- bombs, and block bomb fire range.
exceptions = {
                {x=1014, y=1042, z=8},
                {x=1016, y=1042, z=8},
                {x=1018, y=1042, z=8},
                {x=1020, y=1042, z=8},
                {x=1022, y=1042, z=8},
                {x=1024, y=1042, z=8},
                {x=1026, y=1042, z=8},
                {x=1024, y=1050, z=8},
                {x=1026, y=1050, z=8}
        }
 
Last edited:
aren't those the positions where the players are spawned?
 
Why 8 coordinates then? Isn't it only 4 players?

Or is the first one where they stand before entering event, and 2nd one inside?
 
nope, you don't get it
remember that for each 4 players there is a empty square in front of them and next to them inside "arena"
cyko can explain it
 
I got this error message:
Lua:
> Broadcasted message: "Red Knight killed herself!".

[17:41:50.101] [Error - TalkAction Interface]
[17:41:50.101] In a timer event called from:
[17:41:50.102] data/talkactions/scripts/bomb.lua:onSay
[17:41:50.102] Description:
[17:41:50.102] (luaGetCreatureName) Creature not found

[17:41:50.103] [Error - TalkAction Interface]
[17:41:50.103] In a timer event called from:
[17:41:50.104] data/talkactions/scripts/bomb.lua:onSay
[17:41:50.104] Description:
[17:41:50.104] data/talkactions/scripts/bomb.lua:158: attempt to concatenate a b
oolean value
[17:41:50.104] stack traceback:
[17:41:50.105]  data/talkactions/scripts/bomb.lua:158: in function 'loopDir'
[17:41:50.105]  data/talkactions/scripts/bomb.lua:194: in function <data/talkact
ions/scripts/bomb.lua:111>

Using TFS 0.4

In order to leave room, you have to kill yourself. :|

This is what I have configured:
Lua:
-- Marked top left to bot right to mark the whole arena.
local t = {
	from = {x=1013, y=1041, z=8},
	to = {x=1027, y=1051, z=8},
	storage = {
		max = 10002,
		radius = 10003
	}

Lua:
local t, n, storage = {
-- Player position behind lever (before entering room)
	{x=990, y=1039, z=7},
	{x=990, y=1040, z=7},
	{x=990, y=1041, z=7},
	{x=990, y=1042, z=7}
}, { -- Where to teleport players when lever is pulled.
	{x=1013, y=1041, z=8},
	{x=1013, y=1051, z=8},
	{x=1027, y=1041, z=8},
	{x=1027, y=1051, z=8}
}, {
	placed = 10001,
	max = 10002,
	radius = 10003
}

Lua:
exceptions = {
-- Here i put all coordinates of the stones that are not suppose to explode by bomb. 
		{x=1014, y=1042, z=8},
		{x=1016, y=1042, z=8},
		{x=1018, y=1042, z=8},
		{x=1020, y=1042, z=8},
		{x=1022, y=1042, z=8},
		{x=1024, y=1042, z=8},
		{x=1026, y=1042, z=8},
		
		{x=1014, y=1044, z=8},
		{x=1016, y=1044, z=8},
		{x=1018, y=1044, z=8},
		{x=1020, y=1044, z=8},
		{x=1022, y=1044, z=8},
		{x=1024, y=1044, z=8},
		{x=1026, y=1044, z=8},
		
		{x=1014, y=1046, z=8},
		{x=1016, y=1046, z=8},
		{x=1018, y=1046, z=8},
		{x=1020, y=1046, z=8},
		{x=1022, y=1046, z=8},
		{x=1024, y=1046, z=8},
		{x=1026, y=1046, z=8},
		
		{x=1014, y=1048, z=8},
		{x=1016, y=1048, z=8},
		{x=1018, y=1048, z=8},
		{x=1020, y=1048, z=8},
		{x=1022, y=1048, z=8},
		{x=1024, y=1048, z=8},
		{x=1026, y=1048, z=8},
		
		{x=1014, y=1050, z=8},
		{x=1016, y=1050, z=8},
		{x=1018, y=1050, z=8},
		{x=1020, y=1050, z=8},
		{x=1022, y=1050, z=8},
		{x=1024, y=1050, z=8},
		{x=1026, y=1050, z=8}
	}

Lua:
-- Placed on a totally random place, impossible to reach.
local dummy = doCreateItem(10570, 1, {x=1008,y=1044,z=8})

Lua:
 -- temple pos, this was among the few 
-- sentences that was easy to understand.
temple = {x=1036, y=1065, z=7},

Lua:
-- Marked the bomberman roop, top line is coordinates 
--of top left courner, bot line is bottom right courner.
local t = {
	from = {x=1013, y=1041, z=8},
	to = {x=1027, y=1051, z=8},

What have I done wrong? D:

Another bug:
2822-bombbug.png

1. Random "fake" bombs on floor.
2. Bombs pass right through wall

Just to mention it again, Using TFS 0.4 r 3666

Request: make perhaps on lever script, that you can only participate if you are vocation ID x.

Then I can make my own "bomberman" vocation.
 
Last edited:
loop all online players But dont forget to break also

Pardon?

I removed a getplayer function in 158:
Lua:
doBroadcastMessage(getPlayerName(a[1]) .. " has won the match!", MESSAGE_STATUS_WARNING)

And replaced the line with this:
Lua:
doBroadcastMessage("Somebody has won the match!", MESSAGE_STATUS_WARNING)

And now I have these console errors:
Lua:
[18:26:39.660] Red Druid has logged in.
[18:26:47.156] Red Paladin has logged in.
> Broadcasted message: "Red Druid was killed by Red Paladin!".
> Broadcasted message: "Somebody has won the match!".

[18:28:26.829] [Error - TalkAction Interface]
[18:28:26.830] In a timer event called from:
[18:28:26.831] data/talkactions/scripts/bomb.lua:onSay
[18:28:26.831] Description:
[18:28:26.832] (internalGetPlayerInfo) Player not found when requesting player i
nfo #3

[18:28:26.833] [Error - TalkAction Interface]
[18:28:26.833] In a timer event called from:
[18:28:26.834] data/talkactions/scripts/bomb.lua:onSay
[18:28:26.834] Description:
[18:28:26.835] data/lib/050-function.lua:336: attempt to perform arithmetic on l
ocal 'level' (a boolean value)
[18:28:26.836] stack traceback:
[18:28:26.836]  data/lib/050-function.lua:336: in function 'doPlayerAddLevel'
[18:28:26.837]  data/talkactions/scripts/bomb.lua:159: in function 'loopDir'
[18:28:26.837]  data/talkactions/scripts/bomb.lua:184: in function <data/talkact
ions/scripts/bomb.lua:111>
> Broadcasted message: "Red Paladin killed himself!".

[18:29:02.913] [Error - TalkAction Interface]
[18:29:02.913] In a timer event called from:
[18:29:02.914] data/talkactions/scripts/bomb.lua:onSay
[18:29:02.914] Description:
[18:29:02.914] (luaGetCreatureName) Creature not found

[18:29:02.915] [Error - TalkAction Interface]
[18:29:02.915] In a timer event called from:
[18:29:02.916] data/talkactions/scripts/bomb.lua:onSay
[18:29:02.917] Description:
[18:29:02.918] data/talkactions/scripts/bomb.lua:126: attempt to concatenate a b
oolean value
[18:29:02.918] stack traceback:
[18:29:02.919]  data/talkactions/scripts/bomb.lua:126: in function <data/talkact
ions/scripts/bomb.lua:111>
 
Well nice idea, but the script can be improved a lot, exspecially the function boom, it's very messy.

But thx for releasing for everyone who can't script.. ^.^
 
Last edited by a moderator:
--
Can somebody change in this script that only the player that are in the Bomberman Game see Broadcast Message!??? --
Help please!
 
Well nice idea, but the script can be improved a lot, exspecially the function boom, it's very messy.
Then try doing it and see how you'll end up with it.

Also (@ZNote), the variable names in "config" were for internal usage - I didn't plan to release it at first.
loop all online players But dont forget to break also
hmm, try moving the local t under the function onSay?
You obviously don't know what you're talking about, don't try to mislead people.
 
Last edited:
Back
Top