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

Monsters Drop Books

Hell Hazor

New Member
Joined
Jun 9, 2009
Messages
11
Reaction score
0
Hello good afternoon, it is possible, monsters drop books with some writing configured ? for quests and RPG otserv.
thank you very much!!
 
In data\creaturescripts\scripts create script and name it item.lua then add this to it
Lua:
function onDeath(cid, corpse, deathList)
local item = doCreateItemEx(Your item ID)
doItemSetAttribute(uid, 'text', 'your text')
doAddContainerItemEx(corpse.uid, item)
return true
end

in data\creaturescripts\creaturescripts.xml add
XML:
<event type="death" name="item" event="script" value="item.lua"/>

Then in data\monster\Your monster.xml add
XML:
<script>
<event name="item"/>
</script>
Change Your item ID to your book id and your text to the text you want.
 
Back
Top