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

a script please...

Elizabeth

New Member
Joined
Jul 3, 2009
Messages
115
Reaction score
2
hello

please can someone make me a script for dont loss the items even with red skull??

its for use a amulet.. i think is creature event, idk

please dont do a mod, i tried with a mod and ive get a prolem with the login time =/

if someone can help me please.. rep+++

thanks ^_^

TFS 0.3.5
 
Last edited:
in craturesctipt paste this
Code:
<event type="preparedeath" name="onPrepareDeath" event="script" value="preparedeath.lua"/>
then go make a file in creaturescript-->script named preparedeath.lua.
paste this in it:
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
    if isPlayer(cid) == true then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                doCreatureSetDropLoot(cid, false)       
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA) 
        return true
        end
    end
    return true
end

Then in your items.xml paste this
Code:
 <item id="2196" article="a" name="Forever Aol">
  <attribute key="weight" value="420"/>
  <attribute key="slotType" value="necklace"/>
  <attribute key="description" value="No more normal aols here is the big boom have fun."/>
 </item>
 
Back
Top