What's new

Skrypty & Kody addCreatureHealth bug

Status
Not open for further replies.

Skibi184

Active User
Joined
Jan 16, 2014
Messages
96
Reaction score
1
Witam, tworze sobi? nowego potka, i ma problem kt?ry polega na tym ?e je?li ilo?? hp w addCreatureHealth przekroczy 999, czyli np. 1000+ to dodaje same HP a many ju? nie. Normalnie je?li dodaj hp mniej ni? 1000 to dodaj mane i hp, jak to naprawi??
Code:
if(getPlayerVocation(item2.uid) == 1 or getPlayerVocation(item2.uid) == 2 or getPlayerVocation(item2.uid) == 5 or getPlayerVocation(item2.uid) == 6) then
			doPlayerAddMana(item2.uid, lvl*getPlayerSkill(item2.uid, 0)/2.2)
			doCreatureAddHealth(item2.uid, lvl*getPlayerSkill(item2.uid, 0)/4.5)

To tylko cze?? kodu. Reszta kodu to elseif kt?re sprawdza reszte profesji i end na koniec. W konsoli nie ma b??d?w.
 

subzero123

Active User
Joined
Apr 13, 2012
Messages
104
Reaction score
2
Odp: addCreatureHealth bug

Podaj ca?y kod. if getPlayerHealth > 1000 then r?b to i to else r?b tamto.
 

Skibi184

Active User
Joined
Jan 16, 2014
Messages
96
Reaction score
1
Odp: addCreatureHealth bug

Poradzi?em sobi? z problemem, z pomoc? iSanto. Dzi?kuje
 
Status
Not open for further replies.
Top