• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua How to work with "objects" or rather the metatable?

Simbaclaws

ˁ(⦿ᴥ⦿)ˀ
Joined
Mar 15, 2016
Messages
41
Reaction score
1
Location
Netherlands
So basically what I need to know is what kind of parameters should be input to the objects that get instantiated.

For example these following metatables or object definitions exist:

I'm currently about to test each secondary function that exists for these metatable objects and I need to know what parameters these objects have so for example:

I would need to know what somevalue is:
Code:
local combat = Combat(somevalue)
local condition = Condition(somevalue)
local container = Container(somevalue)
local creature = Creature(somevalue)

I'm not quite sure what these metatable objects need in order to instantiate them. I've already searched the forgottenserver wiki but couldn't find an answer there.

Or perhaps, does it take nothing to instantiate them?
An explenation would be great.
 
Oh yeah, I totally forgot about that >.<
You' ve told me this before I can remember.

EDIT: hmmm I can't seem to find luaPartyCreate...
It looks like it's not in there.
 
Last edited:
Oh yeah, I totally forgot about that >.<
You' ve told me this before I can remember.

EDIT: hmmm I can't seem to find luaPartyCreate...
It looks like it's not in there.
You can't create party you can just get the party object doing:
player:getParty()

You can see this pull request:
https://github.com/otland/forgottenserver/issues/1365

There are others about the same subject haven't tested any tho,
 
Back
Top