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

kill monster gain a outfit

fredde3436

Member
Joined
Jul 6, 2009
Messages
226
Reaction score
7
Is there a script out here somewhere when u kill a monster you gain example Assassins outfit. (Not addons)
 
I think this will work

Add this in the monster file
<script>
<event name="Getoutfit"/>
</script>

Add this in creaturescripts.xml
<event type="kill" name="Getoutfit" event="script" value="getoutfit.lua"/>

Add this in login.lua
PHP:
registerCreatureEvent(cid, "getoutfit")

Replace the old assassin outfit with these in outfits.xml
<outfit id="13" premium="yes" quest="11111" default="0">
<list gender="0" lookType="156" name="Assassin"/>
<list gender="1" lookType="152" name="Assassin"/>
</outfit>

Create a file called getoutfit.lua
PHP:
	function onKill(cid, target, lastHit)
	setPlayerStorageValue(cid,1111,1)
end
 
Back
Top