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
IF ON bag ON pack question
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #10
RE: IF ON bag ON pack question
(12-05-2012 01:13 PM)ChaveS Wrote:  @Lazarus
This isn't supposed to work

If you already know the item is in somewhere his backpack, you can simply use

if (<cont.layer> != 21)
src.message <name> is in some container inside my bag
endif

This was work:

[function OUTPACK]
IF (<TOPOBJ.UID>!=<SRC>) || (<CONT.UID>==<SRC.FINDLAYER.LAYER_BANKBOX.UID>)
SRC.SYSMESSAGE The item must be in your pack!
RETURN 1
ELSE
RETURN 0
ENDIF


when i call it in a function i use:

ON=@DCLICK
IF !<OUTPACK>
SRC.MESSAGE
TARGET
XXXX
ELSE
RETURN 1
ENDIF

^_^

[Image: 2hy9q0y.png]
12-07-2012 01:55 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
IF ON bag ON pack question - Lazarus - 12-04-2012, 05:20 PM
RE: IF ON bag ON pack question - darksun84 - 12-04-2012, 07:36 PM
RE: IF ON bag ON pack question - Lazarus - 12-05-2012, 03:50 AM
RE: IF ON bag ON pack question - ChaveS - 12-05-2012, 03:53 AM
RE: IF ON bag ON pack question - Mordaunt - 12-05-2012, 04:09 AM
RE: IF ON bag ON pack question - ChaveS - 12-05-2012, 08:02 AM
RE: IF ON bag ON pack question - Mordaunt - 12-05-2012, 08:05 AM
RE: IF ON bag ON pack question - Lazarus - 12-05-2012, 08:58 AM
RE: IF ON bag ON pack question - ChaveS - 12-05-2012, 01:13 PM
RE: IF ON bag ON pack question - Lazarus - 12-07-2012 01:55 AM
RE: IF ON bag ON pack question - Skul - 12-10-2012, 10:29 PM

Forum Jump:


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