• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request]Broadcast script

Arrish

New Member
Joined
May 28, 2009
Messages
320
Reaction score
1
Location
Sweden
Hi guys , the broadcast script doesnt work for me :S i have 2 problems with it first of all when i spawn the broadcast on the mapeditor with my map and when i save and start the server i cant see him there :S and i get a error with the script which unable it to load, i tried to fix it but a noob like me just messed it even more :P
So i need someone who attach the script here for me.
I give rep..
Should me really appreciated.
Regards
 
Last edited:
Hey thx armin , but you must have misunderstood, i want a broadcast npc which you talk with to broadcast a message for a price ..
Thx for help!
 
Yes i found this one
Make a lua and put this on it
function onSay(cid, words, param)
local money = 30000
if param ~= nil then
if doPlayerRemoveMoney(cid,money) == TRUE then
doBroadcastMessage("".. getCreatureName(cid) .."[".. getPlayerLevel(cid) .."]:".. param .."",MESSAGE_STATUS_CONSOLE_RED)
else
doPlayerSendCancel(cid,"You don't have enough money.")
end
else
doPlayerSendCancel(cid,"Param can't be nil.")
end
return FALSE
end

But when i do that , and i put the talkaction in talkaction (<talkaction words="!bc" script="bc.lua"/>)
and i try it on i get this error
data/talkactions/scripts/bc.lua:5: attempt to call global 'doBroadcastMessage' (a nil value)
stack traceback:
data/talkactions/scripts/bc.lua:5: in function <data/talkactions/scripts/bc.lua:1>

So can you please help me ? thx
 
I tried the script you told me , but when i say for example broadcast hi , it says /b balbla says hi , and i tried to change the acces"" ti acces"5"
but still doesnt work ,
 
Back
Top