Jump to content

Deucalion

Member
  • Posts

    76
  • Joined

  • Last visited

  • Feedback

    0%

1 Follower

About Deucalion

  • Birthday 09/30/1996

Informations

  • Gender
    Not Telling

Recent Profile Visitors

2137 profile views

Deucalion's Achievements

Enthusiast

Enthusiast (6/16)

  • Very Popular Rare
  • First Post
  • Collaborator
  • Conversation Starter
  • One Month Later

Recent Badges

235

Reputation

  1. Problem is with SetOwnership yes? So maybe only need to add sth like this: if (ch->IsPet()) { for (CPetSystem::TPetActorMap::iterator iter = to->GetPetSystem()->m_petActorMap.begin(); iter != to->GetPetSystem()->m_petActorMap.end(); ++iter){ if (CPetActor* petActor = iter->second){ ch = petActor->GetOwner(); } } } in item.cpp in method void CItem::SetOwnership(LPCHARACTER ch, int iSec) above m_dwOwnershipPID = ch->GetPlayerID(); So the pice of code should look like this: if (true == LC_IsEurope()) { if (iSec <= 10) iSec = 30; } if (ch->IsPet()) { for (CPetSystem::TPetActorMap::iterator iter = to->GetPetSystem()->m_petActorMap.begin(); iter != to->GetPetSystem()->m_petActorMap.end(); ++iter){ if (CPetActor* petActor = iter->second){ ch = petActor->GetOwner(); } } } m_dwOwnershipPID = ch->GetPlayerID(); item_event_info* info = AllocEventInfo<item_event_info>(); It's untested! Efit: of course you need to add include "PetSystem.h" on the top of the file
  2. In char_battle.cpp you have sth like this void CHARACTER::Reward(bool bItemDrop) there you have if (CBattleArena::instance().IsBattleArenaMap(pkAttacker->GetMapIndex()) == false) { item->SetOwnership(pkAttacker); } And you can use method to take id or e.g create a new method bool isPet()
  3. Do you have included XTrapManager? (#include "XTrapManager.h")
  4. Hi I'm using pdo so my code look like this: $CreateAcount = $sth->prepare( "INSERT INTO account.account (login, password, email, social_id, question1, answer1, web_ip, register_token) VALUES (:login, :password, :email, :socialId, :question, :answer, :webIp, :registerToken)" ); $CreateAcount->execute(array(":login" => $login, ":password" => $password ,":email" => $email,":socialId" => $socialId,":question" => $question,":answer" => $answer,":webIp" => GetIP() ,"registerToken" => GetIP())); and here my question: How can I encrypt password ? Now when I write in field password e.g testpassword, in mysql password isn't encryptet, it's just "testpassword" Can u help me? Regards Deucalion
  5. I've searched also in binary solution, but I can't find nothing what may be useful in this case ;/
  6. Can anyone help me with this? I have changed things in tables.h, and others and still the same ;/ If vnum is > 65535 model is not showing in the game.
  7. So in 'ItemIdRangeManager.h' is defined const static DWORD cs_dwMaxItemID = 4290000000UL; and it is a unsigned long So I must change e.g in 'tables.h' from typedef struct tItemAwardInformer { char login[LOGIN_MAX_LEN + 1]; char command[20]; //¸í·Éľî unsigned int vnum; //ľĆŔĚĹŰ } TPacketItemAwardInfromer; to typedef struct tItemAwardInformer { char login[LOGIN_MAX_LEN + 1]; char command[20]; //¸í·Éľî unsigned long vnum; //ľĆŔĚĹŰ } TPacketItemAwardInfromer; I understand correctly?
  8. I already have: ITEM_ID_RANGE = 2000000000 2500000000 [Hidden Content] I've tried to find wchar_t , unsigned short and unsigned __int16, but I found nothing useful ;/ Can anyone help me with this?
  9. And you know where I can change it e.g into long int ? I can't find anything with short int and connected with item id/vnum ;/
×
×
  • 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.