• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

{Requesting} Custom Blessing.lua!

Moataz Hero

Titania.Sytes.Net
Joined
Jan 1, 2010
Messages
417
Reaction score
11
Location
Wars Land!
someone help me to make for me custom Blessing.lua like that script
for more info about that custom blessing.lua: i need it take money with doplayerremoveitem not with money!
i am waiting for that script soon as possible! help me guys!
this is the script with custom one do remove player item! i need blessing.lua like this!

PHP:
function onSay(cid, words, param) 
        if getPlayerItemCount(cid, 2160) >= 1 then 
        doPlayerAddItem(cid, 2173, 1) 
                doPlayerRemoveItem(cid, 2160, 1) 
        doPlayerSendTextMessage(cid, 19,"You've bought an amulet of loss for 1 crystal coin.") 
        doSendMagicEffect(getPlayerPosition(cid), 19) 
    else 
        doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.") 
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) 
    end 
    return true 
end

this one is working because i've made it doremoveplayeritem
so i want the blessing.lua too with doremoveplayeritem
anyone can make that for me?
waiting for the reply!​
 
PHP:
function onSay(cid, words, param)
for a = 1,5 do
if getPlayerBlessing(cid, a) then
return doPlayerSendCancel(cid,'You have already got one or more blessings!')
elseif doPlayerRemoveItem(cid, 2160, 1) == FALSE then
return doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.")
end
doPlayerAddBlessing(cid,a)
return doPlayerSendTextMessage(cid, 19,"You have been blessed by the gods!") 
end
return true
end
 
you are rox!!! but i need it with differnt colours :D like u have already got one or more blessings with red talktype and sorry u don't got 1 crystal with green and you have blessed by the gods with talktype orange and with effect 61 and with effects when he bought blessings
can u do that?
i am waiting for reply!
 
i am still need it with differnt colours like u have already got one or more blessings with red talktype and sorry u don't got 1 crystal with green and you have blessed by the gods with talktype orange and with effect 61 and with effects when he bought blessings
can u do that?
i am waiting for reply!
 
PHP:
function onSay(cid, words, param)
for a = 1,5 do
if getPlayerBlessing(cid, a) then
return doPlayerSendTextMessage(cid,16,"You have already got one or more blessings!")
elseif doPlayerRemoveItem(cid, 2160, 1) == FALSE then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, you don't got 1 crystal coin.")  
end
doPlayerAddBlessing(cid,a)
doSendMagicEffect(getPlayerPosition(cid), 61) 
return doPlayerSendTextMessage(cid, 19,"You have been blessed by the gods!") 
end
return true
end
 
the only thing wrong with that script, is the grammar. It should be
LUA:
doPlayerSendTextMessage(cid,16,"You have already gotten one or more blessings!")
and
LUA:
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, you don\'t have 1 crystal coin.")
 
Back
Top