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
SRC.DAMAGE
Author Message
Snaigel
Journeyman
*

Posts: 75
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0



Post: #1
SRC.DAMAGE
Hi, so I have this trigger on a weapon script

ON=@Damage
SRC.Damage=30,39

but the damage is always 30, it doesn't eval the chance 30 to 39, and I tryied with {30 39} aswell.

maybe it's another way to write it with src.damage?
02-10-2017 01:18 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #2
RE: SRC.DAMAGE
We solved it but answer is <R30,39> maybe someone need some day.
02-10-2017 08:16 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: SRC.DAMAGE
yep, random numbers must be generated using <R30,39>
also don't forget that the final damage value can be reduced by char armor/resists. To ignore armor calculation you must change the damage type to dam_fixed

SRC.DAMAGE <R30,39> dam_fixed
02-10-2017 12:50 PM
Find all posts by this user Like Post Quote this message in a reply
Snaigel
Journeyman
*

Posts: 75
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0



Post: #4
RE: SRC.DAMAGE
I use the same post

I created this event

Quote:[Events e_espadademonio_event]

On=@Hit

SRC.DAMAGE <R38,50>,dam_fixed,<CONT>

But how can I add it to a specific weapon?
02-11-2017 09:22 AM
Find all posts by this user Like Post Quote this message in a reply
Artyk
Journeyman
*

Posts: 75
Likes Given: 43
Likes Received: 9 in 9 posts
Joined: Sep 2014
Reputation: 0



Post: #5
RE: SRC.DAMAGE
In the weapon's code add:

Code:
ON=@EQUIP
SRC.EVENTS +e_espadademonio_event

ON=@UNEQUIP
SRC.EVENTS -e_espadademonio_event
02-12-2017 01:59 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #6
RE: SRC.DAMAGE
SRC.DAMAGE <R38,50>,dam_fixed,<CONT>

->

SRC.DAMAGE <R38,50>,dam_fixed,<UID>

You should use UID not CONT on Event. (or ARGO.CONT) is similar.
02-12-2017 06:28 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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