A forum for feature requests/discussions and user submitted patches that improve MQ2
Moderator: MacroQuest Developers
-
sprite
- a lesser mummy

- Posts: 51
- Joined: Tue Apr 15, 2003 8:42 am
Post
by sprite » Sun Jun 29, 2003 9:19 pm
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];
}
}
-
sprite
- a lesser mummy

- Posts: 51
- Joined: Tue Apr 15, 2003 8:42 am
Post
by sprite » Sun Jun 29, 2003 9:24 pm
Blah managed to post in wrong forum. Move to dev =P
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Mon Jun 30, 2003 3:46 pm
ClsMainNewUI. not sure how to use it in the __asm block, but that's what that's pointing at.
-
EqMule
- Developer

- Posts: 2697
- Joined: Fri Jan 03, 2003 9:57 pm
-
Contact:
Post
by EqMule » Mon Jun 30, 2003 7:38 pm
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...

o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received

donations for this month's patches.
Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Mon Jun 30, 2003 11:50 pm
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.
-
dont_know_at_all
- Developer

- Posts: 5450
- Joined: Sun Dec 01, 2002 4:15 am
- Location: Florida, USA
-
Contact:
Post
by dont_know_at_all » Tue Jul 01, 2003 2:36 am
Uh, nope. Since we detoured the mouse routine, /unload crashes.
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Tue Jul 01, 2003 4:20 am
/unload doesn't crash my client...
-
Amadeus
- The Maestro

- Posts: 2036
- Joined: Sat Jun 29, 2002 3:51 pm
Post
by Amadeus » Tue Jul 01, 2003 5:35 am
/unload doesn't crash me either ....works every time :)
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Tue Jul 01, 2003 8:34 am
/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.
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Tue Jul 01, 2003 10:08 am
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.
-
sprite
- a lesser mummy

- Posts: 51
- Joined: Tue Apr 15, 2003 8:42 am
Post
by sprite » Tue Jul 01, 2003 10:39 am
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)
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Tue Jul 01, 2003 11:15 am
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*
-
sprite
- a lesser mummy

- Posts: 51
- Joined: Tue Apr 15, 2003 8:42 am
Post
by sprite » Tue Jul 01, 2003 11:24 am
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.
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Tue Jul 01, 2003 11:45 am
is it possible to drop from the bank directly to your character, without the bank open?
-
sprite
- a lesser mummy

- Posts: 51
- Joined: Tue Apr 15, 2003 8:42 am
Post
by sprite » Tue Jul 01, 2003 11:48 am
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