Jump to content

Marneus901

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About Marneus901

Marneus901's Achievements

0

Reputation

  1. Ok, I Found The Solution, And I Got It To Work. I Needed To Clean Up The Stack Using add esp,[# of pushed values * 4] I Found The Solution Here: http://www.codeproject.com/cpp/calling_con...demystified.asp The Way It Should Look Like Is Like So void Echo(const char *szMsg, ...){ _asm{ mov eax,ZChatOutput PUSH 0xFFFFFFFF PUSH 0 PUSH 2 PUSH szMsg call eax add esp,16 }} I Had To add esp,16, 16 Because 4 Pushed Values * 4 = 16, Hence add esp,16 Thanks For Your Attempts To Help Otherwise! -Marneus901
  2. Well The Thing Is, I Want To Use Inline asm, Not The Calling Conventions. With The Inline asm, I Have No Calling Conventions, It Works Like I Said, It Outputs, Then Gives Me That ESP Error >.> So, It Shouldnt* Have To Deal With The Calling Conventions. An Example Of Perfect Working Code Is void SetAP(){ if(InGame()){//Check If In Game So We Dont Crash _asm{ mov ecx,MyZChar //Get Our Character ID mov eax,ZCharacter__SetAPOffset //Get The SetAP Offset PUSH 999 //Push The Value We Want Our AP At call eax //And Send To The Offset } } } It Perfectly Sets My AP, With No Errors. Which Is Weird Why Output Gives Me An Error...
  3. LOL Aight, Im Kinda Not The Best At This Stuff. BUT It Deals With Assembly From OllyDBG And A Game Called GunZ. Im Trying To Figure Out A Way To Get This To Work In Inline asm Like So Now... It Works, Somewhat It Outputs A Sample Message Lets Say When I Call It Like So It Outputs That String In-Game But Then A Second Later It Crashes, And I Get This Message [image Attached] Any Help is Appreciated! Thanks~ -Marneus901
×
×
  • Create New...