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

Lua Solved!

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
24
Location
Sweden
Doesnt scripts suport fire id?

Alright, ive been trying to figure this out for a long time, so then i changed the IDs from 1494 (small fire) to 2144 (black pearl)
and then the script was working just fine..
So i cant use fire ids or ? ;s


Code:
function onStepIn(cid, item, pos)
 
	skull1 = {x=32290, y=31931, z=13, stackpos=255}
	skull2 = {x=32292, y=31932, z=13, stackpos=255}
	skull3 = {x=32293, y=31934, z=13, stackpos=255}
	skull4 = {x=32292, y=31936, z=13, stackpos=255}
	skull5 = {x=32290, y=31937, z=13, stackpos=255}
	skull6 = {x=32288, y=31936, z=13, stackpos=255}
	skull7 = {x=32287, y=31934, z=13, stackpos=255}
	skull8 = {x=32288, y=31932, z=13, stackpos=255}
	skull9 = {x=32283, y=31934, z=13, stackpos=255}
	entrance = {x=32282, y=31934, z=13, stackpos=255}
 
	getskull1 = getThingfromPos(skull1)
	getskull2 = getThingfromPos(skull2)
	getskull3 = getThingfromPos(skull3)
	getskull4 = getThingfromPos(skull4)
	getskull5 = getThingfromPos(skull5)
	getskull6 = getThingfromPos(skull6)
	getskull7 = getThingfromPos(skull7)
	getskull8 = getThingfromPos(skull8)
	getskull9 = getThingfromPos(skull9)
 
 
	if item.actionid == 1351 and 
	getskull1.itemid == 1494 and 
	getskull2.itemid == 1494 and 
	getskull3.itemid == 1494 and 
	getskull4.itemid == 1494 and 
	getskull5.itemid == 1494 and 
	getskull6.itemid == 1494 and 
	getskull7.itemid == 1494 and 
	getskull8.itemid == 1494 and
	getskull9.itemid == 2144 then
 
		doRemoveItem(getskull9.uid,1)
 
 

		doSendMagicEffect(skull9, 8)
 
		doTeleportThing(cid,entrance)
	else
	end
	return TRUE
end



EDIT: changed from stackpos=255} to stackpos=1}
 
Last edited:
Back
Top