• 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 1.X+ rewrite for 1.1?

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,210
Solutions
35
Reaction score
206
How can i rewrite this script for 1.1?
obs: in tfs 0.4 it returns correct "skin.lookType"
in tfs 1.1 it ever return NIL


Code:
            skin = {vocation[skin_quant]} -- return a value of outfit

            if skin.lookType == nil then -- here i need to rewrite, but i dont know why.. ever return nil, its bugged,
                return doPlayerSendCancel(cid, "Dont have skins!") and true
            end
 
I need to know: vocation is a array with some lookType list? hahaha

for the logic:
LUA:
if skin.lookType == nil then
 return player:sendCancelMessage("Dont have skins!") and true
end

Send all code please.

And about the rewrite of the code: (is really intuitive)
 

Similar threads

  • Question Question
Replies
4
Views
296
Back
Top