ghettobird
LUA newbie
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
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.
now goto creaturescripts.xml and post this
i hope you guys like it. eace:
- - - Updated - - -
please post here i really feel stupid that i have a lot of views and 0 posts...
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. eace:
- - - Updated - - -
please post here i really feel stupid that i have a lot of views and 0 posts...