Ejemplo n.º 1
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     FactionId          = EventsPlugin.GetEventData("FACTION_ID").ParseInt();
     SubjectFactionId   = EventsPlugin.GetEventData("SUBJECT_FACTION_ID").ParseInt();
     PreviousReputation = EventsPlugin.GetEventData("PREVIOUS_REPUTATION").ParseInt();
     NewReputation      = EventsPlugin.GetEventData("NEW_REPUTATION").ParseInt();
 }
Ejemplo n.º 2
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player = (NwPlayer)objSelf;
     Item   = EventsPlugin.GetEventData("ITEM").ParseObject <NwItem>();
     Store  = EventsPlugin.GetEventData("STORE").ParseObject <NwStore>();
     Price  = EventsPlugin.GetEventData("PRICE").ParseInt();
 }
Ejemplo n.º 3
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Module = (NwModule)objSelf;
     Alias  = EventsPlugin.GetEventData("ALIAS");
     ResRef = EventsPlugin.GetEventData("RESREF");
     Type   = (ResRefType)EventsPlugin.GetEventData("TYPE").ParseInt();
 }
Ejemplo n.º 4
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Creature = (NwCreature)objSelf;
     Item     = EventsPlugin.GetEventData("ITEM_OBJECT_ID").ParseObject <NwItem>();
     Slot     = (InventorySlot)EventsPlugin.GetEventData("SLOT").ParseInt();
     Result   = EventsPlugin.GetEventData("BEFORE_RESULT").ParseInt().ToBool();
 }
Ejemplo n.º 5
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Module   = (NwModule)objSelf;
     Username = EventsPlugin.GetEventData("PLAYER_NAME");
     CDKey    = EventsPlugin.GetEventData("CDKEY");
     DM       = EventsPlugin.GetEventData("IS_DM").ParseInt().ToBool();
     IP       = EventsPlugin.GetEventData("IP_ADDRESS");
 }
Ejemplo n.º 6
0
            protected override void PrepareEvent(NwObject objSelf)
            {
                Preparer = (NwCreature)objSelf;

                int classIndex = EventsPlugin.GetEventData("SPELL_CLASS").ParseInt();

                ClassType = (ClassType)NWScript.GetClassByPosition(classIndex + 1, Preparer);
                Spell     = (Spell)EventsPlugin.GetEventData("SPELL_ID").ParseInt();
            }
Ejemplo n.º 7
0
            protected override void PrepareEvent(NwObject objSelf)
            {
                Examiner = (NwPlayer)objSelf;
                Examinee = EventsPlugin.GetEventData("EXAMINEE_OBJECT_ID").ParseObject();

                if (Examinee is NwTrappable)
                {
                    TrapExamineSuccess = EventsPlugin.GetEventData("TRAP_EXAMINE_SUCCESS").ParseIntBool();
                }
            }
Ejemplo n.º 8
0
            protected override void PrepareEvent(NwObject objSelf)
            {
                Creature             = (NwCreature)objSelf;
                Item                 = EventsPlugin.GetEventData("ITEM_OBJECT_ID").ParseObject <NwItem>();
                TargetObject         = EventsPlugin.GetEventData("TARGET_OBJECT_ID").ParseObject <NwGameObject>();
                ItemPropertyIndex    = EventsPlugin.GetEventData("ITEM_PROPERTY_INDEX").ParseInt();
                ItemSubPropertyIndex = EventsPlugin.GetEventData("ITEM_SUB_PROPERTY_INDEX").ParseInt();
                float targetX = EventsPlugin.GetEventData("TARGET_POSITION_X").ParseFloat();
                float targetY = EventsPlugin.GetEventData("TARGET_POSITION_Y").ParseFloat();
                float targetZ = EventsPlugin.GetEventData("TARGET_POSITION_Z").ParseFloat();

                TargetPosition = new Vector3(targetX, targetY, targetZ);
                UseCharges     = EventsPlugin.GetEventData("USE_CHARGES").ParseInt();
            }
Ejemplo n.º 9
0
            protected override void PrepareEvent(NwObject objSelf)
            {
                FeatUser         = (NwCreature)objSelf;
                Feat             = (Feat)EventsPlugin.GetEventData("FEAT_ID").ParseInt();
                TargetGameObject = EventsPlugin.GetEventData("TARGET_OBJECT_ID").ParseObject <NwGameObject>();

                Vector3 position;

                position.X = EventsPlugin.GetEventData("TARGET_POSITION_X").ParseFloat();
                position.Y = EventsPlugin.GetEventData("TARGET_POSITION_Y").ParseFloat();
                position.Z = EventsPlugin.GetEventData("TARGET_POSITION_Z").ParseFloat();

                TargetPosition = position;
            }
Ejemplo n.º 10
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     PartyLeader = (NwPlayer)objSelf;
     Kicked      = EventsPlugin.GetEventData("KICKED").ParseObject <NwCreature>();
 }
Ejemplo n.º 11
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player   = (NwPlayer)objSelf;
     Henchman = EventsPlugin.GetEventData("INVITED_BY").ParseObject <NwCreature>();
 }
Ejemplo n.º 12
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     RejectedBy = (NwPlayer)objSelf;
     SentBy     = EventsPlugin.GetEventData("INVITED_BY").ParseObject <NwPlayer>();
 }
Ejemplo n.º 13
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Sender  = (NwPlayer)objSelf;
     Invited = EventsPlugin.GetEventData("INVITED").ParseObject <NwPlayer>();
 }
Ejemplo n.º 14
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     PreviousLeader = (NwPlayer)objSelf;
     NewLeader      = EventsPlugin.GetEventData("NEW_LEADER").ParseObject <NwPlayer>();
 }
Ejemplo n.º 15
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player = (NwPlayer)objSelf;
     Target = EventsPlugin.GetEventData("BARTER_TARGET").ParseObject <NwPlayer>();
 }
Ejemplo n.º 16
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player = (NwPlayer)objSelf;
     Gold   = EventsPlugin.GetEventData("GOLD").ParseInt();
 }
Ejemplo n.º 17
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player    = (NwPlayer)objSelf;
     Associate = EventsPlugin.GetEventData("ASSOCIATE_OBJECT_ID").ParseObject <NwCreature>();
 }
Ejemplo n.º 18
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player   = (NwPlayer)objSelf;
     Password = EventsPlugin.GetEventData("PASSWORD");
 }
Ejemplo n.º 19
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Player      = (NwPlayer)objSelf;
     Area        = EventsPlugin.GetEventData("AREA").ParseObject <NwArea>();
     NewToModule = EventsPlugin.GetEventData("IS_DM").ParseInt().ToBool();
 }
Ejemplo n.º 20
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Container = (NwItem)objSelf;
     Owner     = EventsPlugin.GetEventData("OWNER").ParseObject <NwCreature>();
 }
Ejemplo n.º 21
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Creature = (NwCreature)objSelf;
     Item     = EventsPlugin.GetEventData("ITEM_OBJECT_ID").ParseObject <NwItem>();
 }
Ejemplo n.º 22
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Creature = (NwCreature)objSelf;
     Item     = EventsPlugin.GetEventData("ITEM").ParseObject <NwItem>();
     Store    = EventsPlugin.GetEventData("STORE").ParseObject <NwStore>();
 }
Ejemplo n.º 23
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Healer       = (NwCreature)objSelf;
     Target       = EventsPlugin.GetEventData("TARGET_OBJECT_ID").ParseObject <NwCreature>();
     AmountHealed = EventsPlugin.GetEventData("HEAL_AMOUNT").ParseInt();
 }
Ejemplo n.º 24
0
 protected override void PrepareEvent(NwObject objSelf)
 {
     Module = (NwModule)objSelf;
     Old    = EventsPlugin.GetEventData("OLD").ParseInt();
     New    = EventsPlugin.GetEventData("NEW").ParseInt();
 }