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

Solved command !aol AND !bless

nuelma123

New Member
Joined
Jun 6, 2011
Messages
66
Reaction score
1
Hello

How i can do this command in my ot? forgotten 1.2!! 10.90

thanks

I ADD +rep
 
create bless.lua in talkactions
Code:
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, 100000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), 28)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 100000 gold coins to get blessed!")
end
end
return TRUE
end
in talkactions.xml add this:
Code:
    <talkaction words="!bless" script="bless.lua" />

/reload talkactions and you have !bless

with aol ill write it mb in some minutes

Aol.lua in talkactions/scripts
Code:
local result = player:addItem(2173, 1)
   if result ~= nil then
     player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
   end
   return false
end
Code:
    <talkaction words="!aol" script="aol.lua" />

With this second one i'm not 100% shat will work but You can try
 
Last edited:
Back
Top