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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random function
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
Random function
Hi! First: Sry for my english.

Me and my developer are doing some new special moves.
I've do ALL, the script works but I need a help in the random.

I want to hit someting when I have 100 fencing and do a random of 10 [10% chance] and i want to change everytime i need. It's in a IF.

I have this and I should work
IF ((<FENCING> =100.0) && (RAND(10)=1)

RAND(10)=1 IS RLY 10%?
RAND(2)=1 IS 50%?

It's okay the IF? what do you exchange in?
what function I can use for RANDOM's?

rly thanks ^_^

[Image: 2hy9q0y.png]
07-11-2012 05:49 AM
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
Random function - Lazarus - 07-11-2012 05:49 AM
RE: Random function - RanXerox - 07-11-2012, 06:14 AM
RE: Random function - Lazarus - 07-11-2012, 07:24 AM
RE: Random function - darksun84 - 07-11-2012, 07:07 AM
RE: Random function - Lazarus - 07-11-2012, 12:39 PM
RE: Random function - RanXerox - 07-11-2012, 07:44 AM
RE: Random function - Anarch Cassius - 07-11-2012, 07:45 AM
RE: Random function - darksun84 - 07-11-2012, 07:47 AM
RE: Random function - Extreme - 07-11-2012, 09:38 AM
RE: Random function - Extreme - 07-11-2012, 01:05 PM
RE: Random function - darksun84 - 07-11-2012, 04:52 PM
RE: Random function - Lazarus - 07-12-2012, 03:30 AM
RE: Random function - Extreme - 07-12-2012, 03:33 AM
RE: Random function - Lazarus - 07-12-2012, 03:37 AM
RE: Random function - Extreme - 07-12-2012, 03:47 AM
RE: Random function - Lazarus - 07-12-2012, 03:50 AM
RE: Random function - Extreme - 07-12-2012, 03:54 AM
RE: Random function - Lazarus - 07-12-2012, 04:17 AM
RE: Random function - Lazarus - 07-12-2012, 10:54 AM
RE: Random function - Extreme - 07-12-2012, 11:03 AM
RE: Random function - WRWR - 07-12-2012, 06:56 PM
RE: Random function - darksun84 - 07-12-2012, 07:53 PM

Forum Jump:


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