Jump to content
×
×
  • Create New...

SamuraiHUN

Member
  • Posts

    12
  • Joined

  • Last visited

About SamuraiHUN

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SamuraiHUN's Achievements

Enthusiast

Enthusiast (6/14)

  • Collaborator
  • Conversation Starter
  • First Post
  • One Month Later
  • Dedicated Rare

Recent Badges

7

Reputation

  1. I think it would only be a good idea to have a guild | group version, so that everyone can hear everyone else, which would lead to a lot of conflict.
  2. Is it possible that you didn't call locale_inc.h from the Userinterface project somewhere?
  3. ui.py class Window(object): search this: def GetLocalPosition(self): return wndMgr.GetWindowLocalPosition(self.hWnd) add under this: def GetGlobalPosition(self): return wndMgr.GetWindowGlobalPosition(self.hWnd) I don't know why lordsas wanted to add it to the Dragbutton class.
  4. [Hidden Content] 0.0.1 modification: Fixed the path to the uiaffectshower.py + add image ymir work/ui/dragonsoul folder.
  5. if app.ENABLE_DS_SET: self.tooltipItem.BindInterface(self) add this before: self.tooltipItem = uiToolTip.ItemToolTip() interfacemodule.py
  6. #ifdef ENABLE_PLAYER_PER_ACCOUNT5 PyModule_AddIntConstant(poModule, "ENABLE_PLAYER_PER_ACCOUNT5", 1); #else PyModule_AddIntConstant(poModule, "ENABLE_PLAYER_PER_ACCOUNT5", 0); #endif but i don't know why use this wolfman. This system have a cringe code.
  7. #problem solved. Thank you @Ikarus_. I found the pythontextail.cpp one line differential.
  8. Hello guys, i have one question, what function set player, mob name? npc, myshop, offlineshop, pet/mount work perfectly, but player, mob didn't show name(s), level, rank, guild. Have anyone idea? [Hidden Content]
  9. My bugs opponent this. I saw npc/shop name but i didn't saw mob/characte name. void CHARACTER::EncodeInsertPacket(LPENTITY entity) { LPDESC d; if (!(d = entity->GetDesc())) return; // ±ćµĺŔ̸§ ąö±× ĽöÁ¤ ÄÚµĺ LPCHARACTER ch = (LPCHARACTER)entity; ch->SendGuildName(GetGuild()); // ±ćµĺŔ̸§ ąö±× ĽöÁ¤ ÄÚµĺ TPacketGCCharacterAdd pack; pack.header = HEADER_GC_CHARACTER_ADD; pack.dwVID = m_vid; #if defined(__WJ_SHOW_MOB_INFO__) if (IsMonster() || IsStone()) { pack.dwLevel = GetLevel(); pack.dwAIFlag = IsMonster() ? GetAIFlag() : 0; } else { pack.dwLevel = 0; pack.dwAIFlag = 0; } #endif pack.bType = GetCharType(); pack.angle = GetRotation(); pack.x = GetX(); pack.y = GetY(); pack.z = GetZ(); pack.wRaceNum = GetRaceNum(); if (IsPet()) { pack.bMovingSpeed = 150; } else { pack.bMovingSpeed = GetLimitPoint(POINT_MOV_SPEED); } pack.bAttackSpeed = GetLimitPoint(POINT_ATT_SPEED); pack.dwAffectFlag[0] = m_afAffectFlag.bits[0]; pack.dwAffectFlag[1] = m_afAffectFlag.bits[1]; pack.bStateFlag = m_bAddChrState; int iDur = 0; if (m_posDest.x != pack.x || m_posDest.y != pack.y) { iDur = (m_dwMoveStartTime + m_dwMoveDuration) - get_dword_time(); if (iDur <= 0) { pack.x = m_posDest.x; pack.y = m_posDest.y; } } d->Packet(&pack, sizeof(pack)); if (IsPC() == true || m_bCharType == CHAR_TYPE_NPC) { TPacketGCCharacterAdditionalInfo addPacket; memset(&addPacket, 0, sizeof(TPacketGCCharacterAdditionalInfo)); addPacket.header = HEADER_GC_CHAR_ADDITIONAL_INFO; addPacket.dwVID = m_vid; addPacket.awPart[CHR_EQUIPPART_ARMOR] = GetPart(PART_MAIN); addPacket.awPart[CHR_EQUIPPART_WEAPON] = GetPart(PART_WEAPON); addPacket.awPart[CHR_EQUIPPART_HEAD] = GetPart(PART_HEAD); addPacket.awPart[CHR_EQUIPPART_HAIR] = GetPart(PART_HAIR); #ifdef __ACCE_COSTUME_SYSTEM__ addPacket.awPart[CHR_EQUIPPART_ACCE] = GetPart(PART_ACCE); #endif addPacket.bPKMode = m_bPKMode; addPacket.dwMountVnum = GetMountVnum(); addPacket.bEmpire = m_bEmpire; addPacket.dwLevel = 0; addPacket.dwGuildID = 0; #if defined(__OFFLINE_PRIVATE_SHOP_SYSTEM__) addPacket.dwMyShopVID = (IsPC() ? COfflineShopManager::Instance().GetOfflineShopVID(GetPlayerID()) : 0); #endif strlcpy(addPacket.name, GetName(), sizeof(addPacket.name)); if (IsPC() == true) addPacket.dwLevel = GetLevel(); if (GetGuild() != NULL) { addPacket.dwGuildID = GetGuild()->GetID(); } addPacket.sAlignment = m_iAlignment / 10; d->Packet(&addPacket, sizeof(TPacketGCCharacterAdditionalInfo)); } if (iDur) { TPacketGCMove pack; EncodeMovePacket(pack, GetVID(), FUNC_MOVE, 0, m_posDest.x, m_posDest.y, iDur, 0, (BYTE)(GetRotation() / 5)); d->Packet(&pack, sizeof(pack)); TPacketGCWalkMode p; p.vid = GetVID(); p.header = HEADER_GC_WALK_MODE; p.mode = m_bNowWalking ? WALKMODE_WALK : WALKMODE_RUN; d->Packet(&p, sizeof(p)); } if (entity->IsType(ENTITY_CHARACTER) && GetDesc()) { LPCHARACTER ch = (LPCHARACTER)entity; if (ch->IsWalking()) { TPacketGCWalkMode p; p.vid = ch->GetVID(); p.header = HEADER_GC_WALK_MODE; p.mode = ch->m_bNowWalking ? WALKMODE_WALK : WALKMODE_RUN; GetDesc()->Packet(&p, sizeof(p)); } } if (GetMyShop()) { TPacketGCShopSign p; p.bHeader = HEADER_GC_SHOP_SIGN; p.dwVID = GetVID(); strlcpy(p.szSign, m_stShopSign.c_str(), sizeof(p.szSign)); d->Packet(&p, sizeof(TPacketGCShopSign)); } #ifdef __OFFLINE_PRIVATE_SHOP_SYSTEM__ if (IsOfflineShopNPC() && (GetRaceNum() == 30000 || (GetRaceNum() >= 30002 && GetRaceNum() <= 30008))) { if (entity->IsType(ENTITY_CHARACTER)) { LPOFFLINESHOP shop = GetOfflineShop(); if (shop) { TPacketGCShopSign p; p.bHeader = HEADER_GC_OFFLINE_SHOP_SIGN; p.dwVID = GetVID(); p.bBorderStyle = shop->GetBorderStyle(); strlcpy(p.szSign, shop->GetShopSign(), sizeof(p.szSign)); d->Packet(&p, sizeof(TPacketGCShopSign)); } } } #endif if (entity->IsType(ENTITY_CHARACTER)) { sys_log(3, "EntityInsert %s (RaceNum %d) (%d %d) TO %s", GetName(), GetRaceNum(), GetX() / SECTREE_SIZE, GetY() / SECTREE_SIZE, ((LPCHARACTER)entity)->GetName()); } } void CHARACTER::UpdatePacket() { if (IsPC() && (!GetDesc() || !GetDesc()->GetCharacter())) return; if (GetSectree() == NULL) return; TPacketGCCharacterUpdate pack; pack.header = HEADER_GC_CHARACTER_UPDATE; pack.dwVID = m_vid; pack.awPart[CHR_EQUIPPART_ARMOR] = GetPart(PART_MAIN); pack.awPart[CHR_EQUIPPART_WEAPON] = GetPart(PART_WEAPON); pack.awPart[CHR_EQUIPPART_HEAD] = GetPart(PART_HEAD); pack.awPart[CHR_EQUIPPART_HAIR] = GetPart(PART_HAIR); #ifdef __ACCE_COSTUME_SYSTEM__ pack.awPart[CHR_EQUIPPART_ACCE] = GetPart(PART_ACCE); #endif pack.bMovingSpeed = GetLimitPoint(POINT_MOV_SPEED); pack.bAttackSpeed = GetLimitPoint(POINT_ATT_SPEED); pack.bStateFlag = m_bAddChrState; pack.dwAffectFlag[0] = m_afAffectFlag.bits[0]; pack.dwAffectFlag[1] = m_afAffectFlag.bits[1]; pack.dwGuildID = GetGuild() ? GetGuild()->GetID() : 0; pack.sAlignment = m_iAlignment / 10; // pack.dwLevel = IsPC() ? GetLevel() : 0; pack.dwLevel = GetLevel(); pack.bPKMode = m_bPKMode; pack.dwMountVnum = GetMountVnum(); #if defined(__OFFLINE_PRIVATE_SHOP_SYSTEM__) pack.dwMyShopVID = (IsPC() ? COfflineShopManager::Instance().GetOfflineShopVID(GetPlayerID()) : 0); #endif PacketAround(&pack, sizeof(pack)); }

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.