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

2 Questions.

vejsa

Banned User
Joined
Nov 3, 2007
Messages
434
Reaction score
0
I just get to the point..

1: When players die they dont loose aol - How do I fix that? Aol script:
Code:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420" />
		<attribute key="slotType" value="necklace" />
		<attribute key="charges" value="1" />
		<attribute key="preventDrop" value="1" />
	</item>

2: When players reach a level I want so they get full hp/mana. Is that possible?

Thanks in advanced =)
 
1: When players die they dont loose aol - How do I fix that? Have you made the aol with a game master? like this:
/i amulet of loss
Then the aol get 100 charges, do like this:
/i amulet fo loss, 1
And if you dont have done them with gm idk :S
 
LUA:
function onAdvance(cid, skill, oldlevel, newlevel)
    if skill == SKILL__LEVEL then
        doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
        doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
    end
    return true
end
 
creaturescripts

Code:
  <event type="[B]advance[/B]" name="advanced" script="[B]SCRIPT_NAME[/B].lua"/>

go to login.lua and add this line:
Code:
registerCreatureEvent(cid, "[B]advanced[/B]")

+rep if works :)
 
Back
Top