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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Damage 65530-65550 Negative
Author Message
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Damage 65530-65550 Negative
Good morning guys, I'm in big trouble.

Some of my shard's players have damage in 65k negative status. I looked in the save the login of both accounts and it shows me the damage of 1-4 (without weapon).

The big problem is that when the player uses a weapon with an estimated damage of 30-49 he can not attack because his damage is 65542-65874 and thus always negative.

I'm in this big problem in my hands please someone is a light

Status Damage 65530-65550
(This post was last modified: 06-13-2017 12:23 AM by darksoulfe.)
06-12-2017 10:55 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: Damage 65530-65550 Negative
Are you using the increasedam property in some @equip/@unequip triggers or made some change to it?
(This post was last modified: 06-13-2017 12:54 AM by darksun84.)
06-13-2017 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: Damage 65530-65550 Negative
I have a command called.

Where char using it removes all equipped items and clears the statuses in 100 (str int mana)

Just any more
06-13-2017 01:10 AM
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: #4
RE: Damage 65530-65550 Negative
Can you post the script? Does it happens with every weapons?
06-13-2017 01:12 AM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: Damage 65530-65550 Negative
[FUNCTION arrumar]
if (<RESTEST i_rune_polymorph>)
sysmessage @07a1,0,1 Você não pode usar este comando enquanto estiver em polumorph...
return 1
endif

if (<flags>&statf_dead)
sysmessage @07a1,0,1 Você não pode usar este comando enquanto for um fantasma.
return 1
endif

IF (<flags>&statf_freeze)
sysmessage @07a1,0,1 Você não pode arrumar seus status nestes condições.
return 1
endif

IF (<flags>&statf_stone)
sysmessage @07a1,0,1 Você não pode arrumar seus status nestes condições.
return 1
endif

REF1=<UID>

FOR x 1 24
if !(<eval <local.x>> == 11) && !(<eval <local.x>> == 15) && !(<eval <local.x>> == 16) && !(<eval <local.x>> == 21) && !(<eval <local.x>> == 21)
ref1.findlayer(<eval <local.x>>).cont <ref1.findlayer(21).uid>
ref1.findlayer(<eval <local.x>>).updatex
endif
endfor
ref1.findlayer(21).updatex

str 100
modstr 0
maxhits 100

dex 100
moddex 0
maxstam 100

int 100
modint 0
maxmana 100

RESPHYSICAL 0
RESCOLD 0
RESFIRE 0
RESENERGY 0
RESPOISON 0

updatex

sysmessage @07a1,0,1 Seu status foram corrigidos, seu itens estão em sua bag e suas resistências foram resetadas!
return 1

After I fixed the damage of the vanq weapons from the script of the shpere itself, did they start buggling with that?
(This post was last modified: 06-13-2017 02:10 AM by darksoulfe.)
06-13-2017 01:16 AM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: Damage 65530-65550 Negative
Some command can be used to return the damage to 1-4 where is the damage of starting a player without any weapon and without any accessory?
06-13-2017 02:50 AM
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: #7
RE: Damage 65530-65550 Negative
<dam> returns the character base damage (without weapons), while <weapon.dam> return the damage of the weapon wielded by the character.
06-13-2017 07:41 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: #8
RE: Damage 65530-65550 Negative
try check the <DAMINCREASE> property on these chars
if the value is negative it will decrease the char damage, and if it reach an negative it will be converted to 65.535 because the internal C++ value conversion*

*damage value is calculated as "unsigned short", which can only handle values from 0~65.535 so if for some reason the value become negative, the C++ conversion will change it to "65.535 - value"
06-14-2017 08:42 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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