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

Compiling Something wrong with Roxors Forever Aol.

Evil Mark

Active Member
Joined
Nov 23, 2008
Messages
1,707
Reaction score
32
I Was on my server using PvP-Mode, and this was a roxor server i was trying it, then i tried out the forever amulet of loss, and it didn't seem to work, people dropped loot in Every death.

Please solve this or send me a code to c++ lawl.
 
I Was on my server using PvP-Mode, and this was a roxor server i was trying it, then i tried out the forever amulet of loss, and it didn't seem to work, people dropped loot in Every death.

Please solve this or send me a code to c++ lawl.

1. It's not C++ codes
2. It's not compiling
3. Search next time

Easy fix.
To prevent item's to drop upon death
In items.xml change it to this:
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"/>
		<attribute key="charges" value="1"/>
	</item>

To remove AoL upon death
Go to:
/data/creaturescripts/scripts/ and open playerdeath.lua

Under:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
Add:
Code:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
So it looks like
This:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
 
1: Correct, so change it to: "preventLoss"
2: .Lua please

Hehe, i appreciate you trying to help, but it ain't got preventLoss, i told you.. this is a C++ Thing.


<item id="2172" article="a" name="bronze necklace">
<attribute key="weight" value="500"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="200"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentManaDrain" value="20"/>
</item>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
</item>
<item id="2174" article="a" name="strange symbol">
<attribute key="weight" value="200"/>
 
Look i treid alot at the Roxor!
i think you have to code c++ to fix it becuse its like the creaturescrpt not works. i try aloot of scripts in creature nothing works! not even shows a buged script in gui console!
 
Look i treid alot at the Roxor!
i think you have to code c++ to fix it becuse its like the creaturescrpt not works. i try aloot of scripts in creature nothing works! not even shows a buged script in gui console!

Agree, they don't work for me to -.-
 
If your using pvp enfo then you the amulet of loss dont work on tfs 0.2.

Im using PVP, The amulet of loss is working perfectly, it's just the forever amulet of loss and the WHOLE creaturescripts shit Section doesn't seem to be working, all i did was to download the server and to turn it on for a test.. lol what a *********************** DISSAPOINTMENT!
 
No shit, that's what you get for downloading a shit edited distro.


For starters you should make sure you added it to your login.lua
If you didn't, open data/creaturescripts/login.lua and
after
Code:
registerCreatureEvent(cid, "PlayerDeath")
add
Code:
registerCreatureEvent(cid, "EventNameForAolHere")

You should really get the official 0.2 version if you're interested in using a 0.2 based distro.
You can download that here:
http://otland.net/f18/forgotten-server-v0-2-mystic-spirit-10141/
 
Im using PVP, The amulet of loss is working perfectly, it's just the forever amulet of loss and the WHOLE creaturescripts shit Section doesn't seem to be working, all i did was to download the server and to turn it on for a test.. lol what a *********************** DISSAPOINTMENT!

Probably from limannen right?
 
Back
Top