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

Scripts (TalkActions) For AOL, and for broadcasting

8674011

New Member
Joined
Jun 21, 2010
Messages
160
Reaction score
3
Location
The House
Could someone give me a script for when you say !aol, it gives you one for 10,000 gp and a script for when you say !broadcast(meassage) it will broadcast the message for 10 mil




Thanks :D
 
amulet of loss!
talkactions.xml
Code:
	<talkaction words="!aol" event="script" value="aol.lua"/>

aol.lua
LUA:
function onSay(cid, words, param, channel)
if (getPlayerItemCount(cid, 2160) * 10000 + getPlayerItemCount(cid, 2152) * 100 + getPlayerItemCount(cid, 2148)) >= 10000 then
doPlayerSendTextMessage(cid,25,"Amulet of loss added to your inventory.")
doPlayerRemoveMoney(cid, 10000)
doPlayerAddItem(cid, 2173, 1)
else
doPlayerSendTextMessage(cid,24,"You don't have enough money.")
end
end
 
LUA:
function onSay(cid,words,param)
local cost = 10000000
	if doPlayerRemoveMoney(cid,cost) then
		doBroadcastMessage(cid,param)
	else
		doPlayerSendTextMessage(cid,20,'You don\'t have enough money.')
	end
	return true
end

broadcast
 
Back
Top