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

Amulet Of Loss

Status
Not open for further replies.

Archez

'
Senator
Joined
Jun 26, 2008
Messages
6,589
Solutions
1
Reaction score
73
Location
Mexico
Simple and weird question, with a necessary answer.

I'm using The Forgotten Server 0.3.3.

I just got 2 simple errors, I already posted one here, in the support board, about the vocations.

But this time, my amulet of loss is not working as a normal one.

The amulet of loss prevent the loss of items, but it stays in your neck after you die, and you should loose it after that.

Someone got any clue about this problem?

Server is runnin on normal PvP. Not enforced.

Items.xml
Code:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
		[B]<attribute key="charges" value="1"/>[/B]
	</item>
 
It was fixed in 0.3.4...

There is smart way how to fix this :D

Add these lines to playerdeath.lua:
Code:
	if getPlayerSlotItem(cid, 2) == 2173 then
		doPlayerRemoveItem(cid, 2173, 1)
	end

@edit (thanks for KaczooH, I realised that I failed etc xD)
Amulet of Loss has charges. If you make it with GM character:
/i amulet of loss or /i 2173
then it will have 100 charges.
(note. you can use /attr charges -1 to set AOL charges to 65535! >.>)

So you have to make sure you are givint it in the right way:
/i amulet of loss, 1 or /i 2173, 1 or doPlayerAddItem(cid, 2173, 1)

Anyways you can still use addition (up) do playerdeath.lua : f

Thanks,
Hermes
 
Last edited:
Simple and weird question, with a necessary answer.

I'm using The Forgotten Server 0.3.3.

I just got 2 simple errors, I already posted one here, in the support board, about the vocations.

But this time, my amulet of loss is not working as a normal one.

The amulet of loss prevent the loss of items, but it stays in your neck after you die, and you should loose it after that.

Someone got any clue about this problem?

Server is runnin on normal PvP. Not enforced.

Items.xml
Code:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
		[B]<attribute key="charges" value="1"/>[/B]
	</item>

Are you sure you are using aol bought from npc? I had the same issue, but than i explored that aols made by GMs do not dissaper after death, but aols bought from npcs does. So basicly there is no need to fix this, because ppl will use npc's ones. :p
 
Oh! Never tought about the 100 charges, lol! Please lol at me people. :)

Thanks Hermes and KaczooH!

Thread Closed!
 
Status
Not open for further replies.
Back
Top