<loot>
<item id="2091" actionId="xxxx" chance="100000"/>
</loot>
It can't not work. It's been like Vulcan_ said for years and years.already try that and its not working xD, at the moment i dont know how to do that, but by the moment im using a script when the boss die it would open a teleport from where i want it, and then the teleport closes after 30 secs
local items = {
[1] = {itemId = 2365, actionID = 9000},
[2] = {itemId = 2651, actionID = 9001}
}
local chance = 90
function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified)
local container = Container(corpse.uid)
local rand = math.random(1, 100)
if container and rand <= chance then
local item = items[math.random(#items)]
container:addItem(item.itemId, 1):setActionId(item.actionID)
return true
end
return true
end
<event type="death" name="Otland" script="customLoot.lua" />
<script>
<event name="Otland"/>
</script>
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Test" nameDescription="an test" race="blood" experience="1" speed="0" manacost="390">
<health now="100" max="100" />
<look type="137" head="113" body="120" legs="114" feet="132" corpse="20323" />
<targetchange interval="4000" chance="10" />
<flags>
<flag summonable="1" />
<flag attackable="1" />
<flag hostile="1" />
<flag illusionable="1" />
<flag convinceable="1" />
<flag pushable="0" />
<flag canpushitems="1" />
<flag canpushcreatures="0" />
<flag targetdistance="4" />
<flag staticattack="90" />
<flag runonhealth="10" />
<flag canwalkonenergy="0" />
<flag canwalkonfire="0" />
<flag canwalkonpoison="0" />
</flags>
<attacks>
<attack name="melee" interval="2000" min="0" max="-45" />
<attack name="physical" interval="2000" chance="1" range="7" min="0" max="0">
<attribute key="shootEffect" value="throwingknife" />
</attack>
</attacks>
<defenses armor="0" defense="0" />
<elements>
<element physicalPercent="0" />
<element deathPercent="0" />
</elements>
<script>
<event name="Otland"/>
</script>
<voices interval="5000" chance="10">
<voice sentence="Yeeee ha!" />
<voice sentence="Your head shall be mine!" />
<voice sentence="Your head will be mine!" />
</voices>
<loot>
<item id="2050" actionid="1001" chance="100000" /><!-- torch -->
</loot>
</monster>