• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Manarune Dziwny problem .

Anonimowy

New Member
Joined
Jun 10, 2012
Messages
25
Reaction score
0
witam mam mały problem polegający na tym że manarune mi się wali... znaczy
Gdy mam w bagu 300 mr po 3 po 60 po 87 to mr się elegancko exh tu chodzi a jak z 3 zrobi sie 1 to juz ta 1 nie znika i mr sie co chwile tak jak by nie miała exh.

Code:
<rune name="Mana Rune" id="2270" charges="3" maglv="0" exhaustion="10" enabled="1" allowfaruse="1" script="manarune.lua"></rune>


A skrypt

Code:
-- Mana Rune - by Killavus. --
-- Feel free to edit! --
function onUse(cid, item, frompos, item2, topos)

	local level = getPlayerLevel(cid)
	local mlevel = getPlayerMagLevel(cid)
	
	-- Exhausted Settings --
	local exhausted_seconds = 1 -- How many seconds manarune will be unavailible to use. --
	local exhausted_storagevalue = 7000 -- Storage Value to store exhaust. It MUST be unused! --
	-- Exhausted Settings END --
	
	-- Mana Formula Settings --
	-- You can use "level" and "mlevel" --
	local mana_minimum = (level * 95) + (mlevel * 321) * 24.1
	local mana_maximum = (level * 96) + (mlevel * 312) * 24.1

	-- Mana Formula Settings END --
	
	local mana_add = math.random(mana_minimum, mana_maximum)
	
		-- We check the charges. --
		if(item.type > 1) then
			-- Exhausted check. --
			if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
				-- Entity is player? --
				if(isPlayer(item2.uid) == 1) then
					doSendMagicEffect(frompos, CONST_ME_MAGIC_RED)
					doSendMagicEffect(topos, CONST_ME_MAGIC_GREEN)
					doSendAnimatedText(topos, mana_add, TEXTCOLOR_LIGHTBLUE)
					doPlayerAddMana(item2.uid, mana_add)
					setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
					doChangeTypeItem(item.uid, item.type - 1)
				else
					doSendMagicEffect(frompos, CONST_ME_POFF)
					doPlayerSendCancel(cid, "You can use this rune only on players.")
				end
			else
				doSendMagicEffect(frompos, CONST_ME_POFF)
				doPlayerSendCancel(cid, "You are exhausted.")
			end
		else
			if(os.time() < getPlayerStorageValue(cid, exhausted_storagevalue)) then
				doSendMagicEffect(frompos, CONST_ME_POFF)
				doPlayerSendCancel(cid, "You are exhausted.")
			else
				if(isPlayer(item2.uid) == 1) then
					doSendMagicEffect(frompos, CONST_ME_MAGIC_RED)
					doSendMagicEffect(topos, CONST_ME_MAGIC_GREEN)
					doSendAnimatedText(topos, mana_add, TEXTCOLOR_LIGHTBLUE)
					doPlayerAddMana(item2.uid, mana_add)
					setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
					
				else
					doSendMagicEffect(frompos, CONST_ME_POFF)
					doPlayerSendCancel(cid, "You can use this rune only on players.")
				end
			end
		end
						
	return 1
end

Wiecie moze na czym polega ten blaD?
 
Może dlatego ze to 8.1 ? :D Sam nie wiem tylko powiedzcie mi czemu tak jest ze jak mam wiecej niz 2 mr to elegancko znika i wgl ladne działa a jak mam 1 to juz nie zniknie i spam mr jak cholera...
 
Last edited:
Nie wiem w ogole jakim prawem Ci to dziala skoro action script wrzuciles do spells nie zmieniajac nawet nazwy funkcji :d.

pewnie ma 2 manaruny tzn 2 skrypty, 1 nie ładuje więc ładuje ten drugi, a on nie wie gdzie edytować, może... :D
 
Back
Top