Arania Tfs |work| [720p]

npcHandler:addModule(EVENT_CREATURE_SAY) <item id="12345" article="a" name="Spider Queen's Idol"> <attribute key="weight" value="1200"/> <attribute key="worth" value="5000"/> <attribute key="description" value="It pulses with arachnid energy. Use at the altar to summon Arania."/> </item> Add loot to some rare creature or as quest reward. 4. Optional: Arania’s Web Trap Global Event ( data/globalevents/arania_invasion.lua ) local invasion = GlobalEvent("AraniaInvasion") function invasion.onStartup(interval) local config = fromPos = x = 1000, y = 1000, z = 7, toPos = x = 1020, y = 1020, z = 7, amount = 5, monster = "Poison Spider"

if msgcontains(msg, "sacrifice") then local idol = player:getItemById(12345, true) -- custom item ID if idol then summonArania(cid, 12345) else npcHandler:say("You don't have the Spider Queen's Idol.", cid) end end end arania tfs

npcHandler:setMessage(MESSAGE_GREET, "Welcome, |PLAYERNAME|. Do you wish to sacrifice to summon the Spider Queen Arania?") npcHandler:setMessage(MESSAGE_SENDTRADE, "You need a Spider Queen's Idol to summon her.") y = 1000

<!-- Summon spider minions --> <attack name="summon" interval="20000" chance="30"> <summon name="Poison Spider" max="3"/> <summon name="Giant Spider" max="2"/> </attack> </attacks> <defenses armor="45" defense="48"> <defense name="healing" interval="8000" chance="18" min="300" max="550"> <attribute key="area" value="1"/> </defense> <defense name="speed" interval="10000" chance="15" speedchange="300" duration="10000"/> </defenses> <elements> <element firePercent="-10"/> <element earthPercent="100"/> <element icePercent="-5"/> <element energyPercent="-5"/> <element physicalPercent="5"/> <element holyPercent="0"/> <element deathPercent="15"/> </elements> <immunities> <immunity poison="1"/> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> <loot> <item id="2148" countmax="100" chance="100000"/> <!-- gold --> <item id="2160" chance="20000"/> <!-- crystal coin --> <item id="6300" chance="10000"/> <!-- spider fang --> <item id="5910" chance="15000"/> <!-- spider silk --> <item id="6529" chance="8000"/> <!-- poison arrow --> <item id="7430" chance="5000"/> <!-- spider amulet --> <item id="6558" chance="3000"/> <!-- mysterious fetish --> <item id="2173" chance="1000"/> <!-- spider sceptre (custom) --> </loot> </monster> local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end toPos = x = 1020