Arania Tfs New! Direct
local pos = player:getPosition() local monster = Game.createMonster("Arania", pos, true, false) if monster then pos:sendMagicEffect(CONST_ME_TELEPORT) player:sendTextMessage(MESSAGE_INFO_DESCR, "Arania appears from the shadows!") player:removeItem(sacrificeItem, 1) else player:sendTextMessage(MESSAGE_STATUS_SMALL, "The altar is too crowded to summon Arania.") end return true end
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.") arania tfs
I'll help you create a feature for "Arania TFS" (likely referring to The Forgotten Server for an OpenTibia server). Since you didn't specify exact details, I'll assume you want a custom monster, spell, or system for a spider-themed boss/area called "Arania" (from Latin aranea for spider). local pos = player:getPosition() local monster = Game
local function summonArania(cid, sacrificeItem) local player = Player(cid) if not player then return false end y = 1000
function onCreatureSay(cid, type, msg) local player = Player(cid) if not player then return end
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
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"