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

Blessings

Ific

New Member
Joined
Apr 14, 2009
Messages
209
Reaction score
0
Location
My Paradise
Hello, I wanna put a command for blessings, for exemple:

!buybless

anyone can tell me how I can do it?;)
 
I think yes this is a script used for Narozia 8.31 i think it should work perfect with TFS anyway here's the .lua you have to add it on Talkactions;


in the lua script:

-<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, 70000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 70k to get blessed!")
end
end
return 1
end->


In talkactions.xml
<talkaction words="!bless" script="server/bless.lua" />
 
Back
Top