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

amulets are infinite?

Sir MoX

New Member
Joined
Jan 14, 2009
Messages
285
Reaction score
1
hi, I have a problem that I dont know how to solve it, in my server the amulets and things like jewerly are infinite, has only 1 charge that never its spend, if someone could help me please or say me that It cant be solved please =)

also my ice rapier is infinite!

2) i would like if someone give me an advise how do I put good effects when someone level up
 
2) Go to your mods folder, create advance-effect.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="advance-effect" version="1.0" author="slawkens" contact="[email protected]" enabled="yes">
	<config name="advance-effect-config"><![CDATA[
		-- should magic effect by displayed? Otherwise, only advance words are shown
		effect = "yes"

		-- magic effect id (type)
		effectType = 30
	]]></config>

	<event type="advance" name="advance-effect-event" event="script"><![CDATA[
		domodlib('advance-effect-config')

		local config = {
			effect = getBooleanFromString(effect),
			effectType = effectType
		}

		function onAdvance(cid, skill, oldLevel, newLevel)
			if(config.effect and newLevel % 10 == 0) then
				for _, pos in pairs(getArea(getCreaturePosition(cid), 1, 1)) do
					doSendMagicEffect(pos, config.effectType)
				end
			end

			doCreatureSay(cid, SKILL_NAMES[skill]:gsub("%a", string.upper, 1) .. " UP [" .. newLevel .. "]", TALKTYPE_ORANGE_1)
			return true
		end
	]]></event>

	<event type="login" name="advance-effect-login" event="buffer"><![CDATA[
		registerCreatureEvent(cid, "advance-effect-event")
		_result = true
	]]></event>
</mod>
 
If you are creating items with your god char that could be the reason why. If you say /i amulet of loss, it will create an aol with 100 charges, although you can't see them, it's still there. So try using /i amulet of loss, 1. Dunno if that's the problem though.
 
Collz: this is not the problem... when a normal player kill a monster, in the loot founds a amulet that has only 1 charge and have no limit


santigggg where Is the folder mods?
 
Last edited:
  1. Add this in %serverfolder%\data\creaturescripts\scripts\playerdeath.lua:
    Code:
    if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET_ITEMID then
    doPlayerRemoveItem(cid, AMULET_ITEMID, 1)
    end
    just near:
    Code:
    function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
 
  1. Add this in %serverfolder%\data\creaturescripts\scripts\playerdeath.lua:
    Code:
    if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AMULET_ITEMID then
    doPlayerRemoveItem(cid, AMULET_ITEMID, 1)
    end
    just near:
    Code:
    function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)

Terrible fix, fail
 
Terrible fix, fail

Well that's how I fixed the amulet of loss problem in my server. Also, he did not specify which amulets were bugged. BTW, I don't see you helping in any way.

If it's a problem with another amulet [[-- silver, bronze, stone skin, elven, protection, terra, glacier, magma, sacred tree, leviathan, shockwave --]] then post your 'items.xml' file or make sure the amulets I mentioned above have these attributes:
Code:
        <attribute key="charges" value="--charge--" />
        <attribute key="showcharges" value="--count--" />

EDIT:
@grehy: See that? It worked. Pwnd.
 
Last edited:

Similar threads

  • Question Question
RevScripts items texture
Replies
10
Views
754
Back
Top