• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help with my script transfrom/pomoc ze skrypten na transform

Brandolf

New Member
Joined
Oct 4, 2010
Messages
1
Reaction score
0
Tak jak w temacie :


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
 
Back
Top