• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Converting to Mod Service

Syntax

Developer
Joined
Oct 10, 2007
Messages
2,890
Reaction score
466
Location
Texas
If anyone needs me to convert your scripts to Mods I will do so if I can. This should show people howto do it and hopefully get some more mods out there.
 
Easier installation/deinstallation, possibility of disabling mode in a sec, testing modified script without deleting old because mods override previously loaded data if something is doubled, and a lot more probably, this is only stuff i found looking at mods structure and some small info
 
For me mods are useless, better to put all in data ;p
 
Cause i can add all into data, and i don't like when putting all into 1 file like in mods, for me grouping to creaturescripts/talkactions etc. is neater.

You can also group it in the mods folder. You can organize it your own way, and when updating it goes way faster:O.
 
What's mods xD?

Is a new feature inplemented in Crying Damson 0.3.5.

In a mod-script you can use actions, talkactions, movements, creaturescripts, globalevents, monsters, spells, npcs, etc...

Example:
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Example" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<action itemid="2195" event="buffer"><![CDATA[
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
	]]></action>

	<movevent type="StepIn" itemid="8292" event="script">

	if getPlayerLevel(cid) > 100 then
		doPlayerSendTextMessage(cid, 25, "Bla bla bla..."
	end
	</movevent>
</mod>

In this mod-script is included an action-script and a movement-script. (If you use itemid 2195 (boots of haste) a magic effect is sended to your position, if you walk in a tile (id: 8292) and you are level 100 or more you get a message).
 
The upside to mods is great, heres the main reasons

  • Easy disable/enable
  • Easy to install. Just paste 1 .xml file into a folder.
  • Easy to read descr, config.
  • Shows who created the mod and howto contact for support.
  • Makes it easy to update to a new distro, just copy ur .xml files to new mod folder.
 
Oo I was looking at this and didn't understand shiznit - best place to get more info on it?
 

Similar threads

Back
Top