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

i need help with a couple things!

Rexanilator

New Member
Joined
Oct 3, 2009
Messages
297
Reaction score
2
I need help making spell magic shield unlimited.

I need help making potions 5 charges each.

I need help making aols have charges (ex. You see a amulet of loss it has 15 charges or something.

Any help would be greatly appreciated :)
 
The amulet of loss with 15 charges.
Code:
	</item>
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="charges" value="15"/>
		<attribute key="preventDrop" value="1"/>
	</item>

Put this in ITEMS.XML

The Potions!

Code:
<attribute key="charges" value="5"/>

/\ should go under \/
Code:
<attribute key="weight" value="200"/>


EXAMPLE!

Code:
	</item>
	<item id="7588" article="a" name="strong health potion">
		<attribute key="weight" value="200"/>
[B]		<attribute key="charges" value="5"/>[/B]
		<attribute key="description" value="This potion can only be consumed by paladins and knights of level 50 or higher."/>
	</item>
 
Last edited:
#Rexanilator#
go to
actions/scripts/liquids

In scripts change
Code:
doTransformItem(item.uid, EMPTY_POTION)

To
Code:
doChangeTypeItem(item.uid,item.type -1)
if item.type == 0 then
	doTransformItem(item.uid, EMPTY_POTION)
end

#EDIT#
Ofc you must change items.xml that like write Donio :)
 
Back
Top