AlexxD 124 Posted August 26, 2015 Share Posted August 26, 2015 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 (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; } } 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 More sharing options...
TheSLZ 105 Posted August 26, 2015 Share Posted August 26, 2015 (edited) 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 August 26, 2015 by TheSLZ Link to comment Share on other sites More sharing options...
AlexxD 124 Posted August 26, 2015 Author Share Posted August 26, 2015 That's right too 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 More sharing options...
JarajTo 40 Posted August 27, 2015 Share Posted August 27, 2015 The problem is that it shows a time course. Link to comment Share on other sites More sharing options...
AlexxD 124 Posted August 27, 2015 Author Share Posted August 27, 2015 The problem is that it shows a time course. What are you saying? "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 More sharing options...
JarajTo 40 Posted August 27, 2015 Share Posted August 27, 2015 The problem is that it shows a time course. What are you saying? Items with type 33 doesn`t have a time. Link to comment Share on other sites More sharing options...
AlexxD 124 Posted August 27, 2015 Author Share Posted August 27, 2015 (edited) 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.. Edited August 27, 2015 by AlexxD "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 More sharing options...
AndrewSkc 3 Posted August 28, 2015 Share Posted August 28, 2015 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 Link to comment Share on other sites More sharing options...
AlexxD 124 Posted August 28, 2015 Author Share Posted August 28, 2015 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.. "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 More sharing options...
JarajTo 40 Posted September 3, 2015 Share Posted September 3, 2015 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.. 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.. 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 More sharing options...
AlexxD 124 Posted September 3, 2015 Author Share Posted September 3, 2015 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.. 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.. 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 More sharing options...
JarajTo 40 Posted September 3, 2015 Share Posted September 3, 2015 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.. 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.. 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 More sharing options...
fcporto15 0 Posted March 22, 2016 Share Posted March 22, 2016 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? Link to comment Share on other sites More sharing options...
AlexxD 124 Posted March 22, 2016 Author Share Posted March 22, 2016 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 More sharing options...
fcporto15 0 Posted March 22, 2016 Share Posted March 22, 2016 i have it the same way but still not work! the item go too the slot but don't give any bonus Link to comment Share on other sites More sharing options...
Rainbow3D 54 Posted April 10, 2016 Share Posted April 10, 2016 Not work... i have test it but i have some error Link to comment Share on other sites More sharing options...
AlexxD 124 Posted April 11, 2016 Author Share Posted April 11, 2016 NOTE: If you're using special rings like ITEM_RING, special_group_item.txt will NOT read the bonuses for them. You need to change APPLY types and values from item_proto. "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 More sharing options...
stevenmelis 30 Posted April 12, 2016 Share Posted April 12, 2016 For work.. Do i recompile dump_proto? Link to comment Share on other sites More sharing options...
AlexxD 124 Posted April 12, 2016 Author Share Posted April 12, 2016 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 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 More sharing options...
stevenmelis 30 Posted April 12, 2016 Share Posted April 12, 2016 Thank you. Nice support 1 Link to comment Share on other sites More sharing options...
AlexxD 124 Posted April 12, 2016 Author Share Posted April 12, 2016 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 More sharing options...
stevenmelis 30 Posted April 12, 2016 Share Posted April 12, 2016 OK nice. Tomorrow i will finish to test it Link to comment Share on other sites More sharing options...
Uyas 0 Posted April 13, 2016 Share Posted April 13, 2016 You can add as you can do to work bonuses type 33 ? Link to comment Share on other sites More sharing options...
AlexxD 124 Posted April 14, 2016 Author Share Posted April 14, 2016 On 4/13/2016 at 8:22 PM, Uyas said: You can add as you can do to work bonuses type 33 ? I don't understand you. You want to say to add C++ part for items type 33 to read special_item_group.txt bonuses? "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 More sharing options...
Uyas 0 Posted April 17, 2016 Share Posted April 17, 2016 On 14.04.2016 at 11:28 PM, AlexxD said: I don't understand you. You want to say to add C++ part for items type 33 to read special_item_group.txt bonuses? For me bonuses not working in type 33. Link to comment Share on other sites More sharing options...
Recommended Posts