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