Beispiel #1
0
        public void testValues(int sizeTest)
        {
            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < sizeTest; i++)
            {
                int x = Process.ReadInt(Address + i);

                zCVob vob = new zCVob(Process, x);
                Gothic.zTypes.zString str  = new zTypes.zString(Process, x);
                Gothic.zTypes.zString str2 = new zTypes.zString(Process, Address + i);


                sb.AppendLine("Class Info " + i + " Int " + x);
                sb.AppendLine("Class Info " + i + " Vob " + vob.VobType);
                //zERROR.GetZErr(Process).Report(2, 'G', "Class-Info: " + i + " vob:" + vob.VobType, 0, "Program.cs", 0);
                if (str.getCheckedValue() != null)
                {
                    sb.AppendLine("Class Info" + i + " Str1" + str.Value);
                }
                if (str2.getCheckedValue() != null)
                {
                    sb.AppendLine("Class Info" + i + " Str2" + str2.Value);
                }
            }
            zERROR.GetZErr(Process).Report(2, 'G', "TestValues: " + sizeTest + "\r\n" + sb, 0, "Program.cs", 0);
        }
        public List <zCVob> getItemList(zCVob.VobTypes vobType)
        {
            List <zCVob> vobs = new List <zCVob>();

            zCListSort <zCVob> vobList = this.VobList;

            do
            {
                zCVob vob = vobList.Data;

                //Check if vob is item
                if (vob == null || vob.Address == 0 || vob.VobType != vobType)
                {
                    continue;
                }

                //add the vob to the itemlist
                vobs.Add(vob);
            } while ((vobList = vobList.Next).Address != 0);

            return(vobs);
        }
Beispiel #3
0
 public void CreatePassivePerception(int arg, zCVob vob, zCVob vob2)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.CreatePassivePerception, new CallValue[] { new IntArg(arg), vob, vob2 });
 }
Beispiel #4
0
 public int CanSee(zCVob vob, int arg)
 {
     return(Process.THISCALL <IntArg>((uint)Address, (uint)FuncOffsets.CanSee, new CallValue[] { vob, new IntArg(arg) }).Address);
 }
 public static oCVisualFX CreateAndPlay(Process Process, zString effect, zCVob vob, zCVob targetVob, int a, float b, int c, int d)
 {
     return(Process.CDECLCALL <oCVisualFX>((uint)FuncOffsets.CreateAndPlay, new CallValue[] { effect, vob, targetVob, (IntArg)a, (FloatArg)b, (IntArg)c, (IntArg)d }));
 }
Beispiel #6
0
 public static void setListener(Process process, zCVob vob)
 {
     process.Write(vob.Address, 0x008CEE50);
 }
Beispiel #7
0
 public static void setSpeaker(Process process, zCVob vob)
 {
     process.Write(vob.Address, 0x008CEE4C);
 }
 public zCTree <zCVob> AddVob(zCVob vob)
 {
     return(Process.THISCALL <zCTree <zCVob> >((uint)Address, (uint)FuncOffsets.AddVob, new CallValue[] { vob }));
 }
Beispiel #9
0
 public int CanSense(zCVob npc)
 {
     return(Process.THISCALL <IntArg>((uint)Address, (uint)FuncOffsets.CanSense, new CallValue[] { npc }));
 }
Beispiel #10
0
 public void StartInvestEffect(zCVob vob, int x, int y, int z)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.StartInvestEffect, new CallValue[] { vob, new IntArg(x), new IntArg(y), new IntArg(z) });
 }
Beispiel #11
0
 public void StartCastEffect(zCVob vob, zVec3 pos)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.StartCastEffect, new CallValue[] { vob, pos });
 }
Beispiel #12
0
 public void Spell_Setup(oCNpc npc, zCVob vob, int i)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.Spell_Setup, new CallValue[] { npc, vob, new IntArg(i) });
 }
 public void OnUnTrigger(zCVob triggertarget, zCVob sender)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.OnUnTrigger, new CallValue[] { triggertarget, sender });
 }
Beispiel #14
0
 public void InsertVobInWorld(zCVob vob)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.InsertVobInWorld, new CallValue[] { vob });
 }
Beispiel #15
0
 public void PutInSlot(zString slot, zCVob vob, int i)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.PutInSlot, new CallValue[] { slot, vob, new IntArg(i) });
 }
Beispiel #16
0
 public void DoTakeVob(zCVob vob)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.DoTakeVob, new CallValue[] { vob });
 }
Beispiel #17
0
 public void SetTarget(zCVob vob)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.SetTarget, new CallValue[] { vob });
 }
 public void OnMessage(int eventMessage, zCVob vob)
 {
     Process.THISCALL <NullReturnCall>((uint)Address, (uint)FuncOffsets.OnMessage, new CallValue[] { (IntArg)eventMessage, vob });
 }
Beispiel #19
0
 public int PlaySound3D(zCSoundFX sound, zCVob vob, int arg, zStruct.zTSound3DParams param)
 {
     return(Process.THISCALL <IntArg>((uint)Address, (int)FuncOffsets.PlaySound3D, new CallValue[] { sound, vob, (IntArg)arg, param }));
 }