Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer problem...
#1
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 "+".
I hope anyone can help Smile
Gothic-online.net

Back soon!


Messages In This Thread
Timer problem... - by Jayson - 11.10.2015, 19:04
RE: Timer problem... - by Profesores - 11.10.2015, 20:13
RE: Timer problem... - by Jayson - 11.10.2015, 20:53
RE: Timer problem... - by Profesores - 11.10.2015, 21:01
RE: Timer problem... - by Jayson - 11.10.2015, 21:07
RE: Timer problem... - by Sative - 12.10.2015, 10:54
RE: Timer problem... - by Jayson - 15.10.2015, 22:56

Possibly Related Threads…
Thread Author Replies Views Last Post
  mysql module new problem in 0.1.0 Baster 2 3,639 12.07.2017, 10:58
Last Post: Baster

Forum Jump:


Users browsing this thread: 1 Guest(s)