metin2united

avertuss

Member
  • Content Count

    413
  • Joined

  • Last visited

Community Reputation

7 Neutral

About avertuss

  • Rank
    Noble

Profile Information

  • Gender
    Male

Recent Profile Visitors

1,473 profile views
  1. avertuss

    c++ [RLS]RenderTarget

    @h4c0k1 Do you know how can i select warrior men model? Because it's 0 i think, ninja female is 1. When i put 0 i see nothing. Fixed but i wanted use camera like you but what should i include intro rendertarget to use m_v3Eye and m_v3Target?
  2. avertuss

    open More alignment give

    char_battle.cpp if (pkAttacker->IsPC()) { if (GetLevel() - pkAttacker->GetLevel() >= -10) if (pkAttacker->GetRealAlignment() < 0) { if (pkAttacker->IsEquipUniqueItem(UNIQUE_ITEM_FASTER_ALIGNMENT_UP_BY_KILL)) pkAttacker->UpdateAlignment(14); else pkAttacker->UpdateAlignment(7); } else pkAttacker->UpdateAlignment(2);
  3. Hi. How can i edit chat like: if player sent message "hi noob" it will be shown "hi n**b". I know that i should use if idkwhat.find("noob") != -1: idkwhat = idkwhat.replace('noob', 'n**b') but idk where should i use that in uichat or idk where. Any ideas?
  4. avertuss

    c++ [RLS]RenderTarget

    @h4c0k1 Did you change or add something to sema code? I mean render armor/weapon/hair etc. or it works fine?
  5. avertuss

    Transfer costume bonus

    Same problem. Any ideas?
  6. avertuss

    open How do I modify party Leadership bonuses?

    @VegaS™ Good explanation but probably he wanted to change these bonuses like att to monster instead of attack speed etc.
  7. avertuss

    open Newpet system after relog - bonus problem

    f5. How can i use GiveBuffs() from pet system in input_login?
  8. avertuss

    open Newpet system after relog - bonus problem

    I used that "system" with old pet system and it works well so idk. So how i can make it? I know that bonuses are from mysql. Any tips?
  9. avertuss

    open Newpet system after relog - bonus problem

    Thanks for advice but i guess that isn't reason why it doesn't work well.
  10. Hi. I have bool CNewPetActor::Update(DWORD deltaTime) { bool bResult = true; // Ćę ÁÖŔÎŔĚ Á׾ú°ĹłŞ, ĽŇČŻµČ ĆęŔÇ »óĹ°ˇ ŔĚ»óÇϴٸé ĆęŔ» ľřľÚ. (NOTE: °ˇ˛ű°ˇ´Ů ŔĚ·± Ŕú·± ŔĚŔŻ·Î ĽŇČŻµČ ĆęŔĚ DEAD »óĹÂżˇ şüÁö´Â °ćżě°ˇ ŔÖŔ˝-_-;) // ĆęŔ» ĽŇČŻÇŃ ľĆŔĚĹŰŔĚ ľř°ĹłŞ, ł»°ˇ °ˇÁř »óĹ°ˇ ľĆ´Ď¶ó¸é ĆęŔ» ľřľÚ. if (IsSummoned()) { if (m_pkOwner->IsImmortal() && Pet_Skill_Table[16][2 + m_dwskill[m_dwslotimm]] <= (get_global_time() - m_dwImmTime)*10) { //m_pkOwner->ChatPacket(CHAT_TYPE_INFO, "%d - %d diff %d Skilltable %d", get_global_time(), m_dwImmTime, (get_global_time() - m_dwImmTime) * 10, Pet_Skill_Table[16][2 + m_dwskill[m_dwslotimm]]); m_dwImmTime = 0; m_pkOwner->SetImmortal(0); } } // if (m_pkOwner->IsDead() || (IsSummoned() && m_pkChar->IsDead()) || (IsSummoned() && (m_pkOwner->GetExchange() || m_pkOwner->GetMyShop() || m_pkOwner->GetShopOwner() || m_pkOwner->IsOpenSafebox() || m_pkOwner->IsCubeOpen() || m_dwduration <= 0)) // || NULL == ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID()) // || ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetOwner() != this->GetOwner() // ) if((this->GetSummonItemVID() != 0 && (NULL == ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID()) || ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetOwner() != this->GetOwner()))) { m_pkOwner->SetQuestFlag("PetSystems.pet_vnum", 0); m_pkOwner->SetQuestFlag("pet_item_id.pet_vnum", 0); this->Unsummon(); return true; } if(this->IsSummoned() && HasOption(EPetOption_Followable)) { bResult = bResult && this->_UpdateFollowAI(); } return bResult; } and quest quest PetSystems begin state start begin function get_pet_info(itemVnum) pet_info_map = { -- [ITEM VNUM] MOB_VNUM, DEFAULT NAME, buff_idx, spawn_effect_idx [55701] = { 34041, "'s Kleiner Affe", 0}, [55702] = { 34045, "'s Kleine Spinne", 0}, [55703] = { 34049, "'s Kleiner Razador", 0}, [55704] = { 34053, "'s Kleiner Nemere", 0}, } itemVnum = tonumber(itemVnum) return pet_info_map[itemVnum] end when login with pc.getqf("pet_vnum") != 0 begin item.select(pc.getqf("pet_item_id")) newpet.summon(pc.getqf("pet_vnum"), petName, false) end when 55701.use or 55702.use or 55703.use or 55704.use begin local pet_info = PetSystems.get_pet_info(item.vnum) pc.setqf("pet_item_id", item.get_id()) if null != pet_info then local mobVnum = pet_info[1] local petName = pet_info[2] if true == newpet.is_summon(mobVnum) then newpet.unsummon(mobVnum) pc.setqf("pet_vnum", 0) else if newpet.count_summoned() < 1 then newpet.summon(mobVnum, petName, false) pc.setqf("pet_vnum", mobVnum) else syschat("You already summoned a pet.") end end -- if pet.is_summon end -- if null != pet_info end -- when end end Pet summons after relog but he doesn't give real bonuses. For example without pet: 103014 with pet: 104971, after relog 103166. Any ideas?
  11. avertuss

    open RenderTarget limit of use?

    what do you mean?
  12. Hi i have problem. I want to show model when someone wants to buy someting in gui so i have: def OnUpdate(self): if self.button_buy[0].IsIn(): self.ModelPreview(2001) else: self.ModelPreviewClose() def ModelPreview(self, Vnum): #if constInfo.DISABLE_MODEL_PREVIEW == 1: # return RENDER_TARGET_INDEX = 1 self.ModelPreviewBoard = ui.ThinBoard() self.ModelPreviewBoard.SetParent(self) self.ModelPreviewBoard.SetSize(190+10, 210+30) self.ModelPreviewBoard.SetPosition(-202, 0) self.ModelPreviewBoard.Show() self.ModelPreview = ui.RenderTarget() self.ModelPreview.SetParent(self.ModelPreviewBoard) self.ModelPreview.SetSize(190, 210) self.ModelPreview.SetPosition(5, 22) self.ModelPreview.SetRenderTarget(RENDER_TARGET_INDEX) self.ModelPreview.Show() self.ModelPreviewText = ui.TextLine() self.ModelPreviewText.SetParent(self.ModelPreviewBoard) self.ModelPreviewText.SetPackedFontColor(grp.GenerateColor(0.8824, 0.9804, 0.8824, 1.0)) self.ModelPreviewText.SetPosition(0, 5) self.ModelPreviewText.SetText("Model") self.ModelPreviewText.SetOutline() self.ModelPreviewText.SetFeather(False) self.ModelPreviewText.SetWindowHorizontalAlignCenter() self.ModelPreviewText.SetHorizontalAlignCenter() self.ModelPreviewText.Show() renderTarget.SetBackground(RENDER_TARGET_INDEX, "d:/ymir work/ui/game/myshop_deco/model_view_bg.sub") renderTarget.SetVisibility(RENDER_TARGET_INDEX, True) renderTarget.SelectModel(RENDER_TARGET_INDEX, Vnum) def ModelPreviewClose(self): RENDER_TARGET_INDEX = 1 self.ModelPreviewBoard.Hide() self.ModelPreview.Hide() self.ModelPreviewText.Hide() renderTarget.SetVisibility(RENDER_TARGET_INDEX, False) it works once when i have mouse 1st time on the button it works but if i want to show that again i see 'RenderTarget' object is not callable in my syserr. When i change map i can show render again but only once.
  13. avertuss

    open Costume bonus transfer

    Hi. I'm searching costume bonus transfer. I tried and lennt version and it doesn't work. Lennt's version doesn't see items on slots. Version from link works but it doesn't show bonus from new item because we don't need self.tooltipItem.SetControledToolTip(itemVnum, stones, attr) function. Any ideas?