Just say Z or z? Also make sure you configured it properly, in case you're not using same positions.
Thanks it works 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.
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
}
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}
}
-- 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}
}
> 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>
-- 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
}
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
}
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}
}
-- Placed on a totally random place, impossible to reach.
local dummy = doCreateItem(10570, 1, {x=1008,y=1044,z=8})
-- temple pos, this was among the few
-- sentences that was easy to understand.
temple = {x=1036, y=1065, z=7},
-- 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},
loop all online players But dont forget to break also
doBroadcastMessage(getPlayerName(a[1]) .. " has won the match!", MESSAGE_STATUS_WARNING)
doBroadcastMessage("Somebody has won the match!", MESSAGE_STATUS_WARNING)
[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>
Then try doing it and see how you'll end up with it.Well nice idea, but the script can be improved a lot, exspecially the function boom, it's very messy.
loop all online players But dont forget to break also
You obviously don't know what you're talking about, don't try to mislead people.hmm, try moving the local t under the function onSay?
You "pwned" yourself in the previous posts.help him then smartass, aint that ur script? or did i miss that part? ;sssss pwned?