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

Lua TFS moved from 10.76 to 10.41, need help.

  • Thread starter Thread starter tejdi
  • Start date Start date
T

tejdi

Guest
Hello everyone.
I've moved tfs from 10.76 to 10.41, but i need help with scripts.
I've a lot bugs like it:

3o8bfw.jpg


Someone told me how to repair it:

Code:
function onUse(cid,***)
local player = Player(cid)

and

Code:
 local player = Player(creature)

But it will be a lot of job if i have to do everyscript one by one.
Can i add it to every .lua fastest way?
 
You can do it replacing in Notepad++ or Sublime, changing just the param name of the function onUse(this one, ~) to cid or adding the extra line as you've been told.
 
We have more than 100 spells in this game and i've a lot scripts with player/creature param it's just impossible to do in one day by this metod probably
 
Ok, so i've done change for "local player" but now i've recived this error when i use spells (:onTargetCreature, :onGetFormulaValues). What should i do now?

9s1a27.jpg
 
Back
Top