• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS 1.0] Killing "x" Monster Causes "y" Monster To Spawn

Jaed Le Raep

★Gaeming★
Joined
Sep 3, 2007
Messages
1,298
Reaction score
446
Hey guys, could someone create a script template similar to what the title suggests? Also, please include a position config for the "Y" monster spawn location.
 
Last edited:
"rat.lua"
Code:
function onKill(cid, target)
if(string.lower(getCreatureName(target)) == "rat") then
doSummonCreature("cave rat", {x = 1, y = 2, z = 3})
end
return true
end

Add to login.lua
player:registerEvent("rat")

add to creaturescripts.xml
<event type="kill" name="rat" script="others/rat.lua"/>

Haven't tested but it should work.
 
Back
Top