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
Gold -> Bag -> Bank
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #13
RE: Gold -> Bag -> Bank
Did you still need help with this? If so, Coruja's works. Just change Layer_BackPack to Layer_BankBox. Kanibals is a good example too. Just change out that var to a local. Var's are globally stored and no one is clearing out this Var I am noticing.

Also. Xun is right, Gold function will send it right to the bank, but without a container.

Coruja says NewGold will work, but it doesn't go to the bank, as it has no bounce option. It actually is stored to the <Src> who called that function. Meaning it would just go in their backpack or a chest if a chest called it. Just whatever is calling the function is where that Gold is stored.

This just leaves you with two While options from Coruja and Kanibal, which are the best option for what you are trying to achieve as a While parses until it returns false. Both of their function do this and then take the remainder and drop it in the bag (or in the backpack in Coruja's example, which can be changed to a bag).

Coruja's is accurate without storing anything in a global Var, but in the long run Kanibal's is the most ideal as it doesn't parse the conditional Else and has already been lowering the Var the entire time to dump it in the bag when While returns False. Just change his Vars to locals as I stated.

Also, Kanibal's method for calling Layer 29 is correct, while I saw people calling for layer_backpack.

Also, change Kanibal's Src.Update to Src.Resend. Update is called from an Item and Resend refreshes the Client's screen, whom is your recipient. Both are good, but in this case, Resend is probably what you truly want. If this is being parsed from the player as the <Src>, Resend is your function for updating you want.
(This post was last modified: 03-01-2016 12:18 PM by Khaos.)
03-01-2016 12:13 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Gold -> Bag -> Bank - Llirik - 08-13-2015, 06:16 PM
RE: Gold -> Bag -> Bank - evening - 08-13-2015, 07:10 PM
RE: Gold -> Bag -> Bank - Kanibal - 08-14-2015, 01:26 AM
RE: Gold -> Bag -> Bank - evening - 08-14-2015, 03:36 AM
RE: Gold -> Bag -> Bank - Kanibal - 08-14-2015, 04:31 AM
RE: Gold -> Bag -> Bank - evening - 08-14-2015, 05:15 AM
RE: Gold -> Bag -> Bank - Kanibal - 08-18-2015, 04:42 AM
RE: Gold -> Bag -> Bank - Llirik - 03-01-2016, 10:38 AM
RE: Gold -> Bag -> Bank - Llirik - 02-16-2016, 09:22 AM
RE: Gold -> Bag -> Bank - XuN - 08-14-2015, 02:48 AM
RE: Gold -> Bag -> Bank - Coruja - 08-14-2015, 03:00 AM
RE: Gold -> Bag -> Bank - Llirik - 08-14-2015, 09:09 PM
RE: Gold -> Bag -> Bank - Khaos - 03-01-2016 12:13 PM
RE: Gold -> Bag -> Bank - Llirik - 03-01-2016, 12:23 PM
RE: Gold -> Bag -> Bank - Khaos - 03-01-2016, 12:26 PM
RE: Gold -> Bag -> Bank - Llirik - 03-01-2016, 12:28 PM
RE: Gold -> Bag -> Bank - Khaos - 03-01-2016, 12:31 PM
RE: Gold -> Bag -> Bank - Llirik - 03-01-2016, 12:54 PM
RE: Gold -> Bag -> Bank - Khaos - 03-01-2016, 02:56 PM
RE: Gold -> Bag -> Bank - pointhz - 03-01-2016, 06:44 PM
RE: Gold -> Bag -> Bank - Khaos - 03-02-2016, 12:07 AM
RE: Gold -> Bag -> Bank - Llirik - 03-02-2016, 01:22 AM
RE: Gold -> Bag -> Bank - Llirik - 11-12-2016, 09:04 PM
RE: Gold -> Bag -> Bank - Khaos - 03-02-2016, 04:15 AM
RE: Gold -> Bag -> Bank - pointhz - 03-02-2016, 04:36 AM
RE: Gold -> Bag -> Bank - Khaos - 03-02-2016, 07:10 AM
RE: Gold -> Bag -> Bank - Khaos - 03-18-2016, 07:53 PM
RE: Gold -> Bag -> Bank - Llirik - 03-19-2016, 07:35 PM
RE: Gold -> Bag -> Bank - Khaos - 03-20-2016, 05:11 AM
RE: Gold -> Bag -> Bank - Llirik - 03-20-2016, 07:42 PM
RE: Gold -> Bag -> Bank - pointhz - 03-23-2016, 08:53 AM
RE: Gold -> Bag -> Bank - Khaos - 03-25-2016, 04:15 PM
RE: Gold -> Bag -> Bank - Llirik - 04-17-2016, 04:36 AM
RE: Gold -> Bag -> Bank - XuN - 04-17-2016, 10:06 PM
RE: Gold -> Bag -> Bank - Llirik - 04-18-2016, 02:59 AM
Gold -> Bag -> Bank - roberpot - 04-18-2016, 03:51 AM

Forum Jump:


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