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

TFS 0.X problem with new effects

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
Hello, i add new effect to client (number 71 in client but in const.h 70) but if i say in game /z 70 i see

"Numeric param may not be lower than 0 and higher than 69.

But why if i added to const.h next effect? (i compile again sources btw)
 
go to talkactions.xml and look for the /z command, check that file

yea i know, its magiceffects.lua but check what is in this file, in const.h i changed CONST_ME_LAST for my effects so why it not work?

Code:
function onSay(cid, words, param, channel)
    param = tonumber(param)
    if(not param or param < 0 or param > CONST_ME_LAST) then
        doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than " .. CONST_ME_LAST .. ".")
        return true
    end

    doSendMagicEffect(getCreaturePosition(cid), param)
    return true
end

and i have one more question, cuz i add new item to client but if i try run new client i get error

"Cannot open file 'C:\Users\user\Desktop\tibia 8.60\Tibia.dat'.
(Error Code 4)
(Please re-install the program)
 
Back
Top