• 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 !aol with effects ;)

Zatacka

Mapper, Basic Scripter
Joined
May 12, 2009
Messages
222
Reaction score
14
Location
Sweden
HTML:
function onSay(cid, words, param)

local pos = getPlayerPosition(cid)
local effectPositions = {
{x = pos.x - 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y + 1, z = pos.z},
{x = pos.x - 1, y = pos.y + 1, z = pos.z},
{x = pos.x, y = pos.y - 3, z = pos.z},
{x = pos.x, y = pos.y + 3, z = pos.z},
{x = pos.x - 3, y = pos.y, z = pos.z},
{x = pos.x + 3, y = pos.y, z = pos.z},
{x = pos.x - 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y + 2, z = pos.z},
{x = pos.x - 2, y = pos.y + 2, z = pos.z}
}
if doPlayerRemoveMoney(cid,10000) == true then
   doPlayerAddItem(cid,2173,1)
      doCreatureSay(cid,'AOL',TALKTYPE_ORANGE_1)
   doPlayerSendTextMessage(cid,19,"You are now protected")
	for _, ePos in ipairs(effectPositions) do
		doSendDistanceShoot(pos, ePos, 40)
		doSendMagicEffect(ePos, 29)
            end
   else
	doPlayerSendCancel(cid,"You don't have enough money.")
   doSendMagicEffect(getPlayerPosition(cid),2)
end 
return true
end
 
Back
Top