• 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!

Transform + system 1.2 tfs pomoc

Nouel

New Member
Joined
Feb 9, 2016
Messages
16
Reaction score
1
Witam, posiadam transform system jednak posiada on pare błędów, sam nie umiem tego wyeliminować.
A mianowicie: Postać się transformuje, jest chwilowy efekt przy tranformowaniu, ale chcialbym dodać by byl stały efekt przy danym Vocationie:

Code:
local tablica = {
-- [vocation] = {nowy vocation, level, looktype, health, mana, efekt}
[1] = {15,50,892,77},
[15] = {16,100,893,77},
}
function onSay(cid, words, param)
voc = tablica[getPlayerVocation(cid)]
    if voc  ~= nil or voc[1] ~= nil then
        if getPlayerLevel(cid) >= voc[2] then
            doPlayerSetVocation(cid,voc[1])
            doCreatureChangeOutfit(cid, {lookType=voc[3]})
                        doSendMagicEffect(getCreaturePosition(cid),voc[4])
        else
            doPlayerSendCancel(cid, "You need "..voc[2].." level to transform.")
        end
    else
        doPlayerSendCancel(cid, "You dont have more transforms.")
    end
end

Chcialbym zrobić też by nie które profesje po wylogowaniu traciły transform i wracały do vocationa nr 1.
I jest jeszcze jeden problem. Gdy konczą się transformacje postać nie odnosi się do ustalonego warunku: czyli:
You don't have more transforms, potrafilby ktoś to naprawić tak by odnosił się do danego warunku. i dodać to co wyżej ?
I zrobić jeszcze normalny system revertu :) ?

Pracuje na tfsie 1.2 protocół: 10.96
 
Back
Top