Jump to content

Zeph

Inactive Member
  • Posts

    122
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Zeph

  1. I have a question, when i add costume weapon in shop, after buy item dissapering in equipment, i try add bonuses in shop_table_ex but then i have 2x same bonus, i added socket -1 but the same, what can i do?

     

    Maybe you know what's wrong? @VegaS™ @Mali61

     

    Propably i have to edit this code, but i don't know how.

     

    
    #ifdef ENABLE_RENEWAL_SHOPEX
            char getval[256];
            for (int j = 0; j < ITEM_ATTRIBUTE_MAX_NUM; j++) {
                if (j < ITEM_SOCKET_MAX_NUM) {
                    snprintf(getval,sizeof(getval), "socket%d", j);
                    if (!pItemGroup->GetValue(i, getval, shopItems[i].alSockets[j])) {
                        sys_err("row(%d) stage %d of group items of group %s does not have socket column", i,j, pNode->GetNodeName().c_str());
                        return false;
                    }
                }
                snprintf(getval,sizeof(getval), "attr_type%d", j);
                if (!pItemGroup->GetValue(i, getval, shopItems[i].aAttr[j].bType)) {
                    sys_err("row(%d) stage %d of group items of group %s does not have attr_type column", i, j, pNode->GetNodeName().c_str());
                    return false;
                }
                snprintf(getval,sizeof(getval), "attr_value%d", j);
                if (!pItemGroup->GetValue(i, getval, shopItems[i].aAttr[j].sValue)) {
                    sys_err("row(%d) stage %d of group items of group %s does not have attr_value column", i, j, pNode->GetNodeName().c_str());
                    return false;
                }
            }
            if (pItemGroup->GetValue(i, "price_type", shopItems[i].price_type) && pItemGroup->GetValue(i, "price_vnum", shopItems[i].price_vnum) && shopItems[i].price_type == 3) {
                if (shopItems[i].price_type > 4 || shopItems[i].price_type < 1) {
                    sys_err("row(%d) of group items of group %s price_type is wrong!", i, pNode->GetNodeName().c_str());
                    return false;
                }
                TItemTable * pProto = ITEM_MANAGER::instance().GetTable(shopItems[i].price_vnum);
                if (!pProto) {
                    sys_err("NOT GET ITEM PROTO %d", shopItems[i].price_vnum);
                    return false;
                }
            }
    #endif
    
    [/spoiler]

  2. I have this bug too but when i teleport to M1, my pet summon and i have bonuses from steal.

    My sysser:

    SYSERR: Nov  1 22:29:57 :: Sync: no tree: Świnka Peppa -2147483648 -2147483648 43
    SYSERR: Nov  1 22:30:01 :: DestroyCharacter: [CHARACTER_MANAGER::DestroyCharacter] <Factor> 10459 not found
    SYSERR: Nov  1 22:30:32 :: Sync: no tree: Świnka Peppa -2147483648 -2147483648 43
    SYSERR: Nov  1 22:30:36 :: DestroyCharacter: [CHARACTER_MANAGER::DestroyCharacter] <Factor> 10613 not found
    SYSERR: Nov  1 22:31:26 :: Sync: no tree: Zwierzak -2147483648 -2147483648 1
    SYSERR: Nov  1 22:31:29 :: DestroyCharacter: [CHARACTER_MANAGER::DestroyCharacter] <Factor> 10615 not found
    SYSERR: Nov  1 22:31:51 :: Sync: no tree: Zwierzak -2147483648 -2147483648 1
    SYSERR: Nov  1 22:31:55 :: DestroyCharacter: [CHARACTER_MANAGER::DestroyCharacter] <Factor> 10619 not found

  3. 15 minut temu, displayjokes napisał:

    I've tested a lot of things and that happens everytime, i even tried to open the shop with quest, but it seems like it's not there the shop at all, only the file is beeing loaded because it gave me conflicts with same npc that had shops

    We have to wait for solution i think.

  4. Dnia 21.01.2019 o 11:21, serex napisał:
    
    struct FComputeSkillParty
    {
    	FComputeSkillParty(DWORD dwVnum, LPCHARACTER pkAttacker, BYTE bSkillLevel = 0)
    		: m_dwVnum(dwVnum), m_pkAttacker(pkAttacker), m_bSkillLevel(bSkillLevel)
    		{
    		}
    
    	void operator () (LPCHARACTER ch)
    	{
    		m_pkAttacker->ComputeSkill(m_dwVnum, ch, m_bSkillLevel);
    	}
    
    	DWORD m_dwVnum;
    	LPCHARACTER m_pkAttacker;
    	BYTE m_bSkillLevel;
    };
    
    int CHARACTER::ComputeSkillParty(DWORD dwVnum, LPCHARACTER pkVictim, BYTE bSkillLevel)
    {
    	FComputeSkillParty f(dwVnum, pkVictim, bSkillLevel);
    	if (GetParty() && GetParty()->GetNearMemberCount())
    		GetParty()->ForEachNearMember(f);
    	else
    		f(this);
    
    	return BATTLE_NONE;
    }

     

    Thank you ?

  5. Dnia 9.01.2019 o 16:54, serex napisał:

     

     

    char_skill.cpp search:

    
    	if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY))
    		ComputeSkill(dwVnum, this);

    add before:

    
    	//Party buff system
    	if (GetParty() && (dwVnum == 94 || dwVnum == 95 || dwVnum == 96 || dwVnum == 110 || dwVnum == 111))
    	{
    		if (pkVictim->GetParty()){
    			if (pkVictim->GetParty() == GetParty()){
    				ComputeSkillParty(dwVnum, this);
    			}
    		}
    	}

     

    Hello bro, i don't have "ComputeSkillParty" function in my source so.. can you give me this?

    I changed this to "ComputeSkill" but i can buff only on 2 players on group.

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