Jump to content

TMP4

Contributor
  • Posts

    1110
  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Community Answers

  1. TMP4's post in Bug doble mount when revived was marked as the answer   
    So you do not give us details, but it is your lucky day, i gonna predict what you did.
     
    -You did install the "mount system renewal"
    -You did not remove the old quest(s) for mounts
     
    I hope now you know what to do.
  2. TMP4's post in need new yang window was marked as the answer   
  3. TMP4's post in REGEN.TXT COMMAND was marked as the answer   
    int _set_regen_in_map( lua_State * L )     {         int iMapIndex = static_cast<int>(lua_tonumber(L, 1));         std::string szFilename(lua_tostring(L, 2));         LPSECTREE_MAP pkMap = SECTREE_MANAGER::instance().GetMap(iMapIndex);         if (pkMap != NULL)         {             regen_load( szFilename.c_str(), iMapIndex, pkMap->m_setting.iBaseX ,pkMap->m_setting.iBaseY );         }         return 0;     } { "set_regen_in_map", _set_regen_in_map }, I made it back in the time so i pasted for you. Endymion right, regen_load function is what needed. Add it to questlua_global.cpp
    Keep in mind you can't cancel it lol. If you make a clear regen function, it will clear the map's basic regen too.
    If you want to cancel it would be better to use that map as a dungeon.
  4. TMP4's post in HOW TO] add default bonuses to equipments was marked as the answer   
    It is correct even with sql or txt.
     
    So a guess: Do you have 15249 once in item_proto or do you have duplicate line?
    If you don't have a duplicate, can you check to change bonus in another item? 
     
    --------------------------

    According to your private message
     
  5. TMP4's post in time regen.txt was marked as the answer   
    20031 This is santa as i remember, and it is intended to disappear.
    (Originally it appears and disappers in Sohan but Gameforge never used this event)
     
    Open xmas_event.h from game source and look for this:
    MOB_SANTA_VNUM = 20031, //Ȑ٠And edit the vnum to something else what you don't use.
    You can remove the whole santa system if you like to.
  6. TMP4's post in bug shopoffiline + new price was marked as the answer   
    That bug is not actually caused by offline shop originally, just every offline shop uses the normal shop mechanism that already bugged.
    It was presented in gayforge's servers too until ~2017 btw
    The problem: Monsters can get the same vid what used a player/npc already with shop.
     
    To fix for normal shops: uiprivateshopbuilder.py
     
    search:
        def OnUpdate(self):         if not self.vid:             return                 if systemSetting.IsShowSalesText(): modify:
    def OnUpdate(self): if not self.vid: return if chr.GetInstanceType(self.vid) not in [chr.INSTANCE_TYPE_PLAYER,chr.INSTANCE_TYPE_NPC]: self.Hide() DeleteADBoard(self.vid) if systemSetting.IsShowSalesText(): For offline shop you have to do the same thing, maybe the DeleteADBoard can be different named but that's all. For Ken's shop it is not different.
     
    ----------------------------
     
    Adding a new currency to offline shop is not something like can be done with "just pass me a tutorial"
    We do not even know what version are u using, i know 4 different offline shop and some other what not public.
    This won system have tutorial for Great's offline shop, maybe you can use it as a template if you're using Great's.
     
  7. TMP4's post in 1 map for full game was marked as the answer   
    There was a hungarian server what used the 16x16 "4 Mondi" by Luscha.
    It run without any problem, but there wasen't too much player, i say it never went above 300.
     
    The possible negative sides:
    -People use 2 or 3 cores / channel to load balancing. It is not available with only one map.
    -The client should be load a 16*16 map instead of the 4*6 map1. Probably not a problem in 2020, we're not playing in old pentiums anymore
    -You probably want programming the realtime .msenv changes since it's only one map
     
    Even after that i say it can be "ok" to run one map.
  8. TMP4's post in problem Won System was marked as the answer   
    You can remove that g_bChinaIntoxicationCheck completly from your char.cpp.
    Chinese laws require such restriction to prevent addiction.
    Martysama replaced the locale_newcibn (the china server) check with that variable if you wonder why you dont have it.
     
    If you dont want to remove that china check then replace it with:
    if (LC_IsNewCIBN() && amount > 0)
  9. TMP4's post in "random" items in weapon/armor shop was marked as the answer   
    I don't think anyone will give you a c++ code, it's not 1-2 line.
     
    Alternative solution:
    You can make some shops for the same npc and at quest you open a random one. You can make a timer for it, or eventflag, or even you can use the date time or what meets your needs.
     
    example:
     
    when npcid.click begin
    local x = math.random(1,3)
    if x == 1 then npc.open_shop(1) end
    if x == 2 then npc.open_shop(2) end
    if x == 2 then npc.open_shop(3) end
    end
     
    -------------------------------------------------------------------
     
    Or grab gaya system and change point_gem to point_gold.
    You'll face some problem because it only support 1 slot items for example and the released one at turkmmo is quite bad made.
  10. TMP4's post in problem in 4 Inventory Page was marked as the answer   
    Those are images.
    Inventory page II not showing because it is under the III and IV inventory page's button image in your case.
     
    So you have to change the Page I and II image to the small one like III and IV, and edit I and II's x and y coordinates to place it in the right.
    (locale_xy.eix-epk inventorywindow.py)
     
    Some tutorial not mentioning such things cause it is straightforward they think.
  11. TMP4's post in Problem in compile was marked as the answer   
    Your error: gmake[2]: gcc49: Command not found
     
    So install it:
    cd /usr/ports/lang/gcc49/ && make install clean  
    Since you're using a 6-7years old system i do not reccomend to update the ports, current ports are not compatible with 9.2.
    (Just if anyone wondering why i didn't mentioned "portsnap fetch extract update" command, that's why)
  12. TMP4's post in guild ladder_point was marked as the answer   
    Hi, actully it is a good idea!
     
    db/GuildManager.cpp
    void CGuildManager::ProcessDraw(DWORD dwGuildID1, DWORD dwGuildID2) { sys_log(0, "GuildWar: \tThe war between %d and %d is ended in draw", dwGuildID1, dwGuildID2); GuildWarDraw(dwGuildID1); GuildWarDraw(dwGuildID2); ChangeLadderPoint(dwGuildID1, 1); //edited 0 to 1 ChangeLadderPoint(dwGuildID2, 1); //edited 0 to 1 QueryRanking(); } void CGuildManager::ProcessWinLose(DWORD dwGuildWinner, DWORD dwGuildLoser) { GuildWarWin(dwGuildWinner); GuildWarLose(dwGuildLoser); sys_log(0, "GuildWar: \tWinner : %d Loser : %d", dwGuildWinner, dwGuildLoser); //Commented these because we set the score manually to 3 or 0 under // int iPoint = GetLadderPoint(dwGuildLoser); // int gain = (int)(iPoint * 0.05); // int loss = (int)(iPoint * 0.07); // if (IsHalfWinLadderPoint(dwGuildWinner, dwGuildLoser)) // gain /= 2; // sys_log(0, "GuildWar: \tgain : %d loss : %d", gain, loss); ChangeLadderPoint(dwGuildWinner, 3); //edited ChangeLadderPoint(dwGuildLoser, 0); //edited QueryRanking(); } Maybe i would change the loss to 1 point and draw to 2, then people would do wars any way, at least they get a point.
     
    Also in game/guild.h i would change the minimum member from 8 to 4 at least.
    GUILD_WAR_MIN_MEMBER_COUNT = 8,   
  13. TMP4's post in Changing position of UI elements with different resolutions was marked as the answer   
    Of course it will be wrong because you still use wndChat's paramteres while it's not related to wndChat anymore.
    You want to stick with the upper right corner, so you don't need wndMgr.GetScreenHeight(), you only need wndMgr.GetScreenWidth().
    (Using ScreenHight would make it stick to the bottom right corner btw)
     
    Try this:
    yangText = self.NewGoldChat(None, wndMgr.GetScreenWidth() - 50, 125) This code make it stick -50 pixel in right, and -125 from top.
     
    These numbers are not accurate with your wish, i don't have that type of yangChat to test where it will fit 100% with your exception,
    so you'll have to test and edit those numbers. I just guessed rough numbers where it will be somewhat good.
  14. TMP4's post in Problem in lvl 300 was marked as the answer   
    He probably forgot to edit navicat/player/player table level column from byte[255] to int[2,1billion]
    Right click in player table -> design table -> level column byte->int 
  15. TMP4's post in simple enquiry about Constants.cpp was marked as the answer   
    Maybe you have 105 in your channel's CONFIG file? That's overwrite the lenght.h
  16. TMP4's post in problem in syserr was marked as the answer   
    CLAW is Wolfman's, maybe you have wolfman in your client, but not in binary?
    At least your problem surely related to wolfman.
  17. TMP4's post in Disconnecting from the Server after Character Selection was marked as the answer   
    Here you are: 
    Do the second way, same but will have a config option.
  18. TMP4's post in Searching for Costume Weapon was marked as the answer   
    Type in google: metin2 costume weapon system value3
    Click on the first hit, register, like&reply something cause that forum needs it to show spoilers and be happy
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.