11.10.2015, 19:04
Code:
function Verbluten()
{
local health = getHealth();
if (health < 31)
{
setHealth(health - 5);
addMessage(255, 0, 0, "Du verblutest langsam!");
addMessage(255, 0, 0, "Besorg dir besser etwas zum Regenerieren!");
}
else
{
if (health > 30)
killTimer(Verbluten);
}
}
// The Problem is, when he goes from 29-32 HP he become the -5 HP :/
function ANTIAFK()
{
local health = getHealth();
if (health > 89)
setExperience(getExperience + 100);
{
else
}
if (health < 90)
addMessage(255, 0, 0, "Du hast wenig Leben und bekommst deshalb keine Erfahrung!");
}
// here is the problem, that we wont accept "+".

Gothic-online.net
Back soon!
Back soon!