Help with Warserver

Place for sharing your game modifications for Life is Feudal: Your Own

LeandroAmorim
 
Posts: 10
Joined: 02 Sep 2016, 03:48

Help with Warserver

Post by LeandroAmorim » 21 Sep 2016, 14:47

Hello all.

I'm a LIF-player highly inclined for the PvP side, and looking towards it, I asked myself if it was possible to run a server exclusively for PvP.
Years ago I spent so many time playing Ultima Online on warshards and thought it could be a good way for a PvP server on LIF.

Since i'm completely newbie to modding, some help would be appreciated. I want to run a server where all players starts with full skills, status and items (depending on the race selected). Plus, I thought about a hall where it would be impossible to enter combat and players could heal instantly. The hall leads to the arenas where players will kill themselves.

U guys think its doable? Any suggestions? Anyone willing to help me out with this?

Thanks!


Hieve
 
Posts: 39
Joined: 11 Sep 2016, 05:52

Re: Help with Warserver

Post by Hieve » 02 Oct 2016, 07:51

LeandroAmorim wrote:I want to run a server where all players starts with full skills, status and items (depending on the race selected).

This should be possible by setting up Triggers in the Database that will bring up a pre definied skill set and items when creating a new character, there were alreadys way mentioned in the forums to edit the player loadout/spawngear and setup new/overwrite spawn locations, so skills should be pretty similar to it
LeandroAmorim wrote:Plus, I thought about a hall where it would be impossible to enter combat and players could heal instantly. The hall leads to the arenas where players will kill themselves.

You can use basilmod safe and restzone for both of these cases, while the safezone disables combat in a certain area does restzone heal people in a certain area.
LeandroAmorim wrote:U guys think its doable? Any suggestions? Anyone willing to help me out with this?

it should be pretty good doable , you just got to invest some time and try out
Image


LeandroAmorim
 
Posts: 10
Joined: 02 Sep 2016, 03:48

Re: Help with Warserver

Post by LeandroAmorim » 06 Nov 2016, 15:27

Hieve wrote:
LeandroAmorim wrote:I want to run a server where all players starts with full skills, status and items (depending on the race selected).

This should be possible by setting up Triggers in the Database that will bring up a pre definied skill set and items when creating a new character, there were alreadys way mentioned in the forums to edit the player loadout/spawngear and setup new/overwrite spawn locations, so skills should be pretty similar to it


Thanks for the reply! I tried to do it editing cm_createchar.xml as described on additional-inventory-items-on-character-creation-t5094/ . But now the bag just starts empty. Here's my cm_createchar.xml:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<xml>
   <items>
IF @raceID=1 THEN
SET @charID = LAST_INSERT_ID();
   SET @temp = f_addSkill(@charID, 34, 900000000, 1);
   SET @temp = f_addSkill(@charID, 42, 900000000, 1);
   SET @temp = f_addSkill(@charID, 43, 900000000, 1);
   SET @temp = f_addSkill(@charID, 44, 900000000, 1); 
   SET @temp = f_addSkill(@charID, 45, 900000000, 1);
      SET @backpack = NEW.RootContainerID;
   SET @temp = f_insertNewItemInventory(@sack, 547, 100, 1, 50000, 50000, NULL, NULL); /* elmo plate */
   SET @temp = f_insertNewItemInventory(@sack, 548, 100, 1, 50000, 50000, NULL, NULL); /* peitoral plate */
   SET @temp = f_insertNewItemInventory(@sack, 549, 100, 1, 50000, 50000, NULL, NULL); /* braco plate */
   SET @temp = f_insertNewItemInventory(@sack, 550, 100, 1, 50000, 50000, NULL, NULL); /* luva plate */
   SET @temp = f_insertNewItemInventory(@sack, 551, 100, 1, 50000, 50000, NULL, NULL); /* pernas plate */
   SET @temp = f_insertNewItemInventory(@sack, 552, 100, 1, 50000, 50000, NULL, NULL); /* botas plate */
   SET @temp = f_insertNewItemInventory(@sack, 580, 100, 1, 50000, 50000, NULL, NULL); /* bardiche */
   SET @temp = f_insertNewItemInventory(@sack, 582, 100, 1, 50000, 50000, NULL, NULL); /* marreta */
END IF;

IF @raceID=2 THEN
SET @charID = LAST_INSERT_ID();
   SET @temp = f_addSkill(@charID, 34, 900000000, 1);
   SET @temp = f_addSkill(@charID, 39, 900000000, 1);
   SET @temp = f_addSkill(@charID, 36, 900000000, 1);
   SET @temp = f_addSkill(@charID, 37, 900000000, 1);
   SET @temp = f_addSkill(@charID, 39, 900000000, 1);
   SET @temp = f_addSkill(@charID, 40, 900000000, 1);
   SET @temp = f_addSkill(@charID, 43, 900000000, 1);
      SET @backpack = NEW.RootContainerID;
   SET @temp = f_insertNewItemInventory(@sack, 815, 100, 1, 50000, 50000, NULL, NULL); /* elmo escama */
   SET @temp = f_insertNewItemInventory(@sack, 816, 100, 1, 50000, 50000, NULL, NULL); /* peitoral escama */
   SET @temp = f_insertNewItemInventory(@sack, 817, 100, 1, 50000, 50000, NULL, NULL); /* braco escama */
   SET @temp = f_insertNewItemInventory(@sack, 818, 100, 1, 50000, 50000, NULL, NULL); /* luva escama */
   SET @temp = f_insertNewItemInventory(@sack, 819, 100, 1, 50000, 50000, NULL, NULL); /* pernas escama */
   SET @temp = f_insertNewItemInventory(@sack, 820, 100, 1, 50000, 50000, NULL, NULL); /* botas escama */
   SET @temp = f_insertNewItemInventory(@sack, 580, 100, 1, 50000, 50000, NULL, NULL); /* bardiche */
   SET @temp = f_insertNewItemInventory(@sack, 616, 100, 1, 50000, 50000, NULL, NULL); /* escudo */
   SET @temp = f_insertNewItemInventory(@sack, 564, 100, 1, 50000, 50000, NULL, NULL); /* big falchion */
   SET @temp = f_insertNewItemInventory(@sack, 573, 100, 1, 50000, 50000, NULL, NULL); /* picareta de guerra */
END IF;

IF @raceID=3 THEN
SET @charID = LAST_INSERT_ID();
   SET @temp = f_addSkill(@charID, 27, 900000000, 1);
   SET @temp = f_addSkill(@charID, 34, 900000000, 1);
   SET @temp = f_addSkill(@charID, 39, 900000000, 1);
   SET @temp = f_addSkill(@charID, 36, 900000000, 1);
   SET @temp = f_addSkill(@charID, 48, 900000000, 1);
   SET @temp = f_addSkill(@charID, 49, 900000000, 1);
   SET @backpack = NEW.RootContainerID;
   SET @temp = f_insertNewItemInventory(@sack, 841, 100, 1, 50000, 50000, NULL, NULL); /* elmo malha */
   SET @temp = f_insertNewItemInventory(@sack, 842, 100, 1, 50000, 50000, NULL, NULL); /* peito malha */
   SET @temp = f_insertNewItemInventory(@sack, 843, 100, 1, 50000, 50000, NULL, NULL); /* braco malha */
   SET @temp = f_insertNewItemInventory(@sack, 844, 100, 1, 50000, 50000, NULL, NULL); /* luva malha */
   SET @temp = f_insertNewItemInventory(@sack, 845, 100, 1, 50000, 50000, NULL, NULL); /* pernas malha */
   SET @temp = f_insertNewItemInventory(@sack, 846, 100, 1, 50000, 50000, NULL, NULL); /* botas malha */
   SET @temp = f_insertNewItemInventory(@sack, 601, 100, 1, 50000, 50000, NULL, NULL); /* arco curto */
   SET @temp = f_insertNewItemInventory(@sack, 610, 100, 15, 50000, 50000, NULL, NULL); /* machadinha */
   SET @temp = f_insertNewItemInventory(@sack, 656, 100, 100, 50000, 50000, NULL, NULL); /* flecha perfurante */
   SET @temp = f_insertNewItemInventory(@sack, 564, 100, 1, 50000, 50000, NULL, NULL); /* big falchion */
END IF;



   </items>
</xml>
Hieve wrote:
LeandroAmorim wrote:Plus, I thought about a hall where it would be impossible to enter combat and players could heal instantly. The hall leads to the arenas where players will kill themselves.

You can use basilmod safe and restzone for both of these cases, while the safezone disables combat in a certain area does restzone heal people in a certain area.

Thanks, I'll try it once I solve the first problem.
Hieve wrote:
LeandroAmorim wrote:U guys think its doable? Any suggestions? Anyone willing to help me out with this?

it should be pretty good doable , you just got to invest some time and try out

I'm pretty new to programming, and dont know much about SQL so I guess its not that easy for a complete begginer.

Return to Game mods

cron