I Am New To Scripting
First Go To CreatureScripts/Scripts Add a New Xml Folder Add This
then go to CreatureScripts/creaturescripts And Add This
then go to CreatureScripts/scripts/login
add this
then go to monsters/YourMonster And Add This
Just rep++ me if i helped
Thanks To StreamSide
First Go To CreatureScripts/Scripts Add a New Xml Folder Add This
Code:
function onDeath(cid, corpse, deathList)
local remove = {x=1003, y=1005, z=7}
local id = 1444
local remove1 = getTileItemById(remove, id)
if doRemoveItem(remove1.uid, 1) then
addEvent(doCreateItem, 20 * 1000, id, 1, {x=1003,y=1005,z=7})
end
end
Code:
<event type="death" name="killmonster" event="script" value="anything.lua"/>
then go to CreatureScripts/scripts/login
add this
Code:
registerCreatureEvent(cid,'KillMonster')
then go to monsters/YourMonster And Add This
Code:
<script>
<event name="killmonster"/>
</script>
Just rep++ me if i helped
Thanks To StreamSide
Last edited: