Jump to content

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.