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

Add loot onKill

marcuz90

New Member
Joined
Apr 19, 2011
Messages
48
Reaction score
0
Can anyone script an add-loot-on-kill script??

It doesn't matter in what way its done.

Thx.
 
I've tried both corpse and corpse.uid, is there something wrong with this code??
( killing rotworms, no reward )
Code:
function onDeath(cid, corpse, deathList)
	item = doAddContainerItem(corpse, 2180, 1)
	doItemSetAttribute(item, "description", "Hello")
	return true
end
 
I've tried both corpse and corpse.uid, is there something wrong with this code??
( killing rotworms, no reward )
Code:
function onDeath(cid, corpse, deathList)
	item = doAddContainerItem(corpse, 2180, 1)
	doItemSetAttribute(item, "description", "Hello")
	return true
end
it has to be registered in rotworm.xml
 
I added

Code:
<script>
	<event name="addLoot"/>
</script>

to rotworm.xml, and tried both my code and the code Cykotitan linked but it still doesn't work :S

no errors
 
Back
Top