• 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 Problem third vocation

woody100_1

New Member
Joined
Aug 11, 2011
Messages
17
Reaction score
0
Let's see if I can help , I work with tfs 1.0 , if the player has promotion and reiterates its request promotion for the second time mark the error "attempt to call method ' ispromoted ' (a nil value) , I have running the third vocation and is causing me problems , is there any way to correct this error?

error-3ra-voc-1162663.jpg


Sorry for my English
 
Player.isPromoted does not exist in default TFS 1.0 so you have to add it in global.lua or any lib file:
Code:
function Player.isPromoted(self)
  local vocation = self:getVocation()
  if vocation:getId() == 0
      or vocation:getPromotion():getId() == 0 then
    return true
  end
  return false
end

in case you are using this project: https://github.com/PrinterLUA/FORGOTTENSERVER-ORTS
make sure that your files are up to date and the libraries are included correctly.
 
Back
Top