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

Simple Requests

Beo

Three Magic
Joined
Aug 25, 2009
Messages
9,074
Solutions
1
Reaction score
857
Hello.

Thank you for viewing the thread.

Manarune
I've searched and I have no idea how to implement it :$ Everything I've tried hasn't worked so help here would be useful. I know it's a noob thing, but hey, I haven't hosted since 7.6.

I need seperate manarunes;
1 to heal between 300-700
1 to heal between 500-1200 ] - For Druids and Sorcerers Only
1 to heal health between 500-1200 and to heal mana between 200-600 (sametime) ] - For Paladins Only

Healthrune
Heals between 600-1400 ] - Knights only


!bless command


!promote

That is all, thank you!

Rep+ Given :)
 
Last edited:
Um, maybe try this:

Change:
LUA:
if(not house) then
To:
LUA:
if house then
And where did you get that from? It should work if it's in the latest TFS.

The forums. Its a downloaded datapack, didn't have hardly any commands in it, I've fixed most things, but these 3 are the only things thats fucking me up.


edit
It isn't working at all now.
 
config.lua

Code:
buyableAndSellableHouses = true

talkactions.xml

Code:
	<!-- Houses -->
	<talkaction words="alevo grav" filter="word-spaced" event="function" value="houseBuy"/>
	<talkaction words="alito som" filter="word-spaced" event="function" value="houseSell"/>
	<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
	<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
	<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
	<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
	<talkaction words="alito sio" filter="word-spaced" event="script" value="leavehouse.lua"/>

You can obviously change the "words" to whatever you wish. This should work, if you're using TFS.

Manarune:

data/actions/scripts/script.lua

LUA:
local exhausted = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhausted, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local min, max
	if isSorcerer(cid) or isDruid(cid) then
		min, max = 100, 500
	elseif isPaladin(cid) then
		min, max = 100, 500
	elseif isKnight(cid) then
		min, max = 100, 500
	end
	
	local rand = math.random(min, max)
	
	if not isPlayer(itemEx.uid) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	end
	
	if hasCondition(cid, CONDITION_EXHAUST_HEAL) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
	end
	
	if(getCreatureMana(cid) >= getCreatureMaxMana(cid)) then
		return doPlayerSendCancel(cid, "Your mana is currently full.")
	end
	
	return doChangeTypeItem(item.uid, item.type - 1) and doPlayerAddMana(itemEx.uid, rand) and doAddCondition(cid, exhausted) and doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_MONSTER) and doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE), true
end

With the manarune, would it be the same rune for each vocation but with different heals? :o

Yes. You edit the "100 & 500" to whatever you want.
 
Last edited:
Awesome thank you!

How could I make it infinite?

Code:
	removeWeaponAmmunition = false
	removeWeaponCharges = false
	removeRuneCharges = false

Still removes charges.

Edit; Normal runes & ammunition do not remove, only this manarune does..
 
Last edited:
Back
Top