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

[Request] was closed.

yeahyeah...

put here more info about that VIP Mana rune with Fancy Animation...
then I do it like 99% :) (FREE)

(just to s.u Tufte)

EDIT:

he want original stuff not n00bzor rip-offs

sorry, I'll not rip it anymore...

you will get 5 Dollars for a "n00bzor" script? haha how nb d:
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (isPlayer(itemEx.uid) ~= TRUE) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can use it only on players.")
		return FALSE
	end

	if (getPlayerStorageValue(cid, 11553) ~= 1) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need to be a V.I.P. to use this rune.")
		return FALSE
	end

	local pos = getCreaturePosition(itemEx.uid)

	local mana = {
		100,	-- Min
		500	-- Max
	}


	local positions = {
		{x = pos.x - 1, y = pos.y - 1, z = pos.z},
		{x = pos.x - 1, y = pos.y + 1, z = pos.z},
		{x = pos.x + 1, y = pos.y - 1, z = pos.z},
		{x = pos.x + 1, y = pos.y + 1, z = pos.z}
	}

	doPlayerAddMana(itemEx.uid, math.random(mana[1], mana[2])
	for i = 1, #positions do
		doSendMagicEffect(positions[i], CONST_ME_ICEAREA)
		doSendMagicEffect(positions[i], CONST_ME_FIREATTACK)
	end

	return TRUE
end

I`ll edit if you want. ;P
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (isPlayer(itemEx.uid) ~= TRUE) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can use it only on players.")
		return FALSE
	end

	if (getPlayerStorageValue(cid, 11553) ~= 1) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need to be a V.I.P. to use this rune.")
		return FALSE
	end

	local pos = getCreaturePosition(itemEx.uid)

	local mana = {
		100,	-- Min
		500	-- Max
	}


	local positions = {
		{x = pos.x - 1, y = pos.y - 1, z = pos.z},
		{x = pos.x - 1, y = pos.y + 1, z = pos.z},
		{x = pos.x + 1, y = pos.y - 1, z = pos.z},
		{x = pos.x + 1, y = pos.y + 1, z = pos.z}
	}

	doPlayerAddMana(itemEx.uid, math.random(mana[1], mana[2])
	for i = 1, #positions do
		doSendMagicEffect(positions[i], CONST_ME_ICEAREA)
		doSendMagicEffect(positions[i], CONST_ME_FIREATTACK)
	end

	return TRUE
end

I`ll edit if you want. ;P

you forgot an ) @
Code:
 doPlayerAddMana(itemEx.uid, math.random(mana[1], mana[2])<-

Fixed :
Code:
 function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (isPlayer(itemEx.uid) ~= TRUE) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can use it only on players.")
		return FALSE
	end

	if (getPlayerStorageValue(cid, 11553) ~= 1) then
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You need to be a V.I.P. to use this rune.")
		return FALSE
	end

	local pos = getCreaturePosition(itemEx.uid)

	local mana = {
		100,	-- Min
		500	-- Max
	}


	local positions = {
		{x = pos.x - 1, y = pos.y - 1, z = pos.z},
		{x = pos.x - 1, y = pos.y + 1, z = pos.z},
		{x = pos.x + 1, y = pos.y - 1, z = pos.z},
		{x = pos.x + 1, y = pos.y + 1, z = pos.z}
	}

	doPlayerAddMana(itemEx.uid, math.random(mana[1], mana[2]))
	for i = 1, #positions do
		doSendMagicEffect(positions[i], CONST_ME_ICEAREA)
		doSendMagicEffect(positions[i], CONST_ME_FIREATTACK)
	end

	return TRUE
end

Also When Tested Its Not Right Style... It Should Be
Code:
doSendDistanceShoot(frompositions, topositions, CONST_ANI_ICE)
doSendDistanceShoot(frompositions, topositions, CONST_ANI_FIRE)

but the rest im not able to code :p
 
Last edited:
Should be:
Code:
doSendDistanceShoot(pos, positions[i], CONST_ANI_ICE)
doSendDistanceShoot(pos, positions[i], CONST_ANI_FIRE)

I think ;P
 
it works b4 but now idk why it doesnt work :( it says only u can only use it on players.. i dont get mana,no effects comes..
 
Back
Top