Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

how do i set health times ?

Newbie Spellweaver
Joined
Nov 27, 2021
Messages
47
Reaction score
1
How do I set their time?
--------------------------------
Antibiotics Painkillers Bandages Bandages2
 
Elite Diviner
Joined
Nov 28, 2014
Messages
427
Reaction score
249
Code:
bool isMed = usedItemId==WeaponConfig::ITEMID_Antibiotics||usedItemId==WeaponConfig::ITEMID_Bandages||usedItemId==WeaponConfig::ITEMID_Bandages2||        usedItemId==WeaponConfig::ITEMID_Painkillers||usedItemId==WeaponConfig::ITEMID_Medkit||usedItemId==WeaponConfig::ITEMID_CraftedBandages;    
if(isMed)   {        
        if((r3dGetTime()-[COLOR=#ff0000]m_lastTimeUsedConsumable)<(m_currentConsumableCooldownTime*0.95f[/COLOR])) // 0.95f just to make sure that client and server will not desync a little bit due to net lag            
              return;        
        else            
        m_lastTimeUsedConsumable = GPP_Data.c_fConsumableCooldownTimeTier[itmC->m_LevelRequired];
}

change time in server
 
Upvote 0
Back
Top