Page 1 of 2
Pickup/Drop Coin from inventory/bank
Posted: Sun Jun 29, 2003 9:19 pm
by sprite
Not sure if anyone can use this for anything. Will need to modify it so it will take args and such anyways, but this code will directly pick up money or place money in inventory or bank.
Code: Select all
VOID CoinStuff(PSPAWNINFO pChar, PCHAR szLine)
{
DWORD DROPCOIN = 0x004DEE5E;
__asm {
push 0x0000000; // Always 0
push 0x0000064; // Amount
push 0x0000001; // Destination Coin Type: 0 = Platinum, 1 = Gold, 2 = Silver, 3 = Copper
push 0x0000000; // Source Coin Type: 0 = Platinum, 1 = Gold, 2 = Silver, 3 = Copper
push 0x0000000; // Coin Destination? 0 = cursor, 1 = inventory, 2 = bank
mov ecx, dword ptr 0x0077b858;
push 0x0000001; // Coin Source? 0 = cursor, 1 = inventory, 2 = bank
call dword ptr [DROPCOIN];
}
}
Posted: Sun Jun 29, 2003 9:24 pm
by sprite
Blah managed to post in wrong forum. Move to dev =P
Posted: Mon Jun 30, 2003 3:46 pm
by Valerian
ClsMainNewUI. not sure how to use it in the __asm block, but that's what that's pointing at.
Posted: Mon Jun 30, 2003 7:38 pm
by EqMule
AWESOME! seing the map file in the devs forum when I came back from my vacation, made my day!, this will be fun! Now if only someone could fix unload so i can restart MQ without crashing EQ... cant wait to try out all the cool functions...
Posted: Mon Jun 30, 2003 11:50 pm
by Amadeus
All you have to do is /unload ..then alt-tab out and right-click-quit the macroquest process ....then restart macroquest, then while in EQ type /emote saved.
Posted: Tue Jul 01, 2003 2:36 am
by dont_know_at_all
Uh, nope. Since we detoured the mouse routine, /unload crashes.
Posted: Tue Jul 01, 2003 4:20 am
by wassup
/unload doesn't crash my client...
Posted: Tue Jul 01, 2003 5:35 am
by Amadeus
/unload doesn't crash me either ....works every time :)
Posted: Tue Jul 01, 2003 8:34 am
by Valerian
/unload doesn't crash, but right-click-quitting macroquest DOES crash, every time. doesn't matter if you /unload or not, if you close MQ, you crash.
Posted: Tue Jul 01, 2003 10:08 am
by wassup
That I have seen Valeerian.
Also, even when you /unload then exit all the way out of EQ normally after using /unload, eqgame.exe remains in the Processes list.
I always have to use the Windows Task Manager to end the process.
Posted: Tue Jul 01, 2003 10:39 am
by sprite
I think 0x0077b858 is the 'this' pointer. I found these before .map file leaked, will be fun detouring a lot of the functions found in .map though. It allowed me to try some things without taking a long time finding the right offsets, like making unlimited chars in one server (Not that it has any use since you can only access the first 8, but I was hoping I could overflow it somehow, but no luck)
Posted: Tue Jul 01, 2003 11:15 am
by Valerian
Aye, 0x0077b858 is the 'this' pointer, but in the .ini file it's marked as ClsMainNewUI (that could probably be changed... eventually)
my post was to inform you that MQ already has that value in the ini file, and it's been found by offset finders for quite some time, so why not use the ini value to make it work after the next patch? =)
I wish they'd leak a .map with every patch, and maybe full source at least once... Imagine the possibilities! *drools*
Posted: Tue Jul 01, 2003 11:24 am
by sprite
Ahh ok thanks for clearing that up Valerian. If no one else wants to do it I can write a function like /drop bank platinum 1000, /drop inventory gold 1000 and such, but only if there is a demand for it, it is not something I will personally use.
Posted: Tue Jul 01, 2003 11:45 am
by Valerian
is it possible to drop from the bank directly to your character, without the bank open?
Posted: Tue Jul 01, 2003 11:48 am
by sprite
There is a serverside range check on bank, but if you're within banking range then yes. I'm surprised they haven't added this to merchants yet (Ok, bet we will see it in the next patch now). Verant if you reading this you might try to fix my zonecrash as well =P 30 bazaar crashes in a row and the account is still alive, having log problems? =P