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

Solved TFS 1.0 Create item command

piku247

Judgment day is comming
Joined
Jun 15, 2009
Messages
70
Reaction score
135
Command /i is working, but when im trying to create a multiple of the same item like gold/arrows/bolts it does not work. E.g. /i 2160 is working, but /i 2160 100 does not. Anyone can help me with that?
 
Shit, working, so simple thanks :). Any chance you know how to add /save command? Was trying to add lua's from older/newer versions of tfs, but no luck on it.
 
Shit, working, so simple thanks :). Any chance you know how to add /save command? Was trying to add lua's from older/newer versions of tfs, but no luck on it.
Code:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end
   
    saveServer()
    return false
end
 
Tried this one already, doesn't work
image.png


@edit
solved, changed a bit code from clean.lua and maked save.lua from it, thanks fro help mate

Code:
function onSay(cid, words, param)
   local player = Player(cid)
   if not player:getGroup():getAccess() then
     return true
   end

   if player:getAccountType() < ACCOUNT_TYPE_GOD then
     return false
   end
  
  saveServer()
  return false
end
 
Last edited:
Back
Top