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

MODS help needed!

renancs

New Member
Joined
Jul 8, 2008
Messages
252
Reaction score
3
Hello guys, im looking to how i can set CONTANTS in MODS,
im implementing the SHOP system in mine ot, and i dont wanna to edit nothing inside of OT DATA/

and theres anothers ones that i wanna to add...
how i can do this?
 
At this moment its impossible to do GLOBAL variables visible everywhere in MODS, like you said - but it won't be needed anyway because you can do small library in mods and include it in every script.

For example:
Code:
<lib name="myscript_library"><![CDATA[
	VARIABLE_TEST = 1
	VARIABLE_TEST2 = 2

	function myFunctionTest()
		return "YESSSSSSSSSS"
	end
]]></lib>

<talkaction words="/test" event="script"><![CDATA[
	domodlib('myscript_library')

	function onSay(cid, words, param, channel)
		echo(myFunctionTest())
		return true
	end
]]></talkaction>
 
oh!
o already solved mine "problem" i was forgotte, that we are able to add new libraries into LIBS, and i added those that i needed!

slawkens realy thank you!
and one more thing, did you know where can i found some tutors, and explains about the MODs syntax?

thank you!
CYa
 
oh!
o already solved mine "problem" i was forgotte, that we are able to add new libraries into LIBS, and i added those that i needed!

slawkens realy thank you!
and one more thing, did you know where can i found some tutors, and explains about the MODs syntax?

thank you!
CYa

Probably there are none yet, but its simple - you can declare anything there same as in data/ (Modifications (mods) [The Forgotten Server 0.3 wiki])
 
Back
Top