admin_land_abilities.xml

General discussion about Life is Feudal: Your Own, The main section and backbone of the forums.

Sydron
True Believer
 
Posts: 11
Joined: 18 May 2017, 16:42

admin_land_abilities.xml

Post by Sydron » 29 Nov 2019, 22:21

I have been trying to create some admin lands with some custom permissions. This post is specifically about setting "ability" for admin lands.


<land>
<name>tradepost</name>
<allowed>
<ability>7</ability> <!-- Use Shovel to Lower Ground Level -->
<ability>9</ability> <!-- Use Shovel to Flat Ground -->
<ability>10</ability> <!-- Use Shovel to Flat Upward Slope -->
<ability>11</ability> <!-- Use Shovel to Flat Downward Slope -->
<ability>69</ability> <!-- Use Shovel to Plow -->
<ability>70</ability> <!-- Use Shovel to Raise Ground Level -->
<ability>90</ability> <!-- Skin -->
<ability>108</ability> <!-- Special Look in Inventory -->
<ability>110</ability> <!-- Drop from Inventory -->
<ability>144</ability> <!-- Special Open/Close Door -->
<ability>146</ability> <!-- Prayer for Homecoming -->
<ability>147</ability> <!-- Praise your God! -->
<ability>212</ability> <!-- Special Open/Close the Gate -->
<ability>223</ability> <!-- Special Hide-->
<ability>224</ability> <!-- Special Get on -->
<ability>226</ability> <!-- Special Get Off -->
<ability>248</ability> <!-- Bless with a God's Mercy -->
<ability>249</ability> <!-- Bless with a God's Love -->
<ability>294</ability> <!-- Trade -->
<ability>300</ability> <!-- Put in Cart -->
<ability>301</ability> <!-- Pull from Cart -->
<ability>347</ability> <!-- Praise the God! -->
</allowed>
<restricted>
<ability>8</ability> <!-- Pour on the Ground -->
<ability>97</ability> <!-- Drop Object -->
<ability>170</ability> <!-- Create a Snare -->
<ability>173</ability> <!-- Create a Trap -->
<ability>12</ability> <!-- Dig a Tunnel Forward -->
<ability>13</ability> <!-- Dig a Tunnel Downward -->
<ability>14</ability> <!-- Dig a Tunnel Upward -->
</restricted>
</land>

I added this adminclaim rule to the admin_land_abilities.xml. the Problem is, it's not working. if I name the admin land a default name like abellaCentral, newbieWholeArea, newbieVillage or newbieQuestCoops. those rules work, but it doesn't seem to let me add new names or even add abilities to existing names. I am hoping someone could help me with what I am doing wrong.


Sydron
True Believer
 
Posts: 11
Joined: 18 May 2017, 16:42

Re: admin_land_abilities.xml

Post by Sydron » 04 Dec 2019, 23:24

Not sure if my question is understood. I have a server, I want to place admin lands to protect roads, Tradeposts, and possibly clay pits. But I also want people to be able to get on their horse. None of the set admin claims allow for a player to "get on" get back on their horse. I read that you can create a name and add abilities and it should work but I haven't had any luck with it. So I don't know if there is another place I have to edit or if this is something that has to be done before the game first starts.

User avatar
KuraiSeraph
 
Posts: 39
Joined: 27 Mar 2017, 12:30

Re: admin_land_abilities.xml

Post by KuraiSeraph » 16 Dec 2019, 13:49

Hi,

this post is better in Game Mods.

add this to your admin_land_abilities.xml

<land>
<name>getonhorse</name>
<allowed>
<ability>224</ability> <!-- Get on the Horse -->
<ability>226</ability> <!-- Get off the Horse -->
</allowed>
</land>

put the edited admin_land_abilities.xml in your client
and in the server under the data folder.

go to your database in the table admin_lands and add by the name getonhorse

all changes works after server restart

Kurai


Sydron
True Believer
 
Posts: 11
Joined: 18 May 2017, 16:42

Re: admin_land_abilities.xml

Post by Sydron » 24 Dec 2019, 22:03

Thank you, I did what you suggested and it worked. However, this only works if all players have this file in their data folder. But at least it's working. Thank you

Return to General Discussion