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

Solved if kill monster...

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hello guys...
I need a script here..


If i kill "Koshei The Deathless", i will be teleported to "1000,1000,7"

Can someone do this?
Thx! :)
 
Last edited:
Code:
local t = {
	teleportTo = {x=1000,y=1000,z=7},
	monsterName = 'koshei the deathless'
}
function onKill(cid, target, flags)
	if getCreatureName(target):lower() == t.monsterName:lower() then
		doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
		doTeleportThing(cid, t.teleportTo)
		doSendMagicEffect(t.teleportTo, CONST_ME_TELEPORT)
	end
	return true
end
 
Back
Top