• 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 Adapt systems that use XML into LUA?

Pedrinpo

New Member
Joined
Feb 16, 2019
Messages
11
Reaction score
3
hi, I don't type much on the forum, but now i found a problem to install systems that i found on this forum. I am currently with a 12.60x server [TFS 1.3] and it doesn't have files like actions.xml or creaturescripts.xml, the monsters are also configured differently. The problem is, I don't know how to install systems that ask to register id's in actions.xml, since it doesn't even exist on my server.
Here are two examples of systems that i don't know how to install them:
I would like to know if it is possible to adapt them to the format of my server.
Thanks for listening :)
 
Solution
I am currently with a 12.60x server [TFS 1.3]
OTServBr ?

data/scripts/actions/yourScript.lua
Lua:
local action = Action() -- create action

function action.onUse(player, item, fromPosition, itemEx, toPosition)

end

action:id( ITEM_ID )
-- or
action:aid( ITEM_ACTIONID )
-- or
action:uid( ITEM_UNIQUEID )

action:register()

You can look at more examples here
I am currently with a 12.60x server [TFS 1.3]
OTServBr ?

data/scripts/actions/yourScript.lua
Lua:
local action = Action() -- create action

function action.onUse(player, item, fromPosition, itemEx, toPosition)

end

action:id( ITEM_ID )
-- or
action:aid( ITEM_ACTIONID )
-- or
action:uid( ITEM_UNIQUEID )

action:register()

You can look at more examples here
 
Solution
Back
Top