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

Action deleted thread

Can you explain where I should put the tomb id? and the other one, the star id? I do not know this quest in rl tibia so Id LOVE an explaination :D seems like a really nice script!
 
[06/05/2009 18:09:10] Lua Script Error: [Action Interface]
[06/05/2009 18:09:10] in a timer event called from:
[06/05/2009 18:09:10] data/actions/scripts/yakchal.lua:eek:nUse

[06/05/2009 18:09:10] luaDoTeleportThing(). Thing not found

:/
 
[03/01/2010 18:32:58] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/yakchal.lua)
[03/01/2010 18:32:58] data/actions/scripts/quests/yakchal.lua:133: 'end' expected (to close 'if' at line 113) near '<eof>'
 
find
Code:
function YakchalAttack()
    yakchalpos = {x=1511,y=605,z=14,stackpos= STACKPOS_TOP_CREATURE}
    getyakchal = getThingFromPos(yakchalpos)
    doTeleportThing(getyakchal.uid, config.bosspos[2], FALSE)
    doSendMagicEffect(config.bosspos[2], CONST_ME_TELEPORT)
    doSendMagicEffect(config.bosspos[1], CONST_ME_TELEPORT)
end
and replace
Code:
    yakchalpos = {x=1511,y=605,z=14,stackpos= STACKPOS_TOP_CREATURE}
to your first boss pos
 
Lua:
local config = {
	monsterPositions = {
		[{x = 100, y = 100, z = 7}] = {"ice golem", "crystal spider", "frost dragon"},
		[{x = 100, y = 101, z = 7}] = {"ice golem", "ice witch", "frost dragon"}
	},
	bossPosition = {x = 110, y = 110, z = 7, stackpos = 255},
	bossNewPosition = {x = 110, y = 100, z = 7},
	storage = 5000
}


function onUse(cid, item, fromPosition, itemEx, toPosition)

	if(itemEx.itemid == 7362 and item.itemid == 2361) then 
		if(getGlobalStorageValue(config.storage) == -1) then
			if(math.random(1, 5) == 1) then
				doCreatureSay(cid, "The frozen starlight shattered, but you have awoken the icewitch Yakchal from her slumber! She seems not amused ...", TALKTYPE_ORANGE_1)
        			doPlayerRemoveItem(item.uid, 1)
			else
        			doCreatureSay(cid, "You have awoken the icewitch Yakchal from her slumber! She seems not amused ...", TALKTYPE_ORANGE_1)
			end
			doSummonCreature("yakchal", config.bossPosition)
    			setGlobalStorageValue(config.storage, 1)
    			addEvent(setGlobalStorageValue, 15 * 60 * 1000, config.storage, -1)
			for k, v in pairs(config.monsterPositions) do
				timer = 7 * 1000
				for i = 1, 3 do
					addEvent(doSummonCreature, timer, v[i], k)
					addEvent(doSendMagicEffect, timer, k, CONST_ME_TELEPORT)
					timer = timer + 60 * 1000
				end
			end
			addEvent(doTeleportThing, 3 * 60 * 1000 + 7 * 1000, getThingfromPos(config.bossPosition).uid, config.bossNewPosition)
			addEvent(doSendMagicEffect, 3 * 60 * 1000 + 7 * 1000, config.bossNewPosition, CONST_ME_TELEPORT)
		else
			doPlayerSendCancel(cid,"You can not use this object.")
		end
	end
	return true
end

Totally rebuilted and optimized.
 
Last edited:
Ye, why is that? o.o You should not say things if you do not have any knowlage about them.
 
Last edited:
LoL this is weak
because your rebuilded script summon only 6 monsters
so small wave ://
plz fix
and effects are missing
 
Back
Top