What's new

Revert

Status
Not open for further replies.

Elessar12

User
Joined
Oct 28, 2010
Messages
13
Reaction score
0
Witam, mam skrypt na revert, kt?ry dzia?a w 100%, ale gdy dodaj?:
Code:
doPlayerAddHealthMax(cid, -200)
doPlayerAddManaMax(cid, -100)
?eby po tym jak wpisz? revert odj??o mi od maksymalnej ilo?ci many i hp okre?lon? liczb? to ju? nie dzia?a.

O to skrypt:
Code:
function onSay(cid, words, param)
if getPlayerVocation(cid) == 19 then ---Ichigo
doPlayerSetVocation(cid, 2)
doPlayerAddHealthMax(cid, -200)
doPlayerAddManaMax(cid, -100)
local outfit = { lookType = 30 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doPlayerSendCancel(cid, "You revert!")
else
doPlayerSendCancel(cid, "You can not revert.")
end

end
Dzia?am na silniku DevLand-XML_0.97b_
Prosz? o pomoc!
Pozdrawiam!
 

thel gilius

Advanced User
Joined
Apr 6, 2008
Messages
203
Reaction score
2
Odp: Revert

Na Twoim Silniku na 99% Nieda Sie Zrobic By Odejmowalo Od Maksymalnego HP
 

Elessar12

User
Joined
Oct 28, 2010
Messages
13
Reaction score
0
Odp: Revert

Je?eli u?ywam doPlayerAddHealthMax(cid, 200) ?eby dodawa?o hp to dzia?a.
Da si? jako? doda? funkcj? ?eby odejmowa?o hp?
 
Status
Not open for further replies.
Top