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
poison spell/combat
Author Message
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #1
poison spell/combat
Does anyone else have a problem with poison spell and general melee combat?

I am using latest nightly, latest sphere_spells.scp, latest sphere_defs.scp, latest skills file.

If I cast poison on someone, regardless of my skill, or their resistance etc, nothing happens. The bar turns green but no damage whatsoever. I therefore added the spellflag_dam to the poison spell, and now they suffer initial damage (which correlates with the EFFECT setting), but after this initial damage & bar turning green, nothing else happens?? Usually they feel deathly/extremely/very ill etc until cured or it has worn off.

Also with melee combats, despite being GM swords/tactics/anat, etc, and the victim being 0 parrying, I miss way too much. Is there a setting somewhere that controls this? to be tweaked?

Thanks for any help.
03-28-2017 06:55 AM
Find all posts by this user Like Post Quote this message in a reply
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #2
RE: poison spell/combat
n my old Sphere server 56c on have the same problem. I have solved the problema with actualize the server for version 56d
03-28-2017 07:38 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #3
RE: poison spell/combat
Thanks Van Glan Bloom, but I am running the latest nightly and the latest relevant scripts from what I can tell... so I dont know what the problem might be. Suspect the melee is maybe .ini settings but was just after guidance.

The poison thing, clueless.

Rich
03-28-2017 07:30 PM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #4
RE: poison spell/combat
I;ve been trying to have a play around with the combat. It seems to make no difference if player has e_combat_system event or not.

I saw somewhere about setting ACTDIFF=positive number on the skill. When I do this (ACTDIFF=100) players start hitting succesfully virtually all the time. However, if player skill is less than 30.0 they do the swing action but there is no hit/miss sound etc. If I set the skills 30.0+ they start hitting again.

Weps/armor also damages really easy, so I've set the following lines in a player event.

ON=@HIT
LOCAL.ITEMDAMAGECHANCE 0

ON=@GETHIT
LOCAL.ITEMDAMAGECHANCE 0

I has made no difference?

Not sure where I am going wrong with this at the moment...
03-29-2017 06:38 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #5
RE: poison spell/combat
SRC.POISON 1 also as the same effect.
03-29-2017 09:52 PM
Find all posts by this user Like Post Quote this message in a reply
Rostok
Apprentice
*

Posts: 31
Likes Given: 6
Likes Received: 2 in 1 posts
Joined: Mar 2016
Reputation: 0



Post: #6
RE: poison spell/combat
maybe you cast on some GM account ?
03-29-2017 10:17 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: #7
RE: poison spell/combat
Don't use e_combat_system, it's just for "showing" how the combat works internally.

In the sphere.ini there is this setting

// Hit Chance formula to use on physical combat
// 0 = Sphere custom // Not compatible with Hit Chance Increase property
// 1 = pre-AOS // Not compatible with Hit Chance Increase property
// 2 = AOS
CombatHitChanceEra=1

I suggest to use CombatHitChanceEra = 1

It uses the following formula:
//Attacker Skill is the weapon skill (or wrestling) used by the attacker
//Defender is the weapon that the defender is wielding or wrestling if no weapon.
HitChance = ((AttackerSKill + 500 )* 100) /(DefenderSkill+500 * 2)
(This post was last modified: 03-29-2017 10:31 PM by darksun84.)
03-29-2017 10:24 PM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #8
RE: poison spell/combat
Thanks for your responses Darksun84 and Rostok.

I already have that setting, along with CombatDamageEra=1 set in the .ini.

The account of the poisoner and the poisonee are definitely player accounts.
03-29-2017 10:32 PM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #9
RE: poison spell/combat
hi darksun84.

Is there a way to simply modify the hitchance foruma you described? or am I looking at rescripting the hitchance using ACTDIFF?

Also with ACTDIFF, do you know if ACTDIFF=1000 has more of a chance of hitting than ACTDIFF=1 ?? Or is it just any positive number = hit and negative numbers = miss?

Thanks again
03-30-2017 06: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: #10
RE: poison spell/combat
The formula is taken from the source, https://github.com/Sphereserver/Source/b....cpp#L122, check case 1

In case of combat and if understand it well, actdiff is the threshold number that is compared to a "random roll" made by Sphere after/in the @Start trigger.

If the random roll (from to 0 to 999) is more or equal than actdiff, then the action is succesfull (pay attention that while you can change the actdiff value by script, you don't have access to the random roll value made by Sphere).

So in the @Start trigger:

actdiff= 0 always success
actdiff >= 1000 always fail.

In the @HitTry trigger the result is already calculated and Sphere already know if the hit will be a miss or a success.
If it's a fail, the actdiff value will be negative.
If it's a success the actdiff value will remain positive.
Example:
We set actdiff in @Start with a value of 10 (very easy)
In the @HitTry we log the actdiff and we see that actdiff is -10, that means we actually miss the target.


Summary:
Increasing the actdiff value in the @Start trigger of a skill will actually make the action more difficult.
Increasing the actdiff value in the @HitTry trigger does nothing (unless you change it to a positive number from a negative number)

Anyway you can make your own formula in @HitTry for overriding the results, also in the @HitMiss trigger if you change the actdiff value to a positive number it will still trigger a succesfull hit!
(This post was last modified: 03-30-2017 08:22 PM by darksun84.)
03-30-2017 08:21 PM
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)