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
Disable client dialog (Pet command)
Author Message
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #1
Disable client dialog (Pet command)
Hello!
I have a problem - ghost players can send command to thier pets. With click on pet, player see a dialog with commands and set it to another player.
How to disable this menu? Screenshot attached.

[Image: 35hk3ds.png]

Thank you!
(This post was last modified: 11-18-2014 03:27 AM by Russian.)
11-18-2014 03:24 AM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #2
RE: Disable client dialog (Pet command)
maybe on general events for player

on @CharClientTooltip
if (<flags>&statf_dead) && !(<act.isplayer>)
return 1
endif
11-18-2014 09:01 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #3
RE: Disable client dialog (Pet command)
General event of every charter:
Code:
[EVENTS E_STARTX]
ON=@CharClientTooltip
IF (<flags> & statf_dead) && !(<act.isplayer>)
RETURN 1
ENDIF
Does not work.

[Image: wv39cl.png]
11-18-2014 04:02 PM
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: Disable client dialog (Pet command)
dead players can't use pet commands, so if this tooltip menu is showing even to dead players it can be considered an bug

I'll take a look, probably will be fixed on next nightly build
11-18-2014 06:42 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #5
RE: Disable client dialog (Pet command)
I am use Sphere server 2012 year and can not use last bulid because it is have errors and spells does not work with old flags.
(This post was last modified: 11-18-2014 09:02 PM by Russian.)
11-18-2014 09:02 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Disable client dialog (Pet command)
You use very old version and what a fix for fixed thing?

Anyway... try @ContextMenuSelect or @ContextMenuRequest.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
(This post was last modified: 11-19-2014 12:17 AM by Extreme.)
11-18-2014 11:14 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #7
RE: Disable client dialog (Pet command)
18-11-2014, Coruja
Fixed: Pet tooltip menu showing to dead players.
Fixed: Pet tooltip menu showing 'Drop' button when the pet has no backpack access.
Smile
11-20-2014 12:51 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)