Tormented Being
Member
can anyone help fix this script? its for aries 8.1 xml
i get the error LuaDoPlayerSay<>. Player not found
i get the error LuaDoPlayerSay<>. Player not found
Lua:
local listcost = 1
function onSay(cid, words, param)
local name = getCreatureName(cid)
if(param == "") then
return TRUE
end
if ((isPlayer(cid) == 1) and doPlayerRemoveItem(cid, 7910, 1)) == TRUE then
doPlayerSay("["..name.."]: "..param, MESSAGE_EVENT_ADVANCE)
else
doPlayerSendCancel(cid, "You need "..listcost.."epic peanut to broadcast a message. ")
return FALSE
end
end