Action deleted thread

Teckman

Intermediate OT User
Joined
Jul 5, 2008
Messages
913
Best answers
0
Reaction score
132
deleted thread
 
Last edited:

GangsteR

RPG Maker
Joined
Jul 1, 2007
Messages
815
Best answers
0
Reaction score
2
Location
Turkiye
Thanks for this great script ;)
I am going to use this :)
+repek :)
 

Zeratul

New Member
Joined
Apr 29, 2008
Messages
52
Best answers
0
Reaction score
0
Location
Holland
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!
 
OP
Teckman

Teckman

Intermediate OT User
Joined
Jul 5, 2008
Messages
913
Best answers
0
Reaction score
132
I've added some information about configuration this script in first post. Here is the link to the wikia
Yakchal - TibiaWiki
and the film of killing the yakchal made by nathyn~
YouTube - Solo Yakchal.
I think i helped you. :)
 

Sheriff

New Member
Joined
Mar 13, 2009
Messages
68
Best answers
0
Reaction score
0
Location
Spain
[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

:/
 

Master Filip

New Member
Joined
May 15, 2009
Messages
27
Best answers
0
Reaction score
0
[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>'
 

Venn

Member
Joined
Aug 16, 2009
Messages
547
Best answers
0
Reaction score
20
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
 
OP
Teckman

Teckman

Intermediate OT User
Joined
Jul 5, 2008
Messages
913
Best answers
0
Reaction score
132
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:

Oskar1121

Advanced OT User
Joined
Jul 15, 2009
Messages
539
Best answers
0
Reaction score
164
Location
Poland
Never use doSummonCreature! Better is doCreateMonster. Remember.
 
OP
Teckman

Teckman

Intermediate OT User
Joined
Jul 5, 2008
Messages
913
Best answers
0
Reaction score
132
Ye, why is that? o.o You should not say things if you do not have any knowlage about them.
 
Last edited:

Astherq

Banned User
Joined
Apr 1, 2011
Messages
77
Best answers
0
Reaction score
5
LoL this is weak
because your rebuilded script summon only 6 monsters
so small wave ://
plz fix
and effects are missing
 
Top