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

Magic books

gnida

New Member
Joined
Jul 26, 2008
Messages
2
Reaction score
0
11:54 You see a spellbook of dark mysteries (Def:16, magic level +3).
ItemID: [8918].
Position: [X: 92] [Y: 129] [Z: 7].

This book don't give magic level +3;/
I have a last rev.
 
do you mean
<attribute key="magicPoints" value="10"/> ?

This doesn't work =/
 
but even then it doesnt work.. I cant find what the slotType of spellbook of dark mysteries, or the crossbows are :S
 
Last edited:
weapons... no movements!
You must add magic point in items.xml and add this item in weapons.xml
 
like this? :S

<magic id="8918" level="80" unproperly="1" function="default">
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer"/>


Im a bit newb ;p
 
Averatec is mistaken. You should add magicpoints for an item in items.xml, and then you go to movements.xml and add Equip and DeEquip for the item you've added magicpoints.

For example: Focus Cape

You go to items.xml, and add magicpoints to it:

Code:
	<item id="8871" article="a" name="focus cape">
		<attribute key="description" value="It increases your magic level by 1 while worn."/>
		<attribute key="weight" value="2100"/>
		<attribute key="armor" value="9"/>
		<attribute key="slotType" value="body"/>
		<attribute key="magicpoints" value="1"/>
	</item>

So, you've added 1 extra magic level for it. Now, go to movements.xml, and add Equip and DeEquip like that:

Code:
	<movevent event="Equip" itemid="8871" slot="armor" function="onEquipItem">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>
		<vocation name="Druid"/>
		<vocation name="Elder Druid" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="8871" slot="armor" function="onDeEquipItem"/>

Done! Now this item will add 1 extra magic level for people who use it, and when the person equip it, the "magic level bar" will automatically show +1 magic level.

Yours,
Rafael Hamdan;
 
this:
Code:
	<movevent event="Equip" itemid="8900" slot="armor" function="onEquipItem">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>
		<vocation name="Druid"/>
		<vocation name="Elder Druid" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="8900" slot="armor" function="onDeEquipItem"/>
Does not work =/
 
Thanks for trying Rafael, but I know all this.. The thing is that I dont know what the slotType of Spellbook of dark mysteries is. :S
 
maybe right-hand and left-hand because this slots are in movement.cpp
 
maybe right-hand and left-hand because this slots are in movement.cpp

yea that hand slots work for magic book, just make sure you put both hands or people may get stupid and forget it only works in 1 hand :)
 
The slot type for the spell books / magic books is 'right-hand' and 'left-hand'.


<--- Rep :)

-Edit- Haha didn't see page two. Glad you got it working :)
 
Yay, it works!
Thanks a lot for revealing those magic words!

Hmm, pretty stupid? not to have a function for slots="hands"
 
Last edited:
Yay, it works!
Thanks a lot for revealing those magic words!

Hmm, pretty stupid? not to have a function for slots="hands"

naw, but for future reference just take a look into global.lua for any other function values you need for the most part :)
 
I also have another question you guys might help me with..

Where can I edit the level requirement of items such as spellbooks and paladin armors.. Also Id like to know how I change for example the books so they can only be wielded by mages.. anyone?

In advance, Thanks
 
Back
Top