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

Desperately searching for a solution this "creature dead create tp" script

Status
Not open for further replies.

christiandb

Member
Joined
Feb 5, 2008
Messages
2,469
Reaction score
5
Location
010
Hey.

I hope someone can finally help me since I've tried like 5 different scripts and it still doesn't want to work. If you need more info about some scripts or somethin please add me on msn ([email protected])
Here is my inquisition.lua:
Code:
local config = {
	message = "Go into the teleporter in 3 minutes, else it will disappear.",
	timeToRemove = 180, -- seconds
	teleportId = 1387,
	bosses = { -- Monster Name, Teleport To Position, Teleport Position
		["Ushuriel"] = { { x = 33137, y = 31502, z = 7 }, { x = 33094, y = 31453, z = 10, stackpos = 1 } },
		["Annihilon"] = { { x = 33846, y = 31282, z = 7 }, { x = 33718, y = 31271, z = 8, stackpos = 1 } },
		["Hellgorak"] = { { x = 33641, y = 31275, z = 7 }, { x = 33655, y = 31156, z = 7, stackpos = 1 } },
		["Madareth"] = { { x = 33306, y = 31368, z = 7 }, { x = 33410, y = 31385, z = 7, stackpos = 1 } },
		["Zugurosh"] = { { x = 33263, y = 31446, z = 7 }, { x = 33344, y = 31435, z = 7, stackpos = 1 } },
		["Latrivan"] = { { x = 33598, y = 31426, z = 7 }, { x = 33629, y = 31305, z = 7, stackpos = 1 } }
	}
}

local function removal(position)
	if getThingfromPos(position).itemid == config.teleportId then
		doRemoveItem(getThingfromPos(position).uid)
	end
	return TRUE
end

function onDeath(cid, corpse, killer)
	local position = getCreaturePosition(cid)
	for name, pos in pairs(config.bosses) do
		if name == getCreatureName(cid) then
			teleport = doCreateTeleport(config.teleportId, pos[1], pos[2])
			doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
			addEvent(removal, config.timeToRemove * 1000, pos[2])
		end
	end
	return TRUE
end
My createscripts.xml:
Code:
	<event type="death" name="Inquisition" script="inquisition.lua"/>
One of my bosses:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Hellgorak" nameDescription="Hellgorak" race="blood" experience="10000" speed="360" manacost="0">
<health now="40000" max="40000"/>
<look type="12" head="19" body="96" legs="21" feet="81" 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="130" attack="130"/>
    <attack name="energy" interval="1000" chance="11" length="8" spread="0" min="-250" max="-819">
        <attribute key="areaEffect" value="purpleenergy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="14" radius="5" target="0" min="-90" max="-500">
        <attribute key="areaEffect" value="stun"/>
    </attack>
    <attack name="fire" interval="1000" chance="11" radius="5" target="1" min="-50" max="-520">
        <attribute key="areaEffect" value="firearea"/>
    </attack>
	<attack name="lifedrain" interval="2000" chance="5" radius="7" target="0" min="0" max="-150">
		<attribute key="areaEffect" value="poff"/>
	</attack>
</attacks>
<defenses armor="70" defense="65">
	<defense name="healing" interval="1000" chance="11" min="400" max="900">
		<attribute key="areaEffect" value="greenshimmer"/>
	</defense>
</defenses>
<elements>
    <element icePercent="99"/>
	<element energyPercent="99"/>
	<element earthPercent="99"/>
    <element holyPercent="99"/>
    <element deathPercent="99"/>
    <element firePercent="99"/>
	<element drownPercent="-50"/>
</elements>
<immunities>
	<immunity lifedrain="1"/>
	<immunity paralyze="1"/>
	<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="0">
	<voice sentence="??" yell="1"/>
	<voice sentence="??" yell="1"/>
</voices>
<loot>
	<item id="2148" countmax="100" chance1="80000" chancemax="8"/>
	<item id="2148" countmax="100" chance1="80000" chancemax="10"/>
	<item id="2160" countmax="3" chance1="100000" chancemax="0"/>
	<item id="2143" countmax="7" chance1="3000" chancemax="0"/> --White pearl
	<item id="2514" chance="1650"/> --mastermind shield
	<item id="7590" chance="7000"/> --great mana potion
	<item id="7591" chance="7000"/> --great health potion
	<item id="1987" chance="100000">
		<inside>
			<item id="7431" chance="1400"/> --Demonbone
			<item id="2421" chance="1100"/> --thunder hammer
			<item id="7368" countmax="25" chance="100000"/> --stars
		</inside>
	</item>
</loot>
</monster>

Thanks in advance,

Chris~
 
Last edited:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="annihilon" nameDescription="annihilon" race="fire" experience="100000" speed="380" manacost="0">
	<health now="600" max="600"/>
	<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>
<script>
	<event name="Inquisition"/>
</script>
	<attacks>
		<attack name="melee" interval="2000" skill="185" attack="175"/>
		<attack name="death" interval="1000" chance="11" 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>
	<voices interval="5000" chance="10">
		<voice sentence="Annihilation!" yell="1"/>
	</voices>
	<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="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>

and this doesn't work
 
This is mine and it works :S
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="ushuriel" nameDescription="ushuriel" race="fire" experience="10000" speed="350" manacost="0">
	<health now="50000" max="50000"/>
	<look type="12" head="0" body="95" legs="19" feet="112" 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>
	<script>
		<event name="Inquisition"/>
	</script>
	<attacks>
		<attack name="melee" interval="2000" skill="140" attack="145"/>
		<attack name="physical" interval="1000" chance="10" length="10" spread="0" min="-250" max="-500">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="1000" chance="8" radius="5" target="0" min="-30" max="-760">
			<attribute key="areaEffect" value="mortarea"/>
			<attribute key="shootEffect" value="death"/>
		</attack>
		<attack name="earth" interval="2000" chance="9" length="8" spread="0" min="-200" max="-585">
			<attribute key="areaEffect" value="smallplants"/>
		</attack>
		<attack name="ice" interval="1000" chance="8" target="0" radius="6" min="0" max="-430">
			<attribute key="areaEffect" value="icetornado"/>
		</attack>
		<attack name="drunk" interval="3000" chance="11" radius="6" target="0">
			<attribute key="areaEffect" value="purplenote"/>
		</attack>
		<attack name="energycondition" interval="2000" chance="15" radius="4" target="0" min="-250" max="-250">
			<attribute key="areaEffect" value="energy"/>
		</attack>
	</attacks>
	<defenses armor="50" defense="45">
		<defense name="healing" interval="1000" chance="12" min="400" max="600">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="400" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices speed="0" chance="0"/>
	<loot>
		<item id="6300" chance="7777"/> --death ring
		<item id="2195" chance="4444" /> -- Boh
		<item id="2393" chance="3000"/> -- Giant sword
		<item id="2432" chance="5555"/> -- Fire Axe
		<item id="2402" chance="10000"/> --Silver dagger
		<item id="2477" chance="6666" /> --Knight legs
		<item id="2164" chance="7300"/> --might ring
		<item id="1987" chance="100000">
		<inside>
			<item id="2150" countmax="17" chance1="6000" chancemax="0"/> --Small amethyst
			<item id="2462" chance="9700"/>
			<item id="7591" chance="17000"/> --GHP
			<item id="7591" chance="9000"/> --GHP
			<item id="2149" countmax="6" chance1="4388" chancemax="0"/>
			<item id="2396" chance="6666"/> --Ice Rapier
			<item id="2158" chance="4444"/> --Blue gem
			<item id="2470" chance="6500"/> --Golden legs
			<item id="2520" chance="9999"/> --Demon shield
		</inside>
		</item>
	</loot>
</monster>
 
From what I can see you are using script I posted, so no, I dont need to see anything else, because it worked fine for me :S...

No idea... Ill maybe update my script tonight, so Ill let you know.
 
Try

Code:
local config = {
    message = "Go into the teleporter in 3 minutes, else it will disappear.",
    timeToRemove = 180, -- seconds
    teleportId = 1387,
    bosses = {
        ["Ushuriel"] = { x = 33137, y = 31502, z = 7 },
        ["Annihilon"] = { x = 33846, y = 31282, z = 7 },
        ["Hellgorak"] = { x = 33641, y = 31275, z = 7 },
        ["Madareth"] = { x = 33306, y = 31368, z = 7 },
        ["Zugurosh"] = { x = 33263, y = 31446, z = 7 },
        ["Latrivan"] = { x = 33598, y = 31426, z = 7 }
    }
}

local function removal(position)
    position.stackpos = 1
    if getThingfromPos(position).itemid == config.teleportId then
        doRemoveItem(getThingfromPos(position).uid)
    end
    return TRUE
end

function onDeath(cid, corpse, killer)
    registerCreatureEvent(cid, "Inquisition")
    local position = getCreaturePosition(cid)
    
    for name, pos in pairs(config.bosses) do
        if name == getCreatureName(cid) then
            teleport = doCreateTeleport(config.teleportId, pos, position)
            doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
            addEvent(removal, config.timeToRemove * 1000, position)
        end
    end
    return TRUE
end
 
I tried some other scripts and I tried a script Marcinek PM'd me and it gives me this error:
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition

Altho I have:
Code:
	<event type="death" name="Inquisition" script="marcino/inquisition.lua"/>

Check my creaturescripts map here:
creaturescripts1.zip

@Binho it didnt work rep++ for everyone helping me anyway.
 
Look:

2vhu88i.jpg
 
I tried some other scripts and I tried a script Marcinek PM'd me and it gives me this error:
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition
[18/12/2008 21:15:07] Warning: [Monster::Monster]. Unknown event name - Inquisition

Altho I have:
Code:
	<event type="death" name="Inquisition" script="marcino/inquisition.lua"/>

Check my creaturescripts map here:
creaturescripts1.zip

@Binho it didnt work rep++ for everyone helping me anyway.

same, need heelp !


I fixed the script but when i use on monster its just say you have been teleported.
 
Last edited:
Status
Not open for further replies.
Back
Top