• 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 Movements.xml MOD?

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hello,

I'm wondering if it's possible to add new movements to a mod file, so that I can always reload them.

And if it is possible, could anyone make a quick mod, since I don't know how to make them.

Thanks in advance,
unknown666
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Test" enabled="yes">
	<config name="Test"><![CDATA[
		config = {
			testing = 0
		}
	]]></config>
	<movevent type="StepIn" actionid="6000" event="buffer"><![CDATA[
		domodlib("Test")
		if isPlayer(cid) then
			doTeleportThing(cid, fromPosition, false)
			config.testing = config.testing + 1
		end
		return doPlayerSendTextMessage(cid, 20, config.testing .. "")
	]]></movevent>
</mod>
 
Just a mod where you can put items in and reload them.
Like demon legs, or something.

I.e.
Lua:
<item id="11104" article="a" name="dead Draken Warrior">
		<attribute key="weight" value="600" />
		<attribute key="containerSize" value="12" />
		<attribute key="decayTo" value="11105" />
		<attribute key="duration" value="600" />
		<attribute key="corpseType" value="blood" />
	</item>
 
you want it like a talkaction in a mod to reload items.xml or a script in a mod to open items.xml and load from them? or [?]
 
Lua:
<mod .... >
<item id="200" article"an" name="example">
      <attribute attack="10"/>
</item>

I want it like this, so that I'm able to edit items and reload them without having to restart my server every time.
I don't want them to load items.xml but just being able to edit/add item's and being able to reload them.
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Example" enabled="yes">
	<item id="11104" article="a" name="dead Draken Warrior"><![CDATA[
		<attribute key="weight" value="600"/>
		<attribute key="containerSize" value="12"/>
		<attribute key="decayTo" value="11105" />
		<attribute key="duration" value="600" />
		<attribute key="corpseType" value="blood" />
	]]></item>
</mod>
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Example" enabled="yes">
	<item id="11104" article="a" name="dead Draken Warrior"><![CDATA[
		<attribute key="weight" value="600"/>
		<attribute key="containerSize" value="12"/>
		<attribute key="decayTo" value="11105" />
		<attribute key="duration" value="600" />
		<attribute key="corpseType" value="blood" />
	]]></item>
</mod>

Lol, will that really work?
 
nice XDDD

thanks, will use this for sure _/

edit: can you add multiple items in 1 mod script?
yes, just the way i did it
example;
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Example" enabled="yes">
	<item id="11104" article="a" name="dead Draken Warrior"><![CDATA[
		<attribute key="weight" value="600"/>
		<attribute key="containerSize" value="12"/>
		<attribute key="decayTo" value="11105" />
		<attribute key="duration" value="600" />
		<attribute key="corpseType" value="blood" />
	]]></item>
	<item id="11104" article="a" name="dead Draken Warrior"><![CDATA[
		<attribute key="weight" value="600"/>
		<attribute key="containerSize" value="12"/>
		<attribute key="decayTo" value="11105" />
		<attribute key="duration" value="600" />
		<attribute key="corpseType" value="blood" />
	]]></item>
</mod>
 
Back
Top Bottom