Jump to content

Ashok.N

Inactive Member
  • Posts

    25
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Ashok.N

  1. 1 hour ago, xP3NG3Rx said:

    Hello there!

    Somebody knows a working solution to reach the brazilian servers?
    I tried many of proxy servers w/ and w/o Ultrasurf also, but the state of the servers is "..." and I can't log in.

    Yeah, I want to decrypt it, but I cannot while I can't log in =/
    Thank you in advance.

    Somehow, the question is? Do you know any proxy_apps that allows you to connect to the server through the proxy? What does it mean for you reach? Do you want to connect through a proxy to a Brazilian server? Or can not you just connect to any Brazilian server because it has IP blocked for your country? Question is confusing for me ))))

    If you just want to connect to a Brazilian server with any proxy_app without receiving "..." then use cyberghostvpn. I personally tested it. I have put 100 ipps from different countries, there was no problem. I could connect normally.

    Note: I think you need to have a premium account to not receive "..." when select channels. If you make your account on the site and you are new, I think you have 7 days free of charge as a permium member and you can test it.

     

  2. 2 hours ago, FlorinMarian said:

    Can you help me doing this please ? :)

    I just know basically functions in C#, i'm not a developer.

    Then do not make server anymore, unless you have the will to learn.

     

    //ClientManagerPlayer.cpp
    //Search
    		snprintf(queryStr, sizeof(queryStr), "DELETE FROM guild_member WHERE pid=%d", pi->player_id);
    		CDBManager::instance().AsyncQuery(queryStr);
    // Add above
    		snprintf(queryStr, sizeof(queryStr), "DELETE FROM guild WHERE id=%d", pi->player_id);
    		CDBManager::instance().AsyncQuery(queryStr);

    Not tested

  3. 1 hour ago, Denny2399 said:

    Singleton.h is missing included assert.h or something like that. I have the same problem

    Sure, sure .. and the roses are blue? ))

    @Hik

    The problem is in the unique functions. More probably you used a wrong function somewhere in the unique lua functions. I have no idea. Nobody is a wizard to know what's in your files.  Backtrace it's very clear , core crash when try to load unique lua functions.

  4. 30 minutes ago, Ken said:

    It depends on you. In my case, pkItem is useless if you're just using that for a condition.

    
    if (ch->GetItem(p->ItemPos) && ch->GetItem(p->ItemPos)->IsEquipped())
    {
    	ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<Storage> You can't store an equiped item."));
    	return;
    }

    I think, it's much better now ^_^

    Best Regards

    Ken

    No, it's not better. You should care more about readibiliy. It is correct to define variables as long as they are good to make the code more readable.  If the coding style used by ymir is old, we do not have to follow the same example. I mean  the pseudo-hungarian names like pkItem , hungarian naming was originally invented for assembly language. Just use logical names..

    It was perfectly fine how it was before , just true == is a bad practice.

     

    Regards

  5. 3 hours ago, Ken said:
    
    LPITEM pkItem = ch->GetItem(p->ItemPos);
    
    // Make sure pkItem is not null pointer. Without that condition, the channel might down.
    if (pkItem && true == pkItem->IsEquipped())
    {
        ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<Storage> You can't store an equiped item."));
    		return;
    }

    Best Regards

    Ken

    true ==  useless

  6. 3 hours ago, z3imx said:

    just 

    like alwasy i want to do combile

    when i came to server i want 

    gamke all

    said "commond not found"

    what i need to do?

    You are blind ? Do not you see that you have to install gmake? You have an answer on top of you, that answer is a link to a video on youtube. Watch carefully, very carefully.

  7. What the hell. Stop saying that mysql is bad, mysql is the number one most popular database server in the world. I do not understand why all the kids come here and talk about changing mysql, if you read somewhere that mariadb is better than mysql, it does not mean it's better for metin. It's useless.
     

    Wikipedia is built on MySQL, that's good enough for me :) And you say it's old?  (wikipedia is the seventh most popular website in the world; has over two million articles and over 15 million pages in total)  Even google , eBay , yahoo use it.

    Leave mysql as it is, do not touch it .. it will scare and run away.  MySql DOES THE JOB JUST FINE.

    Do you think that you server have more query than wikipedia or yahoo or google? When i saw the title i was just frustrated " QUTE:  Mysql is ooooo 2010's "

     

  8. 3 hours ago, charparodar said:

    I didn't understand what you asked... This is the whole debug info I get from gdb

    
    root@source:~ # gdb /usr/home/game/share/bin/game /usr/home/game/cores/channel1/game1/game.core
    GNU gdb 6.1.1 [FreeBSD]
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "i386-marcel-freebsd"...
    Core was generated by `game'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /lib/libmd.so.5...done.
    Loaded symbols for /lib/libmd.so.5
    Reading symbols from /usr/lib/libstdc++.so.6...done.
    Loaded symbols for /usr/lib/libstdc++.so.6
    Reading symbols from /lib/libm.so.5...done.
    Loaded symbols for /lib/libm.so.5
    Reading symbols from /lib/libgcc_s.so.1...done.
    Loaded symbols for /lib/libgcc_s.so.1
    Reading symbols from /lib/libthr.so.3...done.
    Loaded symbols for /lib/libthr.so.3
    Reading symbols from /lib/libc.so.7...done.
    Loaded symbols for /lib/libc.so.7
    Reading symbols from /usr/lib/libsupc++.so.1...done.
    Loaded symbols for /usr/lib/libsupc++.so.1
    Reading symbols from /libexec/ld-elf.so.1...done.
    Loaded symbols for /libexec/ld-elf.so.1
    #0  CHARACTER::GetWear (this=0x0, bCell=21) at char_item.cpp:519
    519             return m_pointsInstant.pItems[INVENTORY_MAX_NUM + bCell];
    [New Thread 28c05500 (LWP 100137/game)]
    [New Thread 28c05200 (LWP 100133/game)]
    [New Thread 28c04f00 (LWP 100132/game)]
    [New Thread 28c04300 (LWP 100129/game)]
    (gdb)
    

    And this is syslog, since the moment I push the metin till the end:

    
    May 19 08:21:37.347535 :: /m 8001
    May 19 08:21:37.347572 :: COMMAND: charparodar: mob
    May 19 08:21:37.365720 :: LOG: INSERT DELAYED INTO command_log (userid, server, ip, port, username, command, date ) VALUES(2, 999, 'xxx', 1, 'charparodar', 'm 8001', NOW()) 
    May 19 08:21:38.437591 :: Packet Analyze [Header 61][bufferLeft 23] 
    May 19 08:21:38.437656 :: CInputMain::Analyze() ==> Header [61] 
    May 19 08:21:38.987117 :: Packet Analyze [Header 2][bufferLeft 9] 
    May 19 08:21:38.987143 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:38.987150 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:38.987162 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:38.987166 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:38.987170 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:38.987175 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :987150 type :1210986496
    May 19 08:21:39.246541 :: Packet Analyze [Header 2][bufferLeft 26] 
    May 19 08:21:39.246585 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:39.246591 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:39.246599 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.246603 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.246608 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.246613 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :246591 type :1210986496
    May 19 08:21:39.316699 :: Packet Analyze [Header 2][bufferLeft 9] 
    May 19 08:21:39.316785 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:39.316794 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:39.316807 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.316858 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.316865 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.316902 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :316794 type :1210986496
    May 19 08:21:39.526522 :: Packet Analyze [Header 2][bufferLeft 9] 
    May 19 08:21:39.526549 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:39.526555 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:39.526563 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.526567 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.526572 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.526577 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :526555 type :1210986496
    May 19 08:21:39.526592 :: AddAffect Metin da Dor type 209 apply 0 0 flag 4 duration 31
    May 19 08:21:39.796620 :: Packet Analyze [Header 2][bufferLeft 9] 
    May 19 08:21:39.796686 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:39.796692 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:39.796701 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.796705 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.796710 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:39.796715 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :796692 type :1210986496
    May 19 08:21:40.56530 :: Packet Analyze [Header 2][bufferLeft 9] 
    May 19 08:21:40.56565 :: CInputMain::Analyze() ==> Header [2] 
    May 19 08:21:40.56571 :: [TEST_SERVER] Attack : charparodar type 0, MobBattleType 0
    May 19 08:21:40.56580 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:40.56585 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:40.56590 :: battle_melee_attack : [charparodar] attack to [Metin da Dor]
    May 19 08:21:40.56595 :: battle_hit : [charparodar] attack to [Metin da Dor] : dam :56571 type :1210986496
    May 19 08:21:40.56657 :: Bonus Exp : Ramadan Candy: 0 MallExp: 0 PointExp: 0
    May 19 08:21:40.56668 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=2, npc=8001, pc2=0)
    May 19 08:21:40.56676 :: Click Quest : MatchingQuest
    May 19 08:21:40.56839 :: QUEST Setting flag event_dressup.__status 0
    May 19 08:21:40.56892 :: Click Quest : MatchingQuest
    May 19 08:21:40.56902 :: Click Quest : MatchingQuest
    May 19 08:21:40.57042 :: QUEST Setting flag devilcatacomb_zone.__status 0
    May 19 08:21:40.57165 :: QUEST Setting flag levelup.__status 0
    May 19 08:21:40.57179 :: GetQF ( levelup . select )
    May 19 08:21:40.57184 :: GetQF ( levelup . current )
    May 19 08:21:40.57249 :: QUEST Setting flag pvp_manager.__status 0
    May 19 08:21:40.57285 :: QUEST Setting flag xmas_2012.__status 0
    May 19 08:21:40.57322 :: QUEST Setting flag pet_system.__status 0
    May 19 08:21:40.57346 :: Drop money : Attacker charparodar

     

    Man, we need the whole backtrace.

  9. 11 hours ago, Pierx said:

    Yes, exactly what you said

    All right!

    ////////////////////////////////////
    // char.h
    // search :
    
    DWORD GetLastMoveTime() const {return m_dwLastMoveTime;}
    
    //Add under:
    
    DWORD GetLastCapeUseTime() const {return m_dwLastCapeUseIntTime;}
    
    /////////////////////////////////
    // char.h
    // search 
    
    DWORD m_dwLastMoveTime;
    
    //Add under:
    
    DWORD m_dwLastCapeUseIntTime;
    
    ////////////////////////////////
    // char.cpp
    // search :
    
    m_dwPlayStartTime = m_dwLastMoveTime = get_dword_time();
    
    // Add under :
    
    m_dwLastCapeUseIntTime = 0;
    
    ////////////////////////////
    // char.cpp
    // search :
    
    case UNIQUE_ITEM_CAPE_OF_COURAGE:
    case 70057:
    case 39006:
    case REWARD_BOX_UNIQUE_ITEM_CAPE_OF_COURAGE:
    	AggregateMonster();
    	item->SetCount(item->GetCount() - 1);
    	break;
    
    // replace
    
    case UNIQUE_ITEM_CAPE_OF_COURAGE:
    case 70057:
    case 39006:
    case REWARD_BOX_UNIQUE_ITEM_CAPE_OF_COURAGE:
    {
    	int CalcLastCapeUseSec = (get_dword_time() - GetLastCapeUseTime()) / 1000 + 0.5; 
    
    	if (CalcLastCapeUseSec < 1)
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Wait 1 second."));
    		return false;
    	}
    
    	AggregateMonster();
    	item->SetCount(item->GetCount() - 1);
    }
    break;

    I did not test it.  Replace 1 with the number of seconds.

  10. // Skill.h
    // Search :  SKILL_FLAG_FIRE = (1 << 26),
    
    SKILL_FLAG_SELFONLY_MAPINDEX_11 = (1  << 27),
    
    // char_skill.cpp
    // Search : Do this step x2 times
    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
    {
    	pkVictim = this;
    }	
    // Add under :
    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY_MAPINDEX_11) && && (pkVictim->GetMapIndex() == 11))
    {
    	pkVictim = this;
    }
    
    // char_skill.cpp
    // Search :
    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY) && (pkVictim->GetMapIndex() == 11))
    {
    	ComputeSkill(dwVnum, this);
    }
    	
    // Add under :
    if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY_MAPINDEX_11) && (pkVictim->GetMapIndex() == 11))
    {
    	ComputeSkill(dwVnum, this);
    }

    Navicat -> player.skill_proto ->  design table ->

    59f1cbe450c440bca60e1e205dbf71e9.png

    setFlag colum ->

    5b336444bb444e2fbf071ad813106fe9.png

    after  ATTACK_FIRE add a new value named  SELFONLY_MAPINDEX_11

    e39547cb229442318efbd279dbbc48a1.png

    Save the changes :) And exit. Now go in skill_proto colum setFlag and set the flag. 

    d4f0058400fe41b7a93386fe5b9d93cc.png

     

     

    NOT TESTED

    • Love 1
×
×
  • 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.