The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weapon problem
Author Message
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #5
RE: Weapon problem
static void SetWeaponTimeout(P_CHAR pc_attacker, P_ITEM pWeapon)
{
int x,j;

if (pWeapon)
{
if (pWeapon->spd==0) pWeapon->spd=35;
x = (15000 / ((pc_attacker->effDex()+100) * pWeapon->spd)*MY_CLOCKS_PER_SEC); //Calculate combat delay
}
else
{
if(pc_attacker->skill[WRESTLING]>200) j = 35;
else if(pc_attacker->skill[WRESTLING]>400) j = 40;
else if(pc_attacker->skill[WRESTLING]>600) j = 45;
else if(pc_attacker->skill[WRESTLING]>800) j = 50;
else j = 30;
x = (15000 / ((pc_attacker->effDex()+100) * j)*MY_CLOCKS_PER_SEC);
}
pc_attacker->timeout=uiCurrentTime+x;
}
08-12-2017 10:53 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Weapon problem - Thysis - 05-11-2016, 12:54 AM
RE: Weapon problem - Coruja - 05-11-2016, 04:56 AM
RE: Weapon problem - Thysis - 05-27-2016, 01:59 AM
RE: Weapon problem - pointhz - 05-27-2016, 07:45 AM
RE: Weapon problem - evening - 08-12-2017 10:53 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)