[10.77+ - TFS 1.2] The Forgotten [WAR] Server v1.1 (UPDATED 17/12/15)

Discussion in 'Data Packs' started by mdwilliams, Jul 12, 2015.

Tags:
  1. xLosT

    xLosT Active Member

    Joined:
    Jan 11, 2010
    Messages:
    1,033
    Likes Received:
    11
    Best Answers:
    0
    @mdwilliams sorry, received level, not skills
     
  2. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    583
    Likes Received:
    109
    Best Answers:
    0
    @xLosT
    I haven't tested this, but it looks like it's just a case-sensitivity issue in one of the variables.

    - Open your war_login.lua
    - Find "KnightMeleeUp1 = 110"
    - Change to "knightMeleeUp1 = 110"
    - Save & Close

    I hope this helps
    Merry Christmas & Happy New Year!
     
    xLosT likes this.
  3. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    583
    Likes Received:
    109
    Best Answers:
    0
    A bug was reported in my frag reward script, here is the new one:

    Code (Text):
    1.  
    2. dofile("war_config.lua")
    3.  
    4. -- CREDIT TO NINJA @ OTLAND FOR THE BASE SCRIPT
    5. -- REF: https://otland.net/threads/tfs-1-0-experience-from-killing-higher-level-players.212691/#post-2039964
    6.  
    7. function onKill(cid, target, lastHit)
    8.  
    9.     local attackPlayer = Player(target)
    10.  
    11.     local reward = {
    12.             item = rewardItem,
    13.             count = rewardCount
    14.             }
    15.  
    16.     if not attackPlayer then
    17.         return true
    18.     end
    19.  
    20.     for id, damage in pairs(attackPlayer:getDamageMap()) do
    21.         local player = Player(id)
    22.         if player then
    23.             if player:getIp() ~= target:getIp() then
    24.                 local experience = attackPlayer:getExperience()
    25.                 local expFormula = (experience * expMultiplier)
    26.                 local bonusExpFormula = (experience * bonusExpMultiplier)
    27.  
    28.                 if player:getLevel() <= maximumLevel then
    29.                     player:addExperience(math.floor(expFormula), true)
    30.                     if player:getStorageValue(extraExpStor) >= 1 then
    31.                         player:addExperience(math.floor(bonusExpFormula), true)
    32.                         player:setStorageValue(extraExpStor, player:getStorageValue(extraExpStor) - 1)
    33.                         player:sendTextMessage(MESSAGE_INFO_DESCR, "Bonus frag EXP added! " .. player:getStorageValue(extraExpStor) .. " bonus frags remaining!")
    34.                     end
    35.                 end
    36.    
    37.                 player:addItem(reward.item, reward.count)
    38.                 player:setStorageValue(fragStor, player:getStorageValue(fragStor) + 1)
    39.  
    40.                 if player:getStorageValue(doubleFragRewardStor) >= 1 then
    41.                     player:addItem(reward.item, reward.count)
    42.                     player:setStorageValue(doubleFragRewardStor, player:getStorageValue(doubleFragRewardStor) -1)
    43.                     player:sendTextMessage(MESSAGE_INFO_DESCR, "Bonus frag reward added! " .. player:getStorageValue(doubleFragRewardStor) .. " bonus frags remaining!")
    44.                 end
    45.             end
    46.         end
    47.     end
    48. end
    49.  
     
  4. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    When I compile the SRC in the main post I open the TFS machine and the error is:

    Code (Text):
    1. A newer version of items.otb is required
    Then I replace from the SRC the items.otb and it does not start with the level 80 and shit.

    Some help?
     
  5. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    583
    Likes Received:
    109
    Best Answers:
    0
    My apologies @Imereth Popis, the source I have linked in the main post is for the master branch of the forgotten server project (Which was correct at the time of release, but has now moved passed compatibility with this datapack)
    The sources you will require for everything to 'just work' will be here: GitHub - otland/forgottenserver at 1.2
     
    Imereth Popis likes this.
  6. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    583
    Likes Received:
    109
    Best Answers:
    0
    @Imereth Popis also just to make sure you are following the correct procedure here:
    - Download this datapack
    - Compile the source to get your binary/exe
    - Move the binary/exe to the parent directory of the datapacks 'data' directory (the binary/exe should be with the config.lua, war_config.lua)
    - Execute the binary/exe

    It shouldn't be too hard to get this running with the latest versions of TFS either. Follow the same procedure but with the latest source code / nightly build. You may have to change out some assets in the databack to be compatible though (e.g. the data/items/items.otbm & items.xml files)
     
    Imereth Popis likes this.
  7. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    Thanks you for answering that fast

    That's the move. I tried with the 1.2 TFS, thanks It worked. The problem is when I replace the items.otbm and items.xml, the characters does not appear with the item set's. I don't want to change a lot of code cause I want no errors.

    I have to say that it's a perfect server, but I want to make it working it out 100%.

    Thanks you in advance.
     
  8. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    583
    Likes Received:
    109
    Best Answers:
    0
    If the item ID's in the different items.xml you are using do not match the original (official) - there will be issues.

    To fix the specific issue of characters not getting their item sets (provided it is due to item id's being incompatible) it should be as simple as updating the item ID's as seen in war_config.lua

    Code (Text):
    1. .. extract
    2. ----FIRST ITEMS------------------------------------------------
    3. commonItems = {
    4.                 ---------ALL VOCATIONS---------
    5.   {itemid=1988, count=1},     -- backpack
    6.   {itemid=2120, count=1},     -- rope
    7.   {itemid=5710, count=1},     -- shovel
    8.   {itemid=2420, count=1},     -- machete
    9.   {itemid=2789, count=10},    -- brown mushrooms
    10.   {itemid=2305, count=1},     -- fire bomb rune  
    11.   {itemid=2261, count=1},     -- destroy field rune
    12. }
    13.  
    14. firstItems = {
    15.              
    16.   {                 ---------SORCERER ITEMS---------
    17.     {itemid=2323, count=1},     -- hat of the mad          
    18.     {itemid=8871, count=1},     -- focus cape              
    19.     {itemid=7730, count=1},     -- blue legs              
    20.     {itemid=2195, count=1},     -- boots of haste          
    21.     {itemid=8902, count=1},     -- spellbook of mind control
    22.     {itemid=2187, count=1},     -- wand of inferno        
    23.                              
    24.     {itemid=2268, count=1},     -- sd
    25.     {itemid=2273, count=1},     -- uh
    26.     {itemid=7590, count=1},     -- gmp
    27.     {itemid=2293, count=1},     -- mw
    28.   },
    29.   {                 ---------DRUID ITEMS---------
    30.     {itemid=2323, count=1},     -- hat of the mad
    31.     {itemid=8871, count=1},     -- focus cape
    32.     {itemid=7730, count=1},     -- blue legs
    33.     {itemid=2195, count=1},     -- boots of haste
    34.     {itemid=8902, count=1},     -- spellbook of mind control
    35.     {itemid=2183, count=1},     -- hailstorm rod
    36.  
    37.     {itemid=2268, count=1},     -- sd
    38.     {itemid=2273, count=1},     -- uh
    39.     {itemid=7590, count=1},     -- gmp
    40.     {itemid=2293, count=1},     -- mw
    41.     {itemid=2269, count=1},     -- wg
    42.     {itemid=2278, count=1},     -- para
    43.   },
    44.   {                 ---------PALADIN ITEMS---------
    45.     {itemid=2493, count=1},     -- demon helmet
    46.     {itemid=8891, count=1},     -- paladin armor
    47.     {itemid=7730, count=1},     -- blue legs
    48.     {itemid=2195, count=1},     -- boots of haste
    49.     {itemid=2514, count=1},     -- mastermind shield
    50.     {itemid=7368, count=1},     -- assassin stars
    51.  
    52.     {itemid=2268, count=1},     -- sd
    53.     {itemid=2273, count=1},     -- uh
    54.     {itemid=8472, count=1},     -- gsp
    55.     {itemid=7589, count=1},     -- smp
    56.     {itemid=7588, count=1},     -- shp
    57.     {itemid=2293, count=1},     -- mw
    58.   },
    59.   {                 ---------KNIGHT ITEMS---------
    60.     {itemid=2493, count=1},     -- demon helmet
    61.     {itemid=2472, count=1},     -- magic plate armor
    62.     {itemid=2470, count=1},     -- golden legs
    63.     {itemid=2195, count=1},     -- boots of haste
    64.     {itemid=2514, count=1},     -- mastermind shield
    65.     {itemid=2400, count=1},     -- magic sword
    66.  
    67.     {itemid=7620, count=1},     -- mp
    68.     {itemid=7591, count=1},     -- ghp
    69.     {itemid=8473, count=1},     -- uhp
    70.     {itemid=2273, count=1},     -- uh
    71.     {itemid=2293, count=1},     -- mw
    72.   }
    73. }
    74. extract ..
    75.  
     
  9. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    This evening I will try this. Thank you a lot. I'll tell you some when done. +rep to the post
     

Share This Page

Loading...