Exemple #1
0
 public void SetActorInfo(SagaDB.Actors.ActorPC pc)
 {
     this.PutByte((byte)(pc.mapID + 0x65), 9);//Unknown
     this.PutByte((byte)(pc.Race), 10);
     this.PutByte(pc.mapID, 11);
     this.PutUShort(pc.maxHP, 12);
     this.PutUShort(pc.HP, 14);
     this.PutUShort(pc.maxSP, 16);
     this.PutUShort(pc.SP, 18);
     this.PutByte(pc.LP, 20);//Unknown
     this.PutByte((byte)pc.cLevel, 21);
     this.PutByte((byte)pc.job, 22);
     this.PutByte((byte)pc.jLevel, 23);
 }
Exemple #2
0
        public static Weapon GetActiveWeapon(SagaDB.Actors.ActorPC pc)
        {
            foreach (Weapon w in pc.Weapons)
            {
                if (w.active == 1)
                {
                    return(w);
                }
            }
            Weapon nw = new Weapon();

            nw.type = 0;
            return(nw);
        }