CastielL 3 Posted October 25, 2014 Share Posted October 25, 2014 Hi devs, Could someone tell me how can I block a player from bonusing an item directly from the inventory. Thanks. Link to comment Share on other sites More sharing options...
Denis 1474 Posted October 25, 2014 Share Posted October 25, 2014 Do you use source? 1 Link to comment Share on other sites More sharing options...
CastielL 3 Posted October 25, 2014 Author Share Posted October 25, 2014 yes ... I search through the forum, but I didn;t find anything ... Link to comment Share on other sites More sharing options...
Denis 1474 Posted October 25, 2014 Share Posted October 25, 2014 In char_item.cpp: case USE_CHANGE_ATTRIBUTE : if(item2->GetVnum() == your_vnum) return false; ..rest of the code 1 Link to comment Share on other sites More sharing options...
CastielL 3 Posted October 25, 2014 Author Share Posted October 25, 2014 something like this? case USE_CHANGE_ATTRIBUTE: if (item2->GetAttributeSetIndex() == -1) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¼Ó¼ºÀ» º¯°æÇÒ ¼ö ¾ø´Â ¾ÆÀÌÅÛÀÔ´Ï´Ù.")); return false; } if (item2->GetVnum() == 71084) return false; if (item2->GetAttributeCount() == 0) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("º¯°æÇÒ ¼Ó¼ºÀÌ ¾ø½À´Ï´Ù.")); return false; } Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now