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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dclick deed inside container
Author Message
Dataline
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2014
Reputation: 0



Post: #11
RE: Dclick deed inside container
Hi kn4tseb, i'm from Spain.

i'm trying to create a deed which with dclick function inside a chest or box (not inside my backpack) do something.

i've tried setting can_i_dcignorelos flag in order to solve this, but doesn't work.

Then i was looking for google and i saw a post that said "can_i_dcignorelos is only for objects in world, not inside chest or box". Is it true?

I need another way to get this functionality.

Regards.
06-27-2014 09:35 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #12
RE: Dclick deed inside container
which rev are you using?

check at your sphere_defs.scp file

can_i_dcignorelos 004000 // when dclicked, ignore los checks
can_i_dcignoredist 008000 // when dclicked, ignore distance checks

the message you are getting comes from this:
//reach_unable "You can't use this where it is."
so for some reason its unreachable, when you use it without container it works well right?
(This post was last modified: 06-28-2014 01:58 AM by kn4tseb.)
06-28-2014 01:42 AM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #13
RE: Dclick deed inside container
Some itemtypes are doubleclickable in containers outside of your backpack, like books or other containers, but most of them are not.

There are some workarounds for that, but i prefer this one.
Enable Packetfiltering and add to your sphere.ini:
Code:
Packet6=f_precheck_dclick

And add a function to your scripts:
Code:
[function f_precheck_dclick]
return <uid.<hval (<local.1>*01000000)+(<local.2>*010000)+(<local.3>*0100)+<local.4>>.trigger @precheckdclick,<def.tat_as_args>,<local.char>>


Then add this trigger to your deed item:
Code:
[typedef t_always_dclickable]
on=@precheckdclick
trysrc <args> use 0
return 1
06-28-2014 07:27 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 3 users Like sco's post
Dataline
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2014
Reputation: 0



Post: #14
RE: Dclick deed inside container
Thanks for your replies kn4tseb and sco.

i'll try it. Big Grin
06-28-2014 08:54 PM
Find all posts by this user Like Post Quote this message in a reply
Dataline
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jun 2014
Reputation: 0



Post: #15
RE: Dclick deed inside container
It works!! Big Grin

Thanks a lot sco!
06-29-2014 05:38 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)