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: #1
Dclick deed inside container
Hi all, i'm new here.

i'have created a comfort deed to insert lingots, reagents, ores, etc...

i try to get resources from deed inside a container (box, chest, etc...) but i can't. When i do dclick on deed, a message "You can't use this where it is" appears.

Any idea?

Thanks a lot.
(This post was last modified: 06-24-2014 01:01 AM by Dataline.)
06-24-2014 12:22 AM
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: #2
RE: Dclick deed inside container
Welcome Dataline!

Please post your script here.

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.
06-24-2014 04:14 AM
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: #3
RE: Dclick deed inside container
Hi Extreme, thanks for your reply

here is code:

Code:
////////////////////////////////////////////////////////////////////////////////////////////////
// Cheque de comodidad
////////////////////////////////////////////////////////////////////////////////////////////////
[ITEMDEF i_cheque_comodidad]
NAME=Deed de Comodidad
ID=i_deed
TYPE=T_NORMAL
VALUE=100
weight = 1

CATEGORY=Objetos
SUBSECTION=Varios
DESCRIPTION=Cheque de comodidad

on=@create
NAME=Deed de Comodidad
Color=00
TAG.COMODIDAD=0

on=@dclick
if !(<cont>==<src.findlayer(21).uid>) && (<TAG0.COMODIDAD>==0)
        Src.message Debes tener el deed en la mochila para poder usarlo.
        return 1
elseif !(<cont>==<src.findlayer(21).uid>) && (<TAG0.COMODIDAD>==1)
        src.sysmessage=Obtienes <eval(<TAG.COMODIDADAMOUNT>)> de <TAG.COMODIDADNAME>.
        serv.newitem=<TAG.COMODIDADID>
        new.amount=<TAG.COMODIDADAMOUNT>
        COLOR=<TAG.COMODIDADADCOLOR>
        NEW.CONT=<cont>
        REMOVE
        return 1
elseif (<TAG0.COMODIDAD>==0)
        TARGET=Que deseas introducir?
        RETURN 1
//elseiF (<src.region.flags>==01192) || (<src.region.flags>==01092) &&
elseif (<TAG.COMODIDAD>==1)
        src.sysmessage=Obtienes <eval(<TAG.COMODIDADAMOUNT>)> de <TAG.COMODIDADNAME>.
        serv.newitem=<TAG.COMODIDADID>
        new.amount=<TAG.COMODIDADAMOUNT>
        COLOR=<TAG.COMODIDADADCOLOR>
        NEW.CONT=<SRC.FINDLAYER(21).UID>
        REMOVE
        return 1
else
        src.sysmessage=Hay problemas con este Deed de comodidad, avisa al Staff.
        Return 1
endif

when i do double click on deed inside a chest or box it's the problem.
06-24-2014 04:39 AM
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: #4
RE: Dclick deed inside container
This:
!(<cont>==<src.findlayer(21).uid>)

Prevents you to use outside from your backpack. Remove it and it should work.

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.
06-24-2014 05:50 AM
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: #5
RE: Dclick deed inside container
Thanks for reply again,

The problem is when a deed is inside a box blocked/secure on the floor.

When i tried to do double click on a object inside, the sysmessage shows "You can't use this where it is".
06-24-2014 06:04 AM
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: Dclick deed inside container
(06-24-2014 05:50 AM)Extreme Wrote:  This:
!(<cont>==<src.findlayer(21).uid>)

Prevents you to use outside from your backpack. Remove it and it should work.

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.
06-24-2014 08:50 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #7
RE: Dclick deed inside container
You cannot double click items outside your LOS or Distance, the @DClick trigger is fired after some internal checks, what you can do is to open sphere_msgs.scp, search for this text and translating it.
06-24-2014 05:07 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: #8
RE: Dclick deed inside container
Thanks for your reply Xun,

is there any way to make this functionallity without dclick?

Regards.
06-24-2014 06:01 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: #9
RE: Dclick deed inside container
Well, i've seen this configuration in ITEMDEF:

[itemdef i_test]
id=i_pickaxe
name=Pickaxe
can=can_i_dcignorelos

But doesn't work. Cry
06-25-2014 06:48 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: #10
RE: Dclick deed inside container
Welcome Dataline, first at all, where r u from?

can_i_dcignorelos 004000 // this flag actually exists, but never tried it before

explain your self a bit better, you want the deed to work only if it's inside your backpack.
the chests or boxes are containers inside your backpack?
(This post was last modified: 06-27-2014 03:14 PM by kn4tseb.)
06-27-2014 03:13 PM
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)