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
attack range ststus
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
attack range ststus
Greetings!

In character's status in ML client, we can see damage range, which includes weapon damage and bonus of strength. How i can read those values (min and max) in Sphere, and how i can change values to display them on client status?
10-09-2012 04:49 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: attack range ststus
Damage range is dipendent from the weapon and str (or dex if weapon use archery) / 10

So weapon holds a DAM field that hold the damage, but you can change it only by scripting if i remember well, but you can use MODAR in weapon for improving or reducing their damage range while in game.
(This post was last modified: 10-09-2012 06:19 PM by darksun84.)
10-09-2012 06:15 PM
Find all posts by this user Like Post Quote this message in a reply
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: attack range ststus
I know how calculates damage range, but i though i can read final damage range from variables. If not, then i should write many things, like include durability of weapon, because damage depends of it too. Then i should know how damage depends of durability.
10-09-2012 06:56 PM
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: #4
RE: attack range ststus
if a dev gives a formula its easy to recalculate it with scripts. changing it is not possible with clear way, maybe you can try to resend status packet:

[function sendstatus]
sendpacket 011 W042 D<uid> 046 069 072 06F 074 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 W<hits> W<maxhits> 00 01 <calcularte_sex_race> W<STR> W<DEX> W<INT> W<STAM> W<MAXSTAM> W<MANA> W<MAXMANA> D<GOLD> W<AC> W<WEIGHT>

but this is for old status bar, new packet need some extra info (like damage):

http://docs.polserver.com/packets/index.php?Packet=0x11
(This post was last modified: 10-10-2012 06:22 AM by Shaklaban.)
10-10-2012 06:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #5
RE: attack range ststus
The DAM value on a t_weapon* cannot be altered by a script... I am not aware of a damage override TAG, but if it exists, that would be the best solution.
10-10-2012 06:23 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)