Hey, I have problem with INQ bosess. When the boss is killed then his body doesn't appear. Instead of the body appears only teleport. i need body also.
creaturescripts/scripts/inquisitionPortals
for example one boss:
creaturescripts/scripts/inquisitionPortals
Code:
function onDeath(cid, corpse, killer)
registerCreatureEvent(cid, "inquisitionPortals")
local creaturename = getCreatureName(cid)
--- positions where the teleports will be created:
local ushuriel_in_pos = {x=246, y=351, z=12, stackpos=2}
local annihilon_in_pos = {x=637, y=472, z=13, stackpos=2}
local hellgorak_in_pos = {x=335, y=581, z=10, stackpos=2}
local madareth_in_pos = {x=340, y=460, z=13, stackpos=2}
local zugurosh_in_pos = {x=390, y=525, z=13, stackpos=2}
local brothers_in_pos = {x=505, y=345, z=13, stackpos=1}
--- positions where the teleports will be teleported you:
local ushuriel_to_pos = {x=172, y=559, z=13, stackpos=1}
local annihilon_to_pos = {x=294, y=681, z=13, stackpos=1}
local hellgorak_to_pos = {x=255, y=467, z=13, stackpos=1}
local madareth_to_pos = {x=287, y=365, z=13, stackpos=1}
local zugurosh_to_pos = {x=314, y=474, z=13, stackpos=1}
local brothers_to_pos = {x=408, y=413, z=13, stackpos=1}
local time_to_pass = 180 -- in seconds
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear."
if creaturename == 'Ushuriel' then
teleport = doCreateTeleport(tpID, ushuriel_to_pos, ushuriel_in_pos)
doSendMagicEffect(ushuriel_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))
elseif creaturename == 'Annihilon' then
teleport = doCreateTeleport(tpID, annihilon_to_pos, annihilon_in_pos)
doSendMagicEffect(annihilon_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))
elseif creaturename == 'Madareth' then
teleport = doCreateTeleport(tpID, madareth_to_pos, madareth_in_pos)
doSendMagicEffect(madareth_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))
elseif creaturename == 'Hellgorak' then
teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)
doSendMagicEffect(hellgorak_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))
elseif creaturename == 'Zugurosh' then
teleport = doCreateTeleport(tpID, zugurosh_to_pos, zugurosh_in_pos)
doSendMagicEffect(zugurosh_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))
elseif creaturename == 'Latrivan' then
teleport = doCreateTeleport(tpID, brothers_to_pos, brothers_in_pos)
doSendMagicEffect(brothers_in_pos, doEffect)
doCreatureSay(cid, message, TALKTYPE_ORANGE_1)
addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))
end
end
function removeTeleportInUshurielWard()
if getThingfromPos({x=246, y=351, z=12, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=246, y=351, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=246, y=351, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInAnnihilonWard()
if getThingfromPos({x=637, y=472, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=637, y=472, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=637, y=472, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInHellgorakWard()
if getThingfromPos({x=335, y=581, z=10, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=335, y=581, z=10, stackpos=1}).uid,1)
doSendMagicEffect({x=335, y=581, z=10, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInMadarethWard()
if getThingfromPos({x=340, y=460, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=340, y=460, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=340, y=460, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInZuguroshWard()
if getThingfromPos({x=390, y=525, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=390, y=525, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=390, y=525, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
function removeTeleportInBrothersWard()
if getThingfromPos({x=505, y=345, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=505, y=345, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=505, y=345, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
for example one boss:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Annihilon" nameDescription="Annihilon" race="fire" experience="10000" speed="310" manacost="0">
<health now="40000" max="40000"/>
<look type="12" head="19" body="104" legs="96" feet="96" corpse="6068"/>
<targetchange interval="5000" chance="8"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="85"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="195" attack="195"/>
<attack name="death" interval="1000" chance="10" length="8" spread="0" min="0" max="-600">
<attribute key="areaEffect" value="mortarea"/>
</attack>
<attack name="death" interval="2000" chance="15" target="0" radius="4" min="-200" max="-700">
<attribute key="areaEffect" value="icearea"/>
</attack>
<attack name="physical" interval="3000" chance="18" radius="5" target="1" min="-50" max="-255">
<attribute key="areaEffect" value="groundshaker"/>
</attack>
<attack name="fire" interval="2000" chance="15" radius="6" target="1" min="-50" max="-600">
<attribute key="areaEffect" value="firearea"/>
<attribute key="shootEffect" value="fire"/>
</attack>
</attacks>
<defenses armor="60" defense="55">
<defense name="healing" interval="1000" chance="14" min="400" max="900">
<attribute key="areaEffect" value="greenshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element icePercent="20"/>
<element deathPercent="20"/>
<element firePercent="-15"/>
</elements>
<immunities>
<immunity lifedrain="1"/>
<immunity invisible="1"/>
</immunities>
<script>
<event name="inquisitionPortals"/>
</script>
<loot>
<item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2148" countmax="50" chance1="100000" chancemax="0"/>
<item id="2150" countmax="20" chance1="5515" chancemax="0"/> --Small amethyst
<item id="2520" chance="7000"/> --Fire AXe
<item id="8929" chance="900"/> --Stomper
<item id="7431" chance="1000"/> -- Demonbone
<item id="8877" chance="1200"/> -- Lavos Armor
<item id="8928" chance="1200"/> --
<item id="1987" chance="100000">
<inside>
<item id="2158" chance="4300"/> --Blue gem
<item id="2520" chance="7600"/> --Demon shield
<item id="2165" chance="10000"/> --stealth ring
</inside>
</item>
</loot>
</monster>