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

Solved [[thread delete]]

LUA:
tmpPos = {x=fromPosition.x - 4, y=fromPosition.y - 3, z=fromPosition.z, stackpos=0}
Change it there
 
LUA:
tmpPos = {x=fromPosition.x - 4, y=fromPosition.y - 3, z=fromPosition.z, stackpos=0}
Change it there

I tried there but this is a distance where fireworks gonna fly (now its -4 sqm up from Player, -3 sqm left from Player)...
 
Thats the distance where they are gonna fly and where they are gonna explode too
LUA:
addEvent(doSendMagicEffect, 350, tmpPos
 
Yeah but if i change the parament:
LUA:
tmpPos = {x=fromPosition.x - 4, y=fromPosition.y - 3, z=fromPosition.z, stackpos=0}

The firework only changes the distance where it wanna fly ;/

I edited the function and trying add other tmpPos but if i adding others 8 tmpPos's (like exori [exori got 9 sqms]) the firework dissapear after click on it and 0 animations...

Somebody else ?
 
LUA:
local function give(p)
	for x=p.x-1, p.x+1 do
		for y=p.y-1, p.y+1 do
			doSendMagicEffect({x=x, y=y, z=p.z}, math.random(CONST_ME_FIREWORK_YELLOW, CONST_ME_FIREWORK_BLUE))
		end
	end
end

function fireWorkRocketBoom(p)
	local pos = {x=p.x-4, y=p.y-3, z=p.z}
	if isSightClear(p, pos, false) then
		doSendDistanceShoot(p, pos, 3)
		addEvent(give, 350, pos)
	end
end
 
Back
Top