Hiya!
Not sure in what forum to put this.
Had a look into Stranf's new worldfiller_3
i had some nice time exploring the new stuff there, just started last night so i haven't got a whole lot of time for it yet.
Anyway, some things i wanted to do befor, i was clueless about, but had some good hints from WF3.
I wanted to make a magical armor, like the rewards you can get in UO .
I did the following
In one of the dfn-files
[Tunic_of_magery]
{ left facing
get=leather_tunic
name=leather tunic
name2=Tunic of magery
id=0x13cc
intadd=3
color=0x0810
def=4
script=6100
}
==============================
==============================
In a js that i put in my custom file
//equipfunction here
function onEquip(mChar, ourObj)
{
if (mChar.online == true)
{
if (ourObj.id == 0x13cc || ourObj.id == 0x13d2 || ourObj.id == 0x13ce || ourObj.id == 0x13cd || ourObj.id == 0x13c7)
{mChar.skills.magery=(mChar.skills.magery + 50);} //script used for armor of sorsury
if (ourObj.id == 0x13cc || ourObj.id == 0x13d2 || ourObj.id == 0x13ce || ourObj.id == 0x13cd || ourObj.id == 0x13c7)
{mChar.skills.meditation=(mChar.skills.meditation + 50);} //script used for armor of sorsury
}
}
//unequip function here
function onUnequip(mChar, ourObj)
{
if (ourObj.id == 0x13cc || ourObj.id == 0x13d2 || ourObj.id == 0x13ce || ourObj.id == 0x13cd || ourObj.id == 0x13c7)
{mChar.skills.magery=(mChar.skills.magery - 50);} //script used for armor of sorsury
if (ourObj.id == 0x13cc || ourObj.id == 0x13d2 || ourObj.id == 0x13ce || ourObj.id == 0x13cd || ourObj.id == 0x13c7)
{mChar.skills.meditation=(mChar.skills.meditation - 50);} //script used for armor of sorsury
}
==========================================
I did this on 5 items, they all look the same.
So what is the problem then?
Non and all sort of speaking.
Each one of the 5 items seem to work fine on there own, when equipped.
They add 50 to magery as well as adding 3 to int.
But when the second and third and so on is equipped, they only add the int, and not the extra magery.
Meaning i end up with +15 in int and +50 in magery, but should get +250 in magery, what is making this problem.
Another issue related to this matter is that i want it to be shown on the faceplate for each item, how much extra magery i get, just as with the int.
The last thing I'm planning to do with these items is to add some resistance, energy, fire and so on, but so far i haven't seen anything about this, how can i do that? I want that aswell to be shown on the faceplate if possable.