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

Lua how i make training monk heal their life faster

In the training monk xml monster script, change interval to make it faster and chance for more chance that it will happen.
 
<defense name="healing" interval="10" chance="100" min="999999999" max="999999999">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
 
Code:
<item id="11393" name="Ghost amulet">
        <attribute key="weight" value="80"/>
        <attribute key="slotType" value="necklace"/>
           <attribute key="healthGain" value="250"/>
        <attribute key="healthTicks" value="1000"/>
        <attribute key="manaGain" value="250"/>
        <attribute key="suppressDrunk" value="1"/>
        <attribute key="manaTicks" value="1000"/>
        <attribute key="magiclevelpoints" value="5"/>
        <attribute key="showattributes" value="1"/

what to i add to make it forever aol so when somone die he dont lose anything
<health now="999999999" max="999999999"/>
Thanks it worked
if i wanna ask something about f aol do i make new thread or ask here ?
 
as u like
Code:
<item id="11393" name="Ghost amulet">
        <attribute key="weight" value="80"/>
        <attribute key="slotType" value="necklace"/>
           <attribute key="healthGain" value="250"/>
        <attribute key="healthTicks" value="1000"/>
        <attribute key="manaGain" value="250"/>
        <attribute key="suppressDrunk" value="1"/>
        <attribute key="manaTicks" value="1000"/>
        <attribute key="magiclevelpoints" value="5"/>
        <attribute key="showattributes" value="1"/
what do i add more to make it forever aol so when someone die he dont lose anything
 
Code:
function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 11393) and getPlayerSkullType(cid) >= 4 then
doCreatureSetDropLoot(cid, false)
end
return true
end
Code:
<event type="death" name="Foreveraol" event="script" value="preparedeath.lua"/>

Code:
registerCreatureEvent(cid, "foreveraol")

and in items.xml add this
Code:
<attribute key="preventDrop" value="1" />
 
Last edited:
Code:
function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 2196) and getPlayerSkullType(cid) >= 4 then
doCreatureSetDropLoot(cid, false)
end
return true
end
Code:
<event type="death" name="Foreveraol" event="script" value="preparedeath.lua"/>

Code:
registerCreatureEvent(cid, "foreveraol")
where do i put the first and the second and the third one in ?
 
first one in date/creaturescripts/script
second one in date/creaturescripts.xml
third one in date/creaturescripts/loin.lua
 
first one in date/creaturescripts/script
second one in date/creaturescripts.xml
third one in date/creaturescripts/loin.lua
[10/12/2014 22:51:49] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/login.lua:13: unexpected symbol near '<'
[10/12/2014 22:51:49] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
[10/12/2014 22:51:50] data/creaturescripts/scripts/login.lua:13: unexpected symbol near '<'
[10/12/2014 22:51:50] [Warning - Event::loadScript] Event onPrepareDeath not found (data/creaturescripts/scripts/Forever Aol.lua)
[10/12/2014 22:51:50] [Error - LuaScriptInterface::loadFile] cannot open data/creaturescripts/scripts/preparedeath.lua: No such file or directory
[10/12/2014 22:51:50] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/preparedeath.lua)
[10/12/2014 22:51:50] cannot open data/creaturescripts/scripts/preparedeath.lua: No such file or directory
that happened when i reload my server
 
be sure u copied everything right " u make new lua and rename for
preparedeath and then post script in it " and look what u copied in login.lua
 
Back
Top