Jump to content
metin2dev
  • 0
Sign in to follow this  
Tallywa

open block 2 vnum stone in weapon

Question

Hello, I would like to block the binding of stones on a weapon compared to two vnum, but I block and it does not work

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I don’t have access to any source file right now, so if you just pasted the part that you edited here i could help you

Share this post


Link to post
Share on other sites
  • 0

	case ITEM_METIN:
            {
                LPITEM item2;
	                if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
                    return false;
	                if (item2->IsExchanging())
                    return false;
	                if (item2->GetType() == ITEM_PICK) return false;
                if (item2->GetType() == ITEM_ROD) return false;
	                int i;
	                for (i = 0; i < ITEM_SOCKET_MAX_NUM; ++i)
                {
                    DWORD dwVnum;   
	                    if ((dwVnum = item2->GetSocket(i)) <= 2)
                        continue;
	                    TItemTable * p = ITEM_MANAGER::instance().GetTable(dwVnum);
	                    if (!p)
                        continue;
	                    if (item->GetValue(5) == p->alValues[5])
                    {
                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ ¸Þƾ¼®Àº ¿©·¯°³ ºÎÂøÇÒ ¼ö ¾ø½À´Ï´Ù."));
                        return false;
                    }
                    
                    if (item->GetVnum() == 40159 && item->GetVnum() == 28933)
                    {
                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ ¸Þƾ¼®Àº ¿©·¯°³ ºÎÂøÇÒ ¼ö ¾ø½À´Ï´Ù."));
                        return false;
                    }
                }
	

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×