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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ITEM/FUNCTION] Account Gold Bank
Author Message
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #11
RE: [ITEM/FUNCTION] Account Gold Bank
Hummmm it's strange... i've never done this way, i've created a "handler" to change the type back to t_eq_bank_box after the container closes.

But it should be working... you have to remember that sphere sometimes changes the character list order (i don't understand why.. but sometimes the order is changed).

You can compare the UID from the desired player insted of the number of the character list... this way is a little more slow, but its more acccurate!

Code:
[FUNCTION open_bank_char]
// Receives an parameter with the desired character UID to open the bank box
// IE: src.open_bank_char <var.uid_of_char_that_bank_should_open>
var.chars <eval <account.chars>>
var.uid = <argv[0]>

for x 1 <var.chars>
    if (<var.uid> == <account.char.<eval <local.x>>.uid>)
        TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.type = t_container
        TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.open
        TRY UID.<account.char.<eval <local.x>>.uid>.findlayer.29.type = t_eq_bank_box
    endif
endfor

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
(This post was last modified: 09-08-2015 04:50 AM by escribano.)
09-08-2015 04:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [ITEM/FUNCTION] Account Gold Bank - escribano - 09-08-2015 04:47 AM

Forum Jump:


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