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
fountain of life problem
Author Message
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #1
fountain of life problem
why does it show as (-)?
@Coruja could you help me with this?
if you do not see the pictures I can edit them again


item there is.
[Image: fountain_of_life_problem-1.png]

not item there is.
[Image: fountain_of_life_problem-2.png]

Errors triggers success.
03-01-2018 11:35 AM
Find all posts by this user Like Post Quote this message in a reply
slothere
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: Jan 2018
Reputation: 0



Post: #2
RE: fountain of life problem
Probably a calculation problem. Check your syntax.
03-01-2018 08:29 PM
Find all posts by this user Like Post Quote this message in a reply
Abuelox
Journeyman
*

Posts: 64
Likes Given: 0
Likes Received: 7 in 7 posts
Joined: Apr 2010
Reputation: 0

Alteria Games

Post: #3
RE: fountain of life problem
Its bandage negative weight? and trying it on other container?
(This post was last modified: 03-02-2018 01:59 AM by Abuelox.)
03-02-2018 01:58 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: #4
RE: fountain of life problem
probably you're using an custom script to show this message, can you copy/paste this script line here?
03-02-2018 03:06 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #5
RE: fountain of life problem
@slothere
yeah there is probably a calculation problem. I do not know where is it.

@Abuelox
there is no problem with the weight of bandage, other boxes give normal result.
[Image: fountain_of_life_problem-3.png]
[Image: fountain_of_life_problem-4.png]
[Image: fountain_of_life_problem-5.png]
[Image: fountain_of_life_problem-6.png]

@Coruja
yes I use a custom command but the problem is not related to it. you can look at the pictures above. the other boxes are problem free.
PHP Code:
ON=@ITEMCLICK
IF (<act.type> == t_container)
    IF (<
act.rescount> > 0)
    
act.message @95,,[<act.rescounteşya, <eval ((<act.weight> / 10) - <act.typedef.weight>)> kilo]
    RETURN 
1
      
else
    
act.message @85,,<act.name>    
    RETURN 
1    
    
ENDIF
ENDIF 

Errors triggers success.
(This post was last modified: 03-02-2018 05:47 AM by Satvet.)
03-02-2018 05:30 AM
Find all posts by this user Like Post Quote this message in a reply
slothere
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: Jan 2018
Reputation: 0



Post: #6
RE: fountain of life problem
@satvet

You need to check that container's default weight value.

Create a new one and use ".xshow weight". Check what will say about that.
03-02-2018 06:01 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #7
RE: fountain of life problem
Result for empty Fountain: 'weight' for 'Fountain of Life' is '10'
Result for empty Bag: 'weight' for 'bag' is '20'

Errors triggers success.
03-02-2018 06:37 AM
Find all posts by this user Like Post Quote this message in a reply
slothere
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: Jan 2018
Reputation: 0



Post: #8
RE: fountain of life problem
Hmm.. I think what you want to do is what default msg doing. If you don't have any other purposes just edit the default msg if your kilo = stones.

//cont_items " (%d items, %d stones)"

you need to change this one in sphere_msgs.scp

After that add this one in a general event.

@itemclick
if (<act.type>==t_container) && (<act.rescount> < 1)
act.message <act.name>
return 1
endif
(This post was last modified: 03-02-2018 06:48 PM by slothere.)
03-02-2018 06:34 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)