• 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+ Documentation question

BulawOw

Soul of Shinobi
Joined
Sep 15, 2014
Messages
204
Solutions
8
Reaction score
62
I got problem with understanding and i cant rly find answer on this forum thats why im making this thread.
So lets say we got this function
Code:
doCombat(cid, combat, param)

I dont rly know how all of that work and means, like:
Code:
cid
combat
param
uid
pid
(etc)

Is there some list that describe how it works and means i would rly aprreciate it cause im making documentation in my language to understatd it faster and easier.
Thanks Alot !
 
cid, pid, uid: they all mean uniqueids. "cid" stands for "creature id" while pid stands for "player id" but they are all just a reference for the unique id number of the item/creature.

combat: a reference for the combat you have created

param (or var): a reference for a table containing all the additional data your combat can have.

You can understand more about each of this structures reading the source code on combat.cpp and spells.cpp along with the luascript.cpp
 
Back
Top