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

NPC to MONSTER and vice versa

Whiskey

a Bear.
Joined
Feb 19, 2009
Messages
27
Reaction score
0
Is it possible to create a npc, which could turn into monster after specific dialog? (yeah, dissaphere and summon a monster) And reverse, to create a npc after slaying the monster?

I think many rpg quests could improve a lot with such script. Just think about it - angering some npc to the point of fighting, choosing a side of conflict between some npc, enemy giving up after the fight and a lot of interesting stuff like that.
 
Code:
if (msg == "kurwa") then
	doSummonCreature("some name", getNpcPosition())
	doRemoveCreature(getNpcCid())
end

Code:
function onKill(cid, target)
	if (getCreatureName(target):lower() == "some name") then
		doCreateNpc("some name", getCreaturePosition(target))
	end
	return true
end
 
You could simply teleport the player to somewhere else, where one of them is spawned, and when he dies you get tped back?
 
Thanks Chojrak, I think I know how to do it now.

watkins577 - well, that's some sort of sollution, but it's not the way I want it. Thanks anyway.
 
Back
Top