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
Can't use skills or attacking
Author Message
darksun84
Sir Spamalot
****

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



Post: #8
RE: Can't use skills or attacking
I noticed that when the problem appears, the player Action value is changed to 06f ( 111)
NPCACT_RIDDEN, // 111 = Being ridden or shrunk as figurine.

I think it's caused by this line :

src.act.more2=<src.uid>

More2 in a t_eq_horse item must holds the mount uid(used by stabler npc guy).

Also the @Equip doesn't fire(even if the item is actually equipped), so the link field and the ATTR are not properly setted

PHP Code:
newitem i_et_ridgeback
new.more1=c_etr 
new.color=<color>
new.
link = <src.uid>
new.
attr=08010
new.equip 

I am not getting the problem for now with those changes.

Maybe it looks weird that just placing the player uid in the more2 field of a t_eq_horse can cause that problem, but i think that sphere does something related to that more2 value after a worldsave is performed.

PHP Code:
14:42:CliPeriodic Action -1
14
:43:RegPeriodic Action -1
14
:43:CliPeriodic Action -1
14
:43:RegPeriodic Action skill_evalint
14
:43:CliPeriodic Action skill_evalint
GC
70 Objects accounted for
14:43:World data saved   (save/sphereworld.scp).
14:43:Player data saved  (save/spherechars.scp).
14:43:Multi data saved   (save/spheremultis.scp).
14:43:Context data saved (save/spheredata.scp).
14:43:World save completedtook 0.3704 seconds
14
:43:3:'pietro' commands 'save'=1
14
:43:RegPeriodic Action 06f
14
:43:CliPeriodic Action 06f 

More information : the action is not changed until a @RegPeriodic/@CliPeriodic is fired after the save
Also you'll get a skill failure message before the action change happens.
(This post was last modified: 01-11-2014 12:47 AM by darksun84.)
01-10-2014 11:10 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Can't use skills or attacking - Oxtar - 01-09-2014, 01:33 PM
RE: Can't use skills or attacking - Oxtar - 01-09-2014, 10:00 PM
RE: Can't use skills or attacking - Oxtar - 01-10-2014, 12:18 PM
RE: Can't use skills or attacking - Oxtar - 01-10-2014, 10:10 PM
RE: Can't use skills or attacking - darksun84 - 01-10-2014 11:10 PM
RE: Can't use skills or attacking - Oxtar - 01-11-2014, 09:15 AM
RE: Can't use skills or attacking - Ben - 01-12-2014, 02:43 AM
RE: Can't use skills or attacking - XuN - 01-12-2014, 03:37 AM

Forum Jump:


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