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
Lose hit if enemy go invis
Author Message
massis87
Journeyman
*

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

D&W 8thAge

Post: #1
Lose hit if enemy go invis
There is an option for dont lose the swing and the attacker when a player go invis with skill or spell?
i try the @combatdelete but if i go invis (statf_hidden , statf_invisible) my enemy lose the combat and have to reaload the swing and redo the attack.

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 03-20-2017 11:02 AM by massis87.)
03-20-2017 10:34 AM
Visit this user's website 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: #2
RE: Lose hit if enemy go invis
try enable/disable COMBAT_STAYINRANGE combat flag on sphere.ini to check if there's any difference
03-20-2017 03:41 PM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

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

D&W 8thAge

Post: #3
RE: Lose hit if enemy go invis
there arent difference. :° .
dont work with all versions. from my 56c and last 56d night build.
it seems the statf_hidden and staf_invisible force to leave the combat, swing, warmode, all.
how can i customize that now?

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 03-20-2017 06:55 PM by massis87.)
03-20-2017 06:34 PM
Visit this user's website 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: #4
RE: Lose hit if enemy go invis
try using this test build to check if COMBAT_STAYINRANGE works

PS: this is a test build, use it only for combat testing and not on live servers
(This post was last modified: 03-22-2017 02:05 AM by Coruja.)
03-21-2017 02:20 AM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

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

D&W 8thAge

Post: #5
RE: Lose hit if enemy go invis
dont work.
with stayinrange
without stayinrange
with and without stayinrange + combatdelete (argn1 and argn2 is empty (not zero) when i "add" the flags invis or hidden or bot) . sphere dont understand anymore this trick?

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 03-22-2017 12:18 AM by massis87.)
03-22-2017 12:00 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

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

D&W 8thAge

Post: #6
RE: Lose hit if enemy go invis
the
"problem" already exist on latest versions.
can u found me an impo .ini / version?

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 04-19-2017 10:31 PM by massis87.)
04-19-2017 01:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

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

D&W 8thAge

Post: #7
RE: Lose hit if enemy go invis
guys this flags leave the attacker and the combat, i have to dclick again the target for start combat again. on 19 april dont work too.
with the same script, .ini of 56c (my current shard) and sphere 56b 2006 nightly it works correctly....
can u build me the code for let it work if i give u my nightly?
my last build was sphere 56b nightly 08 feb 2008 12:04:42

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 04-19-2017 10:31 PM by massis87.)
04-19-2017 10:10 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

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

D&W 8thAge

Post: #8
RE: Lose hit if enemy go invis
Update.
changed

Code:
bool CChar::Fight_IsAttackable() const
{
    ADDTOCALLSTACK("CChar::Fight_IsAttackable");
    return !IsStatFlag(STATF_DEAD|STATF_Stone|STATF_Invisible|STATF_Insubstantial|STATF_Hid​den|STATF_INVUL);
}

to

Code:
bool CChar::Fight_IsAttackable() const
{
    ADDTOCALLSTACK("CChar::Fight_IsAttackable");
    return !IsStatFlag(STATF_DEAD|STATF_Stone|STATF_Insubstantial|STATF_INVUL);
}

i've remove the flags, rebuilt sphere and now works.
put that on bugtracker and fix it plz, or do a .ini selection .
btw, im so sad for the support.
I was near to change emulator guys...

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 04-20-2017 04:10 AM by massis87.)
04-20-2017 04:08 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes massis87's post
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #9
RE: Lose hit if enemy go invis
massis87, don't get disappointed with sphere dev team, they have many things to do and basically there is only Coruja working on sphere...

Thanks for finding how to change this, i recommend u to create an issue on sphere github on your own, this way you can really contribute to the repository Smile

Also, I've added your changes to my shard, I'll try the results!

Thanks again!

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
04-20-2017 06:27 AM
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: #10
RE: Lose hit if enemy go invis
Nice work, Massis87 !!! Thank You very much!
04-24-2017 11:56 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)