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