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

Lua Ring increase 150k hp and mana dosent show in bars?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hello!
I have a ring that i want to increase 150k mana and hp but im not sure if i did right but i added it to items.xml and movement.xml
and it dosent show in the hp and mana bars

scripts:
Code:
	<item id="7708" article="a" name="Evil Containment Ring">
		<attribute key="description" value="Increases 150k mana and health points! See the power in the red ring!"/>
		<attribute key="weight" value="4" />
		<attribute key="slotType" value="ring" />
		<attribute key="healthGain" value="1" />
		<attribute key="healthTicks" value="150000" />
		<attribute key="manaGain" value="1" />
		<attribute key="manaTicks" value="150000" />
		<attribute key="showattributes" value="1"/>
	</item>

movment.xml:
Code:
	<movevent event="DeEquip" itemid="7708" slot="ring" function="onDeEquipItem"/>
	<movevent event="Equip" itemid="7708" slot="ring" level="80" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>	
		<vocation name="Druid"/>
		<vocation name="Elder Druid" showInDescription="0"/>	
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>	
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>	
	</movevent>
 
It's the recharging of the mana and hp.

If you want to the player have +150k hp and mana put:

Code:
<attribute key="maxHealthPoints" value="xxx" />
<attribute key="maxManaPoints" value="xxx" />

xxx = the hp or mana to increase.

if i help please,
rep++

:peace:
 
so instead of this:

<attribute key="manaGain" value="1" />
<attribute key="manaTicks" value="150000" />

i add?:
<attribute key="maxHealthPoints" value="150000" />
<attribute key="maxManaPoints" value="150000" />
 
dosent show in bp and mana bar...
but im high lvl cant it be that?:S
nope dosent work i tested on my lvl 10 char dosent work at all...
 
Just in case you did not knew:
Code:
	<attribute key="manaGain" value="1" />
	<attribute key="manaTicks" value="150000" />


Means that every 150000 seconds(?)(manaTicks) the ring will add 1 mana (manaGain).
I'm not sure about the manaTicks, as it looks like it has a lot of 0's?

But I'm sure you understand the concept of my post.
 
Just in case you did not knew:
Code:
	<attribute key="manaGain" value="1" />
	<attribute key="manaTicks" value="150000" />


Means that every 150000 seconds(?)(manaTicks) the ring will add 1 mana (manaGain).
I'm not sure about the manaTicks, as it looks like it has a lot of 0's?

But I'm sure you understand the concept of my post.

The correct will be:

Correct:

Code:
	<attribute key="manaGain" value="150000" />
	<attribute key="manaTicks" value="1000" />

Manaticks = seconds to regenerate.
Managain = mana to gain each manaticks.

:peace:
 
Last edited:
@Topic,

TKO,
just change to this:

Code:
	<attribute key="manaGain" value="150000" />
	<attribute key="manaTicks" value="1000" />
	<attribute key="healthGain" value="150000" />
	<attribute key="healthTicks" value="1000" />

It might works ;)

:peace:

'sry for dble post'
 
Code:
	<attribute key="manaGain" value="150000" />
	<attribute key="manaTicks" value="1000" />
	<attribute key="healthGain" value="150000" />
	<attribute key="healthTicks" value="1000" />

As you can see, it will gives 150k mana and 150k life every 1 second.

1000 = 1 Second.

I think can use both, or 1000 or 1 :p
 
So, use the maxHealthPoints and maxManaPoints, i sayd it in the first topic.
Lol.
:S
If doesn't work, i don't know what u'r making wrong!
 
Back
Top