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

Blessing book

niti

New Member
Joined
Nov 22, 2009
Messages
258
Reaction score
2
Hello every1 , I'm using a script " blessedbook" but it doesn't work then i click on the book im using tfs 0.3.6 Here's my script im using if u help me out i'll give rep+

local cfg = {
bless = { 1, 2, 3, 4, 5 },
level = 8
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
for i = 1, table.maxn(cfg.bless) do
if(getPlayerBlessing(cid, cfg.bless)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doCreatureSay(cid, "You have already been blessed.", TALKTYPE_ORANGE_1)
return true
end
end
if getPlayerLevel(cid) >= cfg.level then
for i = 1, table.maxn(cfg.bless) do
doPlayerAddBlessing(cid, cfg.bless)
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been blessed by the gods.")
end
return true
end

and ofcourse it's in Actions.xml too.

You might say now " write in a tag " but idk how to do that.. ! XD
 
LUA:
local b = 1,5
local level = 8

function onUse(cid, item, frompos, item2, topos) 
	if getPlayerBlessing(cid, b) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		doCreatureSay(cid, "You have already been blessed.", TALKTYPE_ORANGE_1)
	else
		if getPlayerLevel(cid) >= level then
		doPlayerAddBlessing(cid, b)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
		doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been blessed by the gods.")
	    end
	end
return true
end
try that
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local level = 8
for a = 1,5 do
if getPlayerBlessing(cid, a) then
return doPlayerSendCancel(cid,'You have already got one or more blessings!')
elseif getPlayerLevel(cid) < level then
return doPlayerSendCancel(cid, 'You need level '..level..' or more to use this item!')
end
doPlayerAddBlessing(cid,a)
return doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!')
end
return TRUE
end
 
haha they fail as scripter's :)

pretty sure im a better scripter then you, just some servers now require more then just adding blessings you retard. Blessing is a reduction in exp loss/skill loss. Its not the reduction of Item loss. Never was meant that way. Dumbass.

ull be all set with this.
LUA:
local b = 1,5
local level = 8
 
function onUse(cid, item, frompos, item2, topos) 
	if getPlayerBlessing(cid, b) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		doCreatureSay(cid, "You have already been blessed.", TALKTYPE_ORANGE_1)
	else
		if getPlayerLevel(cid) >= level then
		doPlayerAddBlessing(cid, b)
		doCreatureSetDropLoot(cid, false)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
		doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", TEXTCOLOR_RED)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been blessed by the gods.")
	    end
	end
return true
end
 
Back
Top