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

CreatureEvent Free bless for low levels!

ghettobird

LUA newbie
Joined
Aug 17, 2013
Messages
679
Reaction score
132
Location
OTland
Hello Otlanders, it's me again, as the title says i'm releasing a script that gives free bless to low players, could be useful so you don't find a lvl 8 go back to lvl 7 etc...

hope you like it!


in creaturescripts/scripts post this
Lua:
local freeBlessMaxLevel = 80

function onLogin(cid)
	if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then
		for b=1, 5 do
			doPlayerAddBlessing(cid, b)
		end
		doCreatureSay(cid, 'BLESS', TALKTYPE_ORANGE_1)
		doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE)
	end
	return true
end

well i did as ninja said and i used words instead of numbers in magiceffects.

now go to login.lua because we need to register it.
Lua:
 registerCreatureEvent(cid, "freebless")

now goto creaturescripts.xml and post this
Lua:
 <event type="login" name="freebless" event="script" value="urscriptname.lua"/>


i hope you guys like it. :peace:

- - - Updated - - -

please post here i really feel stupid that i have a lot of views and 0 posts...
 
please post here i really feel stupid that i have a lot of views and 0 posts...

Please do not look at this the wrong way.

We know you're trying to contribute, which is great!
It is great to have people learn and release scripts.

But some may have a lot of views, but no posts. That's okay, at least someone is going to look at it.
But then again, when scripts like these that have been posted plenty of times already, you might not get a response at all.

Keep up the great work though!
 
Cool idea :)

Code:
local freeBlessMaxLevel = 80
 
function onLogin(cid)
	if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then
		for b=1, 5 do
			doPlayerAddBlessing(cid, b)
		end
		doCreatureSay(cid, 'You got free bless, because your level lower than 80', TALKTYPE_ORANGE_1)
		doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE)
		elseif(getPlayerBlessing(cid,1)) then
	doCreatureSay(cid, 'You are bleesed!', TALKTYPE_ORANGE_1)
	else
	doCreatureSay(cid, 'You are not bleesed. type !bless', TALKTYPE_ORANGE_1)
	end
	return true
end
 
thanks nevix, glad you liked it :)

also i'm trying to examine myself with LUA scripts so if you got any request post in my thread "Ghettobird's scripts" thanks ^_^
 
I know this is very outdated but maybe someone still needs my script :p, so I'm bumping it again
 
It doesnt work for me on tfs 1.0. This one works great for free low level bless if anyone need:
Code:
function onLogin(cid)
if(getPlayerLevel(cid) < 80) then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doCreatureSay(cid, 'You are bleesed!', TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYDAMAGE)
end
return true
end
 
Cool idea :)

Code:
local freeBlessMaxLevel = 80
 
function onLogin(cid)
    if(getPlayerLevel(cid) <= freeBlessMaxLevel and not getPlayerBlessing(cid,1)) then
        for b=1, 5 do
            doPlayerAddBlessing(cid, b)
        end
        doCreatureSay(cid, 'You got free bless, because your level lower than 80', TALKTYPE_ORANGE_1)
        doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYDAMAGE)
        elseif(getPlayerBlessing(cid,1)) then
    doCreatureSay(cid, 'You are bleesed!', TALKTYPE_ORANGE_1)
    else
    doCreatureSay(cid, 'You are not bleesed. type !bless', TALKTYPE_ORANGE_1)
    end
    return true
end

You have to put in this script not to use in account manager and also> = 3 (Gm, Gods)?
 
Back
Top