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

Nacke

New Member
Joined
Feb 13, 2008
Messages
79
Reaction score
0
PHP:
-- Yakchal Throne by Darkhaos --
function onUse(cid,item2,frompos,item,topos)

local yakchalpos = {x=32301, y=31057, z=14, stackpos=1}

local monster1pos = {x=32295, y=31063, z=14, stackpos=1}
local monster2pos = {x=32296, y=31063, z=14, stackpos=1}
local monster3pos = {x=32297, y=31063, z=14, stackpos=1}
local monster4pos = {x=32298, y=31063, z=14, stackpos=1}
local monster5pos = {x=32299, y=31063, z=14, stackpos=1}
local monster6pos = {x=32230, y=31063, z=14, stackpos=1}
local monster7pos = {x=32231, y=31063, z=14, stackpos=1}
local monster8pos = {x=32289, y=32063, z=14, stackpos=1}
local monster9pos = {x=32290, y=32063, z=14, stackpos=1}
local monster10pos = {x=32291, y=32063, z=14, stackpos=1}
local monster11pos = {x=32292, y=32063, z=14, stackpos=1}
local monster12pos = {x=32293, y=32063, z=14, stackpos=1}

	if item2.itemid == ID_OF_THE_TOMB then
			doSendMagicEffect(topos,14)
	doSummonCreature("Frost Dragon", monster1pos)
	doSummonCreature("Frost Dragon", monster2pos) 
	doSummonCreature("Frost Dragon", monster3pos) 
	doSummonCreature("Ice Golem", monster4pos) 
	doSummonCreature("Ice Golem", monster5pos) 
	doSummonCreature("Crystal Spider", monster6pos) 
	doSummonCreature("Crystal Spider", monster7pos) 
	doSummonCreature("Crystal Spider", monster8pos) 
	doSummonCreature("Ice Witch", monster6pos) 
	doSummonCreature("Ice Witch", monster10pos) 
	doSummonCreature("Ice Witch", monster11pos) 
	doSummonCreature("Ice Witch", monster12pos) 
	doSummonCreature("Yakchal", yakchalpos) 
		else

	return FALSE

end
PHP:
Warning: [Event::loadScript] Can not load script. data/actions/scripts/yakchaltomb.lua
[12/12/2008  18:32:37] data/actions/scripts/yakchaltomb.lua:39: 'end' expected (to close 'function' at line 2) near '<eof>'

hello,im using tfs 0.2 i have one error please solution please.


thz.
 
Code:
local yakchalpos = {x=32301, y=31057, z=14, stackpos=1}
local monster1pos = {x=32295, y=31063, z=14, stackpos=1}
local monster2pos = {x=32296, y=31063, z=14, stackpos=1}
local monster3pos = {x=32297, y=31063, z=14, stackpos=1}
local monster4pos = {x=32298, y=31063, z=14, stackpos=1}
local monster5pos = {x=32299, y=31063, z=14, stackpos=1}
local monster6pos = {x=32230, y=31063, z=14, stackpos=1}
local monster7pos = {x=32231, y=31063, z=14, stackpos=1}
local monster8pos = {x=32289, y=32063, z=14, stackpos=1}
local monster9pos = {x=32290, y=32063, z=14, stackpos=1}
local monster10pos = {x=32291, y=32063, z=14, stackpos=1}
local monster11pos = {x=32292, y=32063, z=14, stackpos=1}
local monster12pos = {x=32293, y=32063, z=14, stackpos=1}

function onUse(cid, itemEx, item, fromPosition, toPosition)
	if itemEx.itemid == ID_OF_THE_TOMB then
		doSendMagicEffect(topos,14)
   		doSummonCreature("Frost Dragon", monster1pos)
    		doSummonCreature("Frost Dragon", monster2pos) 
    		doSummonCreature("Frost Dragon", monster3pos) 
   		doSummonCreature("Ice Golem", monster4pos) 
    		doSummonCreature("Ice Golem", monster5pos) 
    		doSummonCreature("Crystal Spider", monster6pos) 
   		doSummonCreature("Crystal Spider", monster7pos) 
    		doSummonCreature("Crystal Spider", monster8pos) 
   		doSummonCreature("Ice Witch", monster6pos) 
    		doSummonCreature("Ice Witch", monster10pos) 
    		doSummonCreature("Ice Witch", monster11pos) 
   		doSummonCreature("Ice Witch", monster12pos) 
   		doSummonCreature("Yakchal", yakchalpos) 
	end
	return FALSE
end
 
Back
Top