[Release / Guide] Editing map portal XMLs :)

Status
Not open for further replies.
Joined
May 23, 2008
Messages
628
Reaction score
4
Hallo thar everyone :)

I'm not sure if this was released already but... w/e...

Today I will be teaching you about editing portals through xml files :D

This guide will conatain how to edit portals to direct to a map, how to block portals, and how to make the default respawn map :)

Now... Let's get started! :)

How to edit portals to direct to another map

I will be using FM xml as an example...

First of all... ctrl + f portal
Now... Find the portal you want to edit and simply replace the map id with the map id you want it to direct to...
For example... the FM 1 portal is this block :
Code:
<imgdir name="3">
			<string name="pn" value="in01"/>
			<int name="pt" value="1"/>
			<int name="x" value="520"/>
			<int name="y" value="1"/>
			<int name="tm" value="910000001"/>
			<string name="tn" value="out00"/>
			<string name="script" value=""/>
		</imgdir>
Well... If I wanted to direct the portal to maybe let's say... FM 2.
I would do this (Edited part in bold)
Code:
<imgdir name="3">
			<string name="pn" value="in01"/>
			<int name="pt" value="1"/>
			<int name="x" value="520"/>
			<int name="y" value="1"/>
			<int name="tm" value="[B]910000002[/B]"/>
			<string name="tn" value="out00"/>
			<string name="script" value=""/>
		</imgdir>
Finished! Restart your server and taaa daa you can go to fm 2 by going through the fm 1 portal!

How to block portals​

Now... This part is EXTREMELY easy...
Find the portal you want to block and erase the whole block
For instance...
I want to block fm 1 portal... So I would have to remove this block
Code:
<imgdir name="3">
			<string name="pn" value="in01"/>
			<int name="pt" value="1"/>
			<int name="x" value="520"/>
			<int name="y" value="1"/>
			<int name="tm" value="910000001"/>
			<string name="tn" value="out00"/>
			<string name="script" value=""/>
		</imgdir>
(This doesn't block both ways)
Yay your finished!

How to change the respawn map and maps when you CC​

This is as simple as it gets :P
To change the map you want to respawn to when you die... Look for this line
Code:
<int name="returnMap" value="910000000"/>
Edit the map id to any valid map id and now whenever you die you will return to that map!
Now... When you want to make a person go to a map when you CC, simply find this line
Code:
<int name="forcedReturn" value="999999999"/>
Change the 999999999 to any map id you want to :)

Yay finished... This is probably my final release because Ragezone isn't as great as it was before....
Credits to me!
 
Haha, xml is so easy to read and rewrite :P
Havent tried anything to do with portals yet so meh.
Atleast i know its just as easy as the rest if i ever need to.
 
Hallo thar everyone :)


I'm not sure if this was released already but... w/e...

Today I will be teaching you about editing portals through xml files :D

This guide will conatain how to edit portals to direct to a map, how to block portals, and how to make the default respawn map :)


Now... Let's get started! :)

How to edit portals to direct to another map


I will be using FM xml as an example...

First of all... ctrl + f portal
Now... Find the portal you want to edit and simply replace the map id with the map id you want it to direct to...
For example... the FM 1 portal is this block :
Code:
<imgdir name="3">
            <string name="pn" value="in01"/>
            <int name="pt" value="1"/>
            <int name="x" value="520"/>
            <int name="y" value="1"/>
            <int name="tm" value="910000001"/>
            <string name="tn" value="out00"/>
            <string name="script" value=""/>
        </imgdir>
Well... If I wanted to direct the portal to maybe let's say... FM 2.
I would do this (Edited part in bold)
Code:
<imgdir name="3">
            <string name="pn" value="in01"/>
            <int name="pt" value="1"/>
            <int name="x" value="520"/>
            <int name="y" value="1"/>
            <int name="tm" value="[B]910000002[/B]"/>
            <string name="tn" value="out00"/>
            <string name="script" value=""/>
        </imgdir>
Finished! Restart your server and taaa daa you can go to fm 2 by going through the fm 1 portal!

How to block portals​


Now... This part is EXTREMELY easy...
Find the portal you want to block and erase the whole block
For instance...
I want to block fm 1 portal... So I would have to remove this block
Code:
<imgdir name="3">
            <string name="pn" value="in01"/>
            <int name="pt" value="1"/>
            <int name="x" value="520"/>
            <int name="y" value="1"/>
            <int name="tm" value="910000001"/>
            <string name="tn" value="out00"/>
            <string name="script" value=""/>
        </imgdir>
(This doesn't block both ways)
Yay your finished!

How to change the respawn map and maps when you CC​


This is as simple as it gets :P
To change the map you want to respawn to when you die... Look for this line
Code:
<int name="returnMap" value="910000000"/>
Edit the map id to any valid map id and now whenever you die you will return to that map!
Now... When you want to make a person go to a map when you CC, simply find this line
Code:
<int name="forcedReturn" value="999999999"/>
Change the 999999999 to any map id you want to :)

Yay finished... This is probably my final release because Ragezone isn't as great as it was before....
Credits to me!
I love you, And hate you at the same time :P I was looking for this for a while. And I couldn't do it myself. Now I see what I was doing wrong. Infinite thanks mate =)
 
Status
Not open for further replies.
Back