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

Custom items

DJMusicX

Otfans Sux!
Joined
Aug 17, 2008
Messages
50
Reaction score
0
Hey guys.

Im making a server with a couple of friends, and all is going well. I just stumbled on a few problems; Im making donation items. Just adding skills/magic/speed, you know what I mean.

However, it doesnt work the way I want it to.

I made "Hiro boots". Basicly just combined Boots of haste and Pair of soft boots and replaced "Crystal Boots" with it:
<item id="11113" name="hiro boots">
<attribute key="description" value="(Adds speed and health/mana regeneration)" />
<attribute key="slotType" value="feet" />
<attribute key="weight" value="2250" />
<attribute key="speed" value="40" />
<attribute key="healthGain" value="200" />
<attribute key="manaGain" value="200" />
</item>

Also problems with the rest of the items;
<item id="2507" name="hiro legs">
<attribute key="weight" value="4800" />
<attribute key="armor" value="12" />
<attribute key="slotType" value="legs" />
<attribute key="speed" value="40" />
<attribute key="skillDist" value="2" />
<attribute key="skillAxe" value="2" />
<attribute key="skillSword" value="2" />
<attribute key="skillClub" value="2" />
</item>

It doesnt give skills as its suppose to... Same goes for magic on other items.

Another thing; when I log in on a normal character, a "popup" pops up saying; Multy-client or Magebomb is not allowed. I'd like to remove this, but my "partner" couldnt find it, and Im not the scripter. So we both dont know how to remove it, and I was wondering if you knew.

Also, when I attack physically on a Paladin/Knight it hits normal for about 5 hits, then suddenly hits with 98000~. Tested on training monk and kills it instantly. While writing this, Im thinking if it had anything to do with critical damage... But of course, I'm not sure.

I do realise this is a bit of a long list, but I really need some help. You can e-mail me at [email protected] if you dont like to discuss it over forum.

Thanks for listening guys, please post or email if you can help me.

Yours,

DJMusicX

- - - Updated - - -

AHLSn.jpg


RDBSw.png
 
Last edited:
1) are the items registered in movements.xml?
2) check in creaturescripts>scripts>login.lua?
3) in config.lua, it's your critical rate.
 
criticalHitChance = 7
criticalHitMultiplier = 2
displayCriticalHitNotify = false

Thats in config.lua.. What is wrong with it? I didnt even change it..

Fixed the message, thanks.

Will try to figure out how to register the items in movements.xml, thanks.
 
As far as I know, the critical hit system isn't working correctly.
If it does work correctly, then the multiplier is too high. I think you can only use numbers between 1 and 1.99.
I'm not exactly sure how the numbers work, but set it to 1.2 and see.

You need to register the items in movement.xml, look at the other equipments to see how it works.
You need an onEquipItem and a DeEquip, for example:

Lua:
<!-- Hiro Legs -->
<movevent type="Equip" itemid="2507" slot="legs" event="function" value="onEquipItem">
		<vocation id="4"/>
		<vocation id="8" showInDescription="0"/>
	</movevent>
	<movevent type="DeEquip" itemid="2507" slot="legs" event="function" value="onDeEquipItem"/>

Just change/add the vocation IDs if necessary.
 
Back
Top