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

Windows When player dies.. there is no dead human on the ground.. why where is it?

ziomek14b

New Member
Joined
Dec 26, 2007
Messages
98
Reaction score
0
When player dies.. there is no dead human on the ground.. why where is it? help me
and i got most online/no lifers table and its not counting time.. why
 
Last edited:
Try it

Creaturescripts.xml
Lua:
<event type="preparedeath" name="Amulet of loss" event="script" value="aol.lua"/>

aol.lua
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
		doCreatureSetDropLoot(cid, false)      
         else 	
                doCreatureSetDropLoot(cid, true)
        end
return true
end

creaturescripts/scripts/login.lua

Lua:
	registerCreatureEvent(cid, "forever amulet")


:)
 
Last edited:
Hmm

aol.lua
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
		doCreatureSetDropLoot(cid, false)    
                doRemoveItem(2196, 1)
         else 	
                doCreatureSetDropLoot(cid, true)
        end
return true
end

=p
 
Lua:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) then
   doPlayerAddItem(cid,2173,1)
   doSendMagicEffect(getPlayerPosition(cid),12)
   doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You've bought an amulet of loss!")
else
	doPlayerSendCancel(cid,"You don't have enough money.")
	doSendMagicEffect(getPlayerPosition(cid),2)
end
return 1
end

and items.xml

Lua:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="1" />
		<attribute key="preventDrop" value="1" />
	</item>
 
Back
Top