Jump to content

Items Type 33


Recommended Posts

Hi devs, I saw some topics with 'How to block two same items with type 33?' and I said that I can help everyone to resolv that :D (if you put special rings with type 33)

1. Go to your source(game) and open char_item.cpp

2. Find:

if (item->GetWearFlag() & WEARABLE_UNIQUE)

3. Put this code after

if (item->GetType() & ITEM_RING)
	{
		if ((GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->IsSameSpecialGroup(item)) || (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->IsSameSpecialGroup(item)))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't put two same items in the same time."));
			return false;
		}
	}

 

  • Love 7

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

Thank you.

I have added this way:

	if (item->GetWearFlag() & WEARABLE_UNIQUE)
	{
		if ((GetWear(WEAR_UNIQUE1) && GetWear(WEAR_UNIQUE1)->IsSameSpecialGroup(item)) ||
			(GetWear(WEAR_UNIQUE2) && GetWear(WEAR_UNIQUE2)->IsSameSpecialGroup(item)))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Ŕş Áľ·ůŔÇ ŔŻ´ĎĹ© ľĆŔĚĹŰ µÎ °ł¸¦ µż˝Ăżˇ ŔĺÂřÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
			return false;
		}

		if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) && 
			!marriage::CManager::instance().IsMarried(GetPlayerID()))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°áČĄÇĎÁö ľĘŔş »óĹÂżˇĽ­ żąą°Ŕ» ÂřżëÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
			return false;
		}

	}
	
	if (item->GetType() & ITEM_RING)
	{
		if ((GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->IsSameSpecialGroup(item)) || (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->IsSameSpecialGroup(item)))
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Ŕş Áľ·ůŔÇ ŔŻ´ĎĹ© ľĆŔĚĹŰ µÎ °ł¸¦ µż˝Ăżˇ ŔĺÂřÇŇ Ľö ľř˝Ŕ´Ď´Ů."));
			return false;
		}
	}

Should i add directly after or it doesn't matter?

Edited by TheSLZ
Link to comment
Share on other sites

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

I have in item_proto good real time but items with type 33 dosen't see time. With type 16 time is good ;]

Link to comment
Share on other sites

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

 

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

I have in item_proto good real time but items with type 33 dosen't see time. With type 16 time is good ;]

Hmm, maybe in uitooltip.py you need to find ITEM_TYPE_UNIQUE or something like that, and make a line with ITEM_TYPE_RING.

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

 

Items with type 33 doesn`t have a time.

You can put REAL_TIME limit in item_proto.txt, man, if you're saying that.. 

Yes but in client dosen't see this time :)

You can put it in item_proto client too, I just say.. :D 

I have in item_proto good real time but items with type 33 dosen't see time. With type 16 time is good ;]

Hmm, maybe in uitooltip.py you need to find ITEM_TYPE_UNIQUE or something like that, and make a line with ITEM_TYPE_RING.

Okay, all be okay now.

Link to comment
Share on other sites

  • 6 months later...
1 hour ago, fcporto15 said:

i make it but the item go too the slots but don't give now the bonus and don't make the effect and on the special_item_group.txt is all things correct wher is the problem?

I don't have this problem, maybe you can replace this code in special_item_group.txt

Spoiler

Group 스폐셜
{
    Vnum    10050
    type    special
    1    71148    100000    1
    2    71149    100001    1
    3    71158    100002    1
    4    71135    100003    1
    5    71136    100003    1
    6    71143    100004    1
    7    71145    100005    1
}

and these:

Spoiler

Group 속성                
{                
    Vnum    100000        
    type    ATTR        
    1    66    30    
    2    78    20    
    3    79    20    
    4    63    30    
    5    69    10    
    6    70    10    
    effect    "d:\ymir work\effect\etc\buff\buff_item5.mse"
}                
                
Group 속성2                
{                
    Vnum    100001        
    type    ATTR        
    1    66    30    
    2    80    20    
    3    81    20    
    4    63    30    
    5    69    10    
    6    70    10    
    effect    "d:\ymir work\effect\etc\buff\buff_item5.mse"        
}                
                
Group 속성3                
{                
    Vnum    100002        
    type    ATTR        
    1    66    50    
    2    7    20    
    3    9    20    
    4    64    30    
    5    69    10    
    6    70    10    
    7    84    5    
    effect    "d:\ymir work\effect\etc\buff\buff_symbol1.mse"        
}                
                
Group 속성4                
{                
    Vnum    100003        
    type    ATTR        
    1    66    50    
    2    7    20    
    3    9    20    
    4    64    30    
    5    69    10    
    6    70    10    
    7    84    5    
}                
                
Group 속성5                
{                
    Vnum    100004        
    type    ATTR        
    1    66    50    
    2    7    20    
    3    9    20    
    4    63    30    
    5    69    10    
    6    70    10    
    7    84    5    
}                
                
Group 속성6                
{                
    Vnum    100005        
    type    ATTR        
    1    66    30    
    2    7    10    
    3    9    10    
    4    63    10    
    5    69    5    
    6    70    5    
    7    84    5    
}

!!! THESE ARE MINE (official server) . IF YOU USE THEM, MAKE SURE YOU REPLACED YOURS WITH THESE !!!
If these don't work, then send me a PM

 

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • 3 weeks later...
11 minutes ago, stevenmelis said:

For work.. Do i recompile dump_proto?

No man, ITEM_RING it's 33rd subtype in dump_proto, so you just need to change

Spoiler

ITEM_UNIQUE UNIQUE_NONE

in

Spoiler

ITEM_RING 0

from item_proto, client and server though

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

4 minutes ago, stevenmelis said:

Thank you. Nice support

Example in item_proto, with bonuses:

Spoiler

71143    ÇŕşąŔÇ ąÝÁö    ITEM_RING    0    1    ANTI_DROP | ANTI_STACK    NONE    WEAR_SHIELD    NONE    0    0    0    0    0    REAL_TIME    604800    LIMIT_NONE    0    APPLY_ATT_GRADE_BONUS    150    APPLY_DEF_GRADE_BONUS    150    APPLY_MAX_HP    1800    0    0    0    0    0    0    0    0    0

 

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

Announcements



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