Jump to content

block 2 vnum stone in weapon


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

	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;
                    }
                }
	

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


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