Tak jak w temacie :
PL:
mogły ktoś przerobić ten skrypt tak aby jeżeli warunek nie jest spełniony było napisane 'You cannot transform', aby dodawało hp oraz manę. (Tzn zrobiłem ze mane dodaje ale hp nie działa ;/) oraz najważniejsze czy mogły ktoś tak zrobić żebym w tym 1 skrypcie mógł konfigurować dla kilku profesji ? a nie dla kazdej osobno.
Eng:
I need to upgrade this script with new functions:
+ hp and mp
+ If condition isnt done then msg "You cannot transform"
+ I need to configure in this script many vocations, not just one
PHP:
function onSay(cid, words, param)
local cfg = {
oldVoc = 15,
level = 400,
effect = 231,
newVoc = 16,
longEffect = 22,
newOutfit = {lookType = 237, lookTypeEx = 0, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
}
if getPlayerVocation(cid) == cfg.oldVoc then
if getPlayerLevel(cid) >= cfg.level then
doSendMagicEffect(getCreaturePosition(cid), cfg.effect, true)
doPlayerSetVocation(cid, cfg.newVoc)
doCreatureChangeOutfit(cid, cfg.newOutfit)
function eventtrans(cid)
if isPlayer(cid) then
doSendMagicEffect(getPlayerPosition(cid), cfg.longEffect)
addEvent(eventtrans, 1000, cid)
end
vc = addEvent(eventtrans, 1000, cid)
doSendAnimatedText(getCreaturePosition(cid), "Kaioken", COLOR_WHITE)
return true
end
end
end
end
PL:
mogły ktoś przerobić ten skrypt tak aby jeżeli warunek nie jest spełniony było napisane 'You cannot transform', aby dodawało hp oraz manę. (Tzn zrobiłem ze mane dodaje ale hp nie działa ;/) oraz najważniejsze czy mogły ktoś tak zrobić żebym w tym 1 skrypcie mógł konfigurować dla kilku profesji ? a nie dla kazdej osobno.
Eng:
I need to upgrade this script with new functions:
+ hp and mp
+ If condition isnt done then msg "You cannot transform"
+ I need to configure in this script many vocations, not just one