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

request !bless script

Next time post in the right section, http://otland.net/f132/


Code:
function onSay(cid, words, param)
 
	if getPlayerBlessing(cid,5) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
	else
		if doPlayerRemoveMoney(cid, 50000) == TRUE then
			for i = 1,5 do
				doPlayerAddBlessing(cid,i)
			end
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings!")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 50,000 gp in backpack for blessings.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA)
		end
	end
	return TRUE
end

Code:
<talkaction words="!bless" script="bless.lua"/>
 
Next time post in the right section, Requests


Code:
function onSay(cid, words, param)
 
	if getPlayerBlessing(cid,5) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
	else
		if doPlayerRemoveMoney(cid, 50000) == TRUE then
			for i = 1,5 do
				doPlayerAddBlessing(cid,i)
			end
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings!")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 50,000 gp in backpack for blessings.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA)
		end
	end
	return TRUE
end

Code:
<talkaction words="!bless" script="bless.lua"/>

not work , when player died he lose items if he didnot use aol
 
Test this

Code:
function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE then
                if getPlayerMoney(cid) >= 150000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 150000)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed.")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
return true
end


Code:
<talkaction words="!blessings" script="blessings.lua" />
 
Last edited:
Code:
function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE then
                if getPlayerMoney(cid) >= 150000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 150000)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed.")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
return true
end


Code:
<talkaction words="!blessings" script="blessings.lua" />


i think there is action or something for it ?? i only use talkaction and i tested more than 10 scripts and not work!
 
Then you're doing something wrong xD..
You get any error on console when executing command?

haha the problem not from !bless script ...

i slove some of it by looking in config.lua

blessings = fasle
i change to true but problem now that it lost 10% from skills and down 2 or 1 lvl

i want the script to lose 2% from skill and 30% of lvl :)
 
Back
Top