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
Armor Question
Author Message
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #1
Armor Question
I'm trying to make a new of bonification damage's system. If i put <ARGN1> the damage deals no respect another's armor. Exist a variable where the damages deals respects the native sphere's armor system?

For example:

Code:
[EVENTS E_BONIFICADORES]
//LUMBERJACKING 20% Bonusses
ON=@HIT  //20% PERCENT OF DAMAGE, but not respect armor.
ARGN1 = <ARGN1>*(((<LUMBERJACKING>*2)/1000)/10)

Thanks
(This post was last modified: 10-19-2012 09:44 AM by daedelus.)
10-19-2012 09:43 AM
Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #2
RE: Armor Question
Any idea?.
10-20-2012 12:33 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #3
RE: Armor Question
ARGN1 = <EVAL <ARGN1>*(((<LUMBERJACKING>*2)/1000)/10)>
?

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-20-2012 01:13 AM
Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #4
RE: Armor Question
(10-20-2012 01:13 AM)Extreme Wrote:  ARGN1 = <EVAL <ARGN1>*(((<LUMBERJACKING>*2)/1000)/10)>
?

I tried that. The damage is correctly, but ignores armor. So, is same thing hitting with or without armor

Thanks
(This post was last modified: 10-20-2012 01:33 AM by daedelus.)
10-20-2012 01:31 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #5
RE: Armor Question
if you set argn1 to any constant value is it still ignores the armor or not?
10-20-2012 01:55 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #6
RE: Armor Question
(10-20-2012 01:55 AM)Shaklaban Wrote:  if you set argn1 to any constant value is it still ignores the armor or not?

yes, still ignores armor. I don't know another variable to use.

Thanks
(This post was last modified: 10-20-2012 02:18 AM by daedelus.)
10-20-2012 02:16 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #7
RE: Armor Question
(10-20-2012 01:31 AM)daedelus Wrote:  
(10-20-2012 01:13 AM)Extreme Wrote:  ARGN1 = <EVAL <ARGN1>*(((<LUMBERJACKING>*2)/1000)/10)>
?

I tried that. The damage is correctly, but ignores armor. So, is same thing hitting with or without armor

Thanks
Then use @GetHit instead @Hit and check it.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-20-2012 10:56 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #8
RE: Armor Question
I had the same problem with a clean sphere installation: weapons ignore AR.
So i decided to make my own armor system under @gethit.
Anyway you could do that on @hit too calling a custom function for the deal damage.
(This post was last modified: 10-20-2012 11:02 AM by Rizz.)
10-20-2012 11:00 AM
Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #9
RE: Armor Question
Yes but, i like sphere's native armor system, i don't like to change that. Anyway, How the armor's system is designed in sphere? (specifically).

So, what is the relationship-armor weapon? (hardcored)

Thanks
10-20-2012 10:11 PM
Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #10
RE: Armor Question
up up?
10-21-2012 05:18 PM
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)