bumxd 16 Posted November 4, 2016 Share Posted November 4, 2016 hello,can anybody help with this: I need block Id items 10105 10104 for block what can't be use 2x id it in one time What can be use only 1x item from it id`s Link to comment Share on other sites More sharing options...
ahmedhaies 50 Posted November 6, 2016 Share Posted November 6, 2016 in source use this code in char_item.cpp search for bool CHARACTER::UseItem then add in any place this code : Spoiler if (GetQuestFlag("block_haies_wait_haies.block") > get_global_time() && item->GetVnum() == 10105 && item->GetVnum() == 10104 ) { ChatPacket(CHAT_TYPE_INFO,LC_TEXT("can't use this item now please wait 5 sec !")); return false; } if (item->GetVnum() == 10105 && item->GetVnum() == 10104) SetQuestFlag("block_haies_wait_haies.block", get_global_time() + 5); and compile and try will see the player can't use this item 10105 , 10104 should be wait 5 sec ! 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