• 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] A function that checks every sqm doSendDistanceShoot passes.

Noah91

New Member
Joined
Mar 27, 2010
Messages
11
Reaction score
0
Hi, i need a function that checks every sqm doSendDistanceShoot passes.


And i have a question, if there is no function like this.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = getCreaturePosition(cid)
for i=-4,4 do
if toPosition.x == pos.x+i and toPosition.y == pos.y+i then
pos = {x=pos.x+i, y=pos.y+i, z=pos.z, stackpos=253}
doSendDistanceShoot(fromPosition, pos, CONST_ANI_WHIRLWINDAXE)
	if i > 0 then
		for k=1,i do
		pos = getCreaturePosition(cid)
		pos = {x=pos.x+k, y=pos.y+k, z=pos.z, stackpos=253}
		blabla
		end
	else
		for k=i,-1 do
		pos = getCreaturePosition(cid)
		pos = {x=pos.x+k, y=pos.y+k, z=pos.z, stackpos=253}
		blabla
		end
	end

end
end
	return true
end
Does skrypt like this(not completed, maybe 5%) eat tons of resources?

If someone have better idea to check these sqm, please tell me !
 
Last edited:
Back
Top