Hatsune Miku
Intermediate OT User
- Joined
- Jan 22, 2009
- Messages
- 370
- Reaction score
- 139
So I was on premium board to check if there was something cool and I saw a guy asking for a Blessed forever aol
He wanted to have a Forever aol that blesses you, unfortunately I don't have a forever aol and cba to find a good one
so I just made the "Bless" part
Works perfectly on TFS 0.3.6 V8.2 (Cyko version
)
So in movements.xml
Save this as blessedamulet.lua
The script file:
At --Forever aol script
You can put your aol script without
And it should probably work
if not just post your Forever aol script and I will fix it
(Don't bother posting me errors that occured after you put in your Forever aol script
cause I won't know what wrong anyway.)
If you have any errors with the script as it is right now
Post me your errors
altho I'm pretty sure it works fine 




So in movements.xml
XML:
<!-- Bless amulet -->
<movevent type="Equip" itemid="XXXX" event="script" value="blessedamulet.lua"/>
Save this as blessedamulet.lua
The script file:
LUA:
function onEquip(cid, item, slot)
if getPlayerBlessing(cid,5) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have already been blessed")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_GREEN)
else
for i = 1,5 do
doPlayerAddBlessing(cid,i)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have received blessings!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA)
end
--Forever aol script :P
return true
--Made by Xedite
end
At --Forever aol script

You can put your aol script without
LUA:
function onEquip(cid, item, slot)



If you have any errors with the script as it is right now


