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

Potrzebuje manaruny 8.41 od magica i levela

Adi110

Member
Joined
Jul 31, 2009
Messages
12
Reaction score
10
Potrzebuje mana runki od magic lev i levela ale zeby konczyly sie charges pod tibia 8.41 moze byc spells albo actions

Z gory dziekuje za pomoc
 
Łap ,powinno działać :)

Runka

Code:
local MIN = 200	  ---- max mana i min mana ktora daje mana runa
local MAX = 300
local magic = 15  ---- mlv potrzebny do uzycia runki
local level = 150 ---- lvl do uzycia

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) == FALSE then
		return FALSE
	end
	
	if getPlayerSkill(cid, 0) >= magic then
	if getPlayerLevel(cid) >= level then
	return TRUE
	end
	end
	
	if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return TRUE
	end

	if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
		return FALSE
	end

	doAddCondition(cid, exhaust)
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
	return TRUE
end

Wklejasz do actions.xml ,a żebyś miał charges to w items.xml pod id tej runki wklejasz:
Code:
<attribute key="charges" value="4" />

Nie obraziłbym się jakbyś dal reputka za pomoc ;p
 
Last edited:
Dales mu to co nie trzeba idioto jemu chodzi o taka manarunke co daje mane w zaleznosci od mlvla i levela....
 
Legolas po pierwsze to ta mana runka nie jest od levela i magic levela
Po drugie to wiem jak ustawic charges w actions albo spells
ALE nie kazda mr sie konczy nawet jak ustawie "charges"
 
Sorki ,źle zrozumiałem. Myślałem ,ze chodzi ci o taka której możesz użyć od danego lvla i mlvla.
 
Back
Top