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 Bank & Player Consumer
Author Message
Llirik
Journeyman
*

Posts: 115
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0

UO Forum

Post: #1
Gold Bank & Player Consumer
This is my function to consume GP from player and bank. All finded bugs Helloed! Smile

[FUNCTION f_consume]
local.x=<FINDLAYER.layer_pack.RESCOUNT i_gold> + <FINDLAYER.layer_bankbox.RESCOUNT i_gold>
IF (<argn> > <local.x>)
SYSMESSAGE You don't have <eval <argn>> gold.
ELSE
if <restest <argn> i_gold>
consume <argn> i_gold
else
local.y=<FINDLAYER.layer_pack.RESCOUNT i_gold>
local.z=<argn> - <local.y>
consume <local.y> i_gold
findlayer.29.contconsume i_gold <local.z>
endif
UPDATE
ENDIF
(This post was last modified: 09-24-2015 12:43 PM by Llirik.)
09-24-2015 11:37 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #2
RE: Gold Bank & Player Consumer
You can simply use SRC.GOLD -= "Desired Amount" and it will consume gold from anywhere in that character.
09-24-2015 11:52 AM
Find all posts by this user Like Post Quote this message in a reply
Llirik
Journeyman
*

Posts: 115
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0

UO Forum

Post: #3
RE: Gold Bank & Player Consumer
Thanks! ;-)
(This post was last modified: 09-24-2015 12:42 PM by Llirik.)
09-24-2015 12:42 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #4
RE: Gold Bank & Player Consumer
src.newgold = 100000
give 100k in backpack

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
09-24-2015 04:26 PM
Visit this user's website 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)