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

RevScripts Tutorial to convert scripts from tfs 0.4 to 1.3

rafsfd

New Member
Joined
Dec 20, 2010
Messages
10
Reaction score
0
Is there any tutorial or tip to convert scripts from tfs 0.4 to 1.3?
 
Here you can see the list of functions otland/forgottenserver (https://github.com/otland/forgottenserver/wiki/Script-Interface)
As I see, the title of every tab say the function on 0.4, and when you click on it, you will be directed to the function you have to use instead for 1.3. You can also use this post to get 0.4 functions reference [LUA] 0.4 TFS Functions (https://otland.net/threads/lua-0-4-tfs-functions.149040/) and 1.3 reference here [TFS 1.3][Tools]Lua Functions (https://otland.net/threads/tfs-1-3-tools-lua-functions.268766/)

--------Edit, for a better answer.
If you have in a script, for example:

Code:
  doPlayerFeed(cid, value)
  doCreatureSay(cid, "You eaten a piece of food.", TALKTYPE_MONSTER)
  doSendMagicEffect(getPlayerPosition(cid), value)

You can replace for
Code:
player:feed(value)
player:say(value, TALKTYPE_MONSTER_SAY)
player:getPosition():sendMagicEffect(value)

Regards!
 
Last edited:
Back
Top