Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 14:32

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Need help with a snippet to store all platinum on a character in storage

Discussion on Need help with a snippet to store all platinum on a character in storage within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2019
Posts: 11
Received Thanks: 0
Talking Need help with a snippet to store all platinum on a character in storage

Hey all, as the title states. I'm looking for a snippet that will store all platinum on a character in storage in the Isle of Weeping Stone (if that matters). Thanks for any help.
xamkta is offline  
Old 10/30/2023, 21:46   #2


 
elite*gold: 258
Join Date: Jan 2021
Posts: 132
Received Thanks: 142
Quote:
Originally Posted by xamkta View Post
Hey all, as the title states. I'm looking for a snippet that will store all platinum on a character in storage in the Isle of Weeping Stone (if that matters). Thanks for any help.
Code:
Func DepositGold($aAmount = 0)
	Local $lAmount
	Local $lStorage = GetGoldStorage()
	Local $lCharacter = GetGoldCharacter()

	If $aAmount > 0 And $lCharacter >= $aAmount Then
		$lAmount = $aAmount
	Else
		$lAmount = $lCharacter
	EndIf

	If $lStorage + $lAmount > 1000000 Then $lAmount = 1000000 - $lStorage

	ChangeGold($lCharacter - $lAmount, $lStorage + $lAmount)
EndFunc   ;==>DepositGold
Code:
Func GetGoldCharacter()
	Local $lOffset[5] = [0, 0x18, 0x40, 0xF8, 0x90]
	Local $lReturn = MemoryReadPtr($mBasePointer, $lOffset)
	Return $lReturn[1]
EndFunc   ;==>GetGoldCharacter
functions above should be within the GWA2 you are using, ensure they are if so then you can simple just call the function with something similar to the following. I didn't add anything with Map Traveling, if you want it to be specific to a map make sure you add it below.

Code:
; Check the amount of gold on the character
Local $lCharacterGold = GetGoldCharacter()

If $lCharacterGold > 99000 Then ;  If the gold is greater than 99,000, then deposit it
    RndSleep(500) 
    DepositGold(50000); did 50k Plat 
    RndSleep(500) 
EndIf
Mrjambix is offline  
Reply


Similar Threads Similar Threads
[Buying] Extra character slots/ storage panes
02/07/2020 - Guild Wars Trading - 1 Replies
As the title says. Buying extra character slots and storage panes. Seller goes first if you don’t have good rep. Always use epvp request a trade! Pm on discord: Duffy#8819
[Snippet]Neue Funktion in C++, um AutoIT & Co. auf 32Bit.
12/04/2010 - Coding Releases - 5 Replies
Hey, ich hab für euch mal ein kleinen C++ Code. Wer C++ kann, weiß wozu er gut ist. Hier mit es möglich, Autoit und andere Sprachen auf 32Bit Systemen laufen zu lassen. #include <windows.h> HINSTANCE hInst; DWORD GetPixelDLLFunc; HWND hWnd;
[New] Alba Kingz Album Snippet!! [Rap]!!
08/10/2010 - Main - 3 Replies
Hallo Leute, http://img576.imageshack.us/img576/6324/henwdseu1 .jpg Ich wollte euch mal Alba Kingz vorstellen!! Alba Kingz ist eine Albanische Musik Gruppe mit sehr viel Sehr viel Talent. Ich Hoffe das ich euch nicht Störe oder so aber wollte nur mal Zeigen!!
[Code Snippet]Facing Character to X , Y
10/27/2009 - Aion Hacks, Bots, Cheats & Exploits - 4 Replies
Hey community, i want to share some code snippets to you because NCsoft changed a little bit in Aion and now i want to share a new Facting to X Y method. ;) Thanks to PharmerPhale for some help. :) C# Code private double RotNeeded(float X, float Y) {



All times are GMT +1. The time now is 14:33.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.