need help on this aol script
its not giving my aol back and i actuly lose the aol ahhaha?
and also
what do i do to get this script to work its giving me console errors?
Code:
function onPrepareDeath(cid, killer)
if getPlayerItemCount(cid, 2173) >= 1 and getPlayerSkullType(cid) ~= 4 then
doSetCreatureDropLoot(cid, 0)
end
end
its not giving my aol back and i actuly lose the aol ahhaha?
and also
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="War Level Minimum" version="1.0" author="Syntax" contact="[email protected]" enabled="yes">
<description>
If player loggs in and is below set level then he is reset to that level.
</description>
<config name="buypremium_config"><![CDATA[
config = {
level = 120
}
]]></config>
<event type="login" name="War Level Minimum" event="script"><![CDATA[
function onLogin(cid)
if getPlayerLevel(cid) < config.level then
doPlayerAddExperience(cid, getExperienceForLevel(config.level))
end
return true
end
]]></event>
</mod>
what do i do to get this script to work its giving me console errors?