1
[CreatureEvents] Ayuda Con un monster Vie Ago 28, 2020 12:40 pm
smith24

Miembro

ejemplo
al matar 1 necromancer salga un warlock y luego un infernalist ayuda plx
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
function onDeath(cid, corpse, deathList)
if isPlayer(cid) or getCreatureMaster(cid) then return true end
local m = getCreatureName(cid)
local pos = getThingPosition(cid)
if m == "White Deer" then ------ monster que tendra que ser matado para sumonear lo demas
if math.random(10) == 1 then
addEvent(doCreateMonster, 30, "Enraged White Deer", pos)
doCreatureSay(cid, "The white deer summons all his strength and turns to fight!", TALKTYPE_ORANGE_1)
elseif math.random(10) == 2 then
addEvent(doCreateMonster, 30, "Desperate White Deer", pos)
addEvent(doCreateMonster, 30, "Elf Scout", pos) ------ monster que se sumoneara
addEvent(doCreateMonster, 30, "Elf Scout", pos) ------ monster que se sumoneara
doCreatureSay(cid, "The elves have arrived to protect the white deer!", TALKTYPE_ORANGE_1)
else
addEvent(doCreateMonster, 30, "Desperate White Deer", pos) ------ monster que se sumoneara
doCreatureSay(cid, "The white deer desperately tries to escape!", TALKTYPE_ORANGE_1)
end
end
end
<event type="death" name="WhiteDeerDeath" script="whiteDeerDeath.lua" />
poncex escribió:de casualidad existe para otx?
poncex escribió:lo probe, pero no sucede nada :/
poncex escribió:lo hice pero aun asi no funciona
<event type="kill" name="onKill_spawn_other_monster" event="script" value="onKill_spawn_other_monster.lua"/>
registerCreatureEvent(cid, "onKill_spawn_other_monster")
local creatureName = "cave rat"
local newCreature = "rat"
local creatureSay = "I am saying something"
function onKill(cid, target, damage, flags)
if isPlayer(target) then
return false
end
local name = getCreatureName(target):lower()
if name ~= creatureName:lower() then
return false
end
local position = getCreaturePosition(target)
doCreatureSay(cid, creatureSay, TALKTYPE_ORANGE_1, false, 0, position)
addEvent(doCreateMonster, 0, newCreature, position)
return true
end
TibiaFace » Descargas de Otserv y Ayuda » Pedidos de Scripts » [CreatureEvents] Ayuda Con un monster
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.
|
|