Hilfe bei Coding start

10/08/2010 18:25 Sinobis9000#1
Hallo
Ich möchte anfangen ein paar kleine Programme für WoW zu coden z.b. zum Auslesen der Koordinaten aber irgentwie komm ich nicht weiter.
Mein Momentaner Code ist folgender :
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Magic;

namespace 
Memory_Editing_Tutorial__Console_App
{
    class 
Program
    
{
        static 
void Main(string[] args)
        {
            
BlackMagic wow = new BlackMagic(); //Create new function to open wow process
            
wow.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft")); //This Opens "World of Warcraft" window


            
uint playerbase wow.ReadUInt(wow.ReadUInt(wow.ReadUInt(&HCD87A8) + &H34) + &H24); //this is the player base
            
float playerx wow.ReadFloat(playerbase + &H79); // Read players xlocation
            
float playery wow.ReadFloat(playerbase + &H79C); // Read players ylocation
            
float playerz wow.ReadFloat(playerbase + &H7A0); // Read players zlocation 

            
Console.WriteLine("Player X cord is:" playerx); //writes to console to tell players x cordinate
            
Console.WriteLine("Player Y cord is:" playery); //writes to console to tell players y cordinate


        
}
    }

Problem Gelöst fehlen nurnoch die richtigen offsets ^^
10/09/2010 21:38 Sinobis9000#2
/push
10/10/2010 00:34 Cencil#3
Da es um C# geht &H durch 0x ersetzen, bei der X Achse fehlt btw. eine 8, das Offset ist nicht 0x79 sondern 0x798
10/15/2010 19:51 Sinobis9000#4
Danke dir das hat mir schon sehr geholfen :) Leider kam jetzt "ReadUInt failed." aber das liegt sicher daran das jetzt wieder neue Offsets da sind ;)
10/15/2010 19:58 Imperial Blaze#5
Joa, aber so wirst nicht weiter kommen. Musst ja jedes mal die Process Base mit rein nehmen.
10/15/2010 22:54 Cencil#6
Quote:
Originally Posted by Imperial Blaze View Post
Joa, aber so wirst nicht weiter kommen. Musst ja jedes mal die Process Base mit rein nehmen.
So ist es, seit 4.0.1

War zwar schön bequem in meinen Projekten alle Offsets als Konstante zu deklarieren und alles funktioniert sofort, aber nun ist es nicht wirklich schwerer geworden, nur etwas ... sagen wir mal nervig :)

Wie du die Adressen nun liest wurde hier sogar schon im Forum besprochen.