Jump to content

Aliano

Inactive Member
  • Posts

    35
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Aliano

  1. Am 1.2.2017 um 14:39 schrieb Root:

    Hi there,

    I did this long time ago and i was thinking to share it, is not something wow but im still new in c++ and i dont really understand evrything so if u find any bugs in this system you are free to say.Search in server/game/pvp.cpp for :

      Unsichtbaren Inhalt anzeigen

     

    
    
    		if (pkPVP->Agree(pkChr->GetPlayerID()))
    		{

     

     

     

     

    Add under :

      Unsichtbaren Inhalt anzeigen

     

    
    
    for(int i = 0; i < INVENTORY_MAX_NUM; i++)
                            {
                                if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == 72723){
                                    pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName());
                                    pkChr->GetInventoryItem(i)->SetSocket(0, false);
                                    pkChr->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == 72724){
                                    pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName());
                                    pkChr->GetInventoryItem(i)->SetSocket(0, false);
                                    pkChr->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == 72725){
                                    pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName());
                                    pkChr->GetInventoryItem(i)->SetSocket(0, false);
                                    pkChr->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == 72726){
                                    pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName());
                                    pkChr->GetInventoryItem(i)->SetSocket(0, false);
                                    pkChr->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == 72723)
                                {
                                    pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName());
                                    pkVictim->GetInventoryItem(i)->SetSocket(0, false);
                                    pkVictim->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == 72724)
                                {
                                    pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName());
                                    pkVictim->GetInventoryItem(i)->SetSocket(0, false);
                                    pkVictim->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == 72725)
                                {
                                    pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName());
                                    pkVictim->GetInventoryItem(i)->SetSocket(0, false);
                                    pkVictim->GetInventoryItem(i)->Lock(false);
                                        
                                }
                                else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == 72726)
                                {
                                    pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName());
                                    pkVictim->GetInventoryItem(i)->SetSocket(0, false);
                                    pkVictim->GetInventoryItem(i)->Lock(false);
                                        
                                }

     

     

     

     

    Ok now we implement a function im not the author of it , the author is 


    So in pvp.cpp we search for:

      Unsichtbaren Inhalt anzeigen

     

    
    
    CPVPManager::~CPVPManager()
    {
    }
    //And we add under this @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    bool CPVPManager::HasDuel(LPCHARACTER pkChar) { 
        CPVPSetMap::iterator it = m_map_pkPVPSetByID.find(pkChar->GetPlayerID()); 
         
        if (it != m_map_pkPVPSetByID.end()) { 
            itertype(it->second) it2 = it->second.begin(); 
             
            while (it2 != it->second.end()) { 
                CPVP * pvp = *it2++; 
                if (pvp->IsFight()) 
                    return true; 
            } 
        } 
        return false; 
    } 

     

     

     

    In pvp.h we search this:

      Unsichtbaren Inhalt anzeigen
    
    
    CPVP *			Find(DWORD dwCRC);
    //And we add under @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    bool                    HasDuel(LPCHARACTER pkChar);

     

    Now we finished with this function that helps us to check if a player is in a duel.

    We open char_item.cpp and we search and add under:

      Unsichtbaren Inhalt anzeigen
    
    
    if (CArenaManager::instance().IsArenaMap(GetMapIndex()) == true)
    									{
    										ChatPacket(CHAT_TYPE_INFO, LC_TEXT("대련장에서 사용하실 수 없습니다."));
    										return false;
    									}
    //Add under this @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                            LPCHARACTER ch = quest::CQuestManager::instance().GetCurrentCharacterPtr();
                                                                            if(CPVPManager::Instance().HasDuel(ch) && item->GetVnum() == 72723 || 	 CPVPManager::Instance().HasDuel(ch) && item->GetVnum() == 72724 || CPVPManager::Instance().HasDuel(ch) && item->GetVnum() == 72725 || CPVPManager::Instance().HasDuel(ch) && item->GetVnum() == 72726)
                                                                            {
                                                                            	ChatPacket(CHAT_TYPE_INFO, "%s you cannot use auto potions while you are in a duel.", ch->GetName());
    										return false;    
                                                                            }

     

    I think thats it,I will come later with extra code for banning other potions like normal red or blessing.

    Have a nice day.

    Best regards Root.

    error:
    char_item.cpp:3934: error: 'CPVPManager' has not been declared

  2. MA4Lcab.png

    syserr:

    SYSERR: Nov 12 13:57:24 :: locale_find: LOCALE_ERROR: "로그인 화면으로 돌아 갑니다. 잠시만 기다리세요.";
    SYSERR: Nov 12 13:57:24 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";
    SYSERR: Nov 12 13:57:25 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";
    SYSERR: Nov 12 13:57:26 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";

     

    ps. everything is translated in the locale_string

  3. Hello,

    i want to know why i get 0 UNKNOW PROCESS HEADER with rev 67210 but with 70220 more then enough?

    is there no way to get the Source for rev67210? i am ready to pay. i am not very happy with all the new revs

    for example:

    Process: UNKNOWN HEADER: 117, LAST HEADER: 7(17), REMAIN BYTES: 1, fd: 20
    Process: UNKNOWN HEADER: 63, LAST HEADER: 3(5), REMAIN BYTES: 3, fd: 21
    Process: UNKNOWN HEADER: 63, LAST HEADER: 0(0), REMAIN BYTES: 4, fd: 21
    Process: UNKNOWN HEADER: 63, LAST HEADER: 0(0), REMAIN BYTES: 13, fd: 21

     

  4. vor 26 Minuten schrieb pelimpolem:

    Now solve that problem by doing the same as with the other lib

    the problem is that now I miss this error

    /usr/lib32/libc.so.7: version FBSD_1.5 required by /usr/lib32/libmysqlclient.so.18 not found


    Could it be the frebsd version? use 10.3 what version does the game use?

    i had the same problem with the libc.so.7. this lib is a system lib. everything i tried, did not work! Only to change the Server Hoster.

  5. vor 5 Minuten schrieb Vanilla:

    does this work?

    This is the hidden content, please

    with this db the game is loading and the db syserr is empty.

    BUT

    i cant see me dressed equipment (no problem with 70220) and in the channel syserr:

     

    SYSERR: Nov  7 22:46:09 :: locale_find: LOCALE_ERROR: "로그인 화면으로 돌아 갑니다. 잠시만 기다리세요.";
    SYSERR: Nov  7 22:46:09 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";
    SYSERR: Nov  7 22:46:10 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";
    SYSERR: Nov  7 22:46:11 :: locale_find: LOCALE_ERROR: "%d초 남았습니다.";
    SYSERR: Nov  7 22:46:42 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:46:44 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:47:00 :: locale_find: LOCALE_ERROR: "아이템 획득: %s";
    SYSERR: Nov  7 22:49:42 :: CharacterSelect: no account table

     

  6. still this error in db syserr with your new prebuilt files:

     

    SYSERR: Nov  7 22:31:52 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1=24 WHERE `id`=13' at line 1
    query: UPDATE player_index SET `pid`1=24 WHERE `id`=13
    

     

    and the same problem

  7. ps: i created a new character

    this in channel:

    SYSERR: Nov  7 21:25:08 :: GetServerLocation: location error name  mapindex 0 0 x 0 empire 3

    and this in db syserr:

    SYSERR: Nov  7 21:25:08 :: ChildLoop: AsyncSQL: query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=1' at line 1 (query: SELECT id, name, job, level, playtime, st, ht, dx, iq, part_main, part_hair, x, y, skill_group, change_name` FROM player WHERE account_id`=1 errno: 1064)
    SYSERR: Nov  7 21:25:30 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1=22 WHERE `id`=1' at line 1
    query: UPDATE player_index SET `pid`1=22 WHERE `id`=1
    SYSERR: Nov  7 21:25:36 :: ChildLoop: AsyncSQL: query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=1' at line 1 (query: SELECT id, name, job, level, playtime, st, ht, dx, iq, part_main, part_hair, x, y, skill_group, change_name` FROM player WHERE account_id`=1 errno: 1064)



     

  8. SYSERR: Nov  7 18:26:01 :: Process: UNKNOWN HEADER: 108, LAST HEADER: 254(2), REMAIN BYTES: 13, fd: 21
    SYSERR: Nov  7 18:26:12 :: Process: UNKNOWN HEADER: 23, LAST HEADER: 254(2), REMAIN BYTES: 8, fd: 20
    SYSERR: Nov  7 18:29:01 :: Process: UNKNOWN HEADER: 97, LAST HEADER: 0(0), REMAIN BYTES: 28, fd: 21
    SYSERR: Nov  7 18:29:12 :: Process: UNKNOWN HEADER: 23, LAST HEADER: 0(0), REMAIN BYTES: 9, fd: 20
    SYSERR: Nov  7 18:29:12 :: Process: UNKNOWN HEADER: 23, LAST HEADER: 0(0), REMAIN BYTES: 18, fd: 20
    SYSERR: Nov  7 18:30:48 :: Process: UNKNOWN HEADER: 245, LAST HEADER: 0(0), REMAIN BYTES: 39, fd: 21
    SYSERR: Nov  7 18:30:49 :: Process: UNKNOWN HEADER: 245, LAST HEADER: 0(0), REMAIN BYTES: 56, fd: 21
    SYSERR: Nov  7 18:30:49 :: Process: UNKNOWN HEADER: 25, LAST HEADER: 0(0), REMAIN BYTES: 73, fd: 21
    SYSERR: Nov  7 18:30:50 :: Process: UNKNOWN HEADER: 187, LAST HEADER: 0(0), REMAIN BYTES: 90, fd: 21
    SYSERR: Nov  7 18:30:50 :: Process: UNKNOWN HEADER: 156, LAST HEADER: 0(0), REMAIN BYTES: 107, fd: 21
    SYSERR: Nov  7 18:30:50 :: Process: UNKNOWN HEADER: 129, LAST HEADER: 12(9), REMAIN BYTES: 80, fd: 21
    SYSERR: Nov  7 18:30:51 :: Process: UNKNOWN HEADER: 89, LAST HEADER: 0(0), REMAIN BYTES: 97, fd: 21
    SYSERR: Nov  7 18:30:51 :: Process: UNKNOWN HEADER: 103, LAST HEADER: 0(0), REMAIN BYTES: 131, fd: 21
    SYSERR: Nov  7 18:30:51 :: Process: UNKNOWN HEADER: 228, LAST HEADER: 0(0), REMAIN BYTES: 148, fd: 21
    SYSERR: Nov  7 18:30:51 :: Process: UNKNOWN HEADER: 200, LAST HEADER: 0(0), REMAIN BYTES: 165, fd: 21
    SYSERR: Nov  7 18:30:51 :: Process: UNKNOWN HEADER: 152, LAST HEADER: 0(0), REMAIN BYTES: 182, fd: 21
    SYSERR: Nov  7 18:30:52 :: Process: UNKNOWN HEADER: 201, LAST HEADER: 53(14), REMAIN BYTES: 185, fd: 21
    SYSERR: Nov  7 18:30:52 :: Process: UNKNOWN HEADER: 130, LAST HEADER: 0(0), REMAIN BYTES: 219, fd: 21
    SYSERR: Nov  7 18:30:53 :: Process: UNKNOWN HEADER: 126, LAST HEADER: 0(0), REMAIN BYTES: 236, fd: 21
    SYSERR: Nov  7 18:30:53 :: Process: UNKNOWN HEADER: 151, LAST HEADER: 0(0), REMAIN BYTES: 253, fd: 21
    SYSERR: Nov  7 18:30:53 :: PartyInvite: PARTY Cannot find invited character
    SYSERR: Nov  7 18:30:53 :: Process: UNKNOWN HEADER: 177, LAST HEADER: 72(6), REMAIN BYTES: 264, fd: 21
    SYSERR: Nov  7 18:30:54 :: Process: UNKNOWN HEADER: 217, LAST HEADER: 0(0), REMAIN BYTES: 281, fd: 21
    SYSERR: Nov  7 18:30:54 :: Process: UNKNOWN HEADER: 93, LAST HEADER: 0(0), REMAIN BYTES: 298, fd: 21
    SYSERR: Nov  7 18:30:54 :: Process: UNKNOWN HEADER: 37, LAST HEADER: 113(13), REMAIN BYTES: 302, fd: 21
    SYSERR: Nov  7 18:30:55 :: Process: UNKNOWN HEADER: 165, LAST HEADER: 0(0), REMAIN BYTES: 319, fd: 21
    SYSERR: Nov  7 18:30:55 :: Process: UNKNOWN HEADER: 95, LAST HEADER: 61(6), REMAIN BYTES: 330, fd: 21
    SYSERR: Nov  7 18:30:55 :: Process: UNKNOWN HEADER: 195, LAST HEADER: 0(0), REMAIN BYTES: 347, fd: 21
    SYSERR: Nov  7 18:30:56 :: Process: UNKNOWN HEADER: 22, LAST HEADER: 0(0), REMAIN BYTES: 364, fd: 21
    SYSERR: Nov  7 18:30:56 :: Process: UNKNOWN HEADER: 148, LAST HEADER: 0(0), REMAIN BYTES: 381, fd: 21
    SYSERR: Nov  7 18:30:56 :: Process: UNKNOWN HEADER: 91, LAST HEADER: 77(9), REMAIN BYTES: 387, fd: 21
    SYSERR: Nov  7 18:30:56 :: Process: UNKNOWN HEADER: 110, LAST HEADER: 0(0), REMAIN BYTES: 404, fd: 21
    SYSERR: Nov  7 18:30:57 :: Process: UNKNOWN HEADER: 127, LAST HEADER: 0(0), REMAIN BYTES: 421, fd: 21
    SYSERR: Nov  7 18:30:57 :: Handshake: Invalid Handshake on 21
    SYSERR: Nov  7 18:30:57 :: Process: UNKNOWN HEADER: 122, LAST HEADER: 0(0), REMAIN BYTES: 424, fd: 21

     

    is it possible to get the rev67210 Source ? i am ready to pay for.

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