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(); }
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(); }
protected override void PrepareEvent(NwObject objSelf) { Module = (NwModule)objSelf; Alias = EventsPlugin.GetEventData("ALIAS"); ResRef = EventsPlugin.GetEventData("RESREF"); Type = (ResRefType)EventsPlugin.GetEventData("TYPE").ParseInt(); }
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(); }
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(); }
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(); } }
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(); }
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; }
protected override void PrepareEvent(NwObject objSelf) { PartyLeader = (NwPlayer)objSelf; Kicked = EventsPlugin.GetEventData("KICKED").ParseObject <NwCreature>(); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Henchman = EventsPlugin.GetEventData("INVITED_BY").ParseObject <NwCreature>(); }
protected override void PrepareEvent(NwObject objSelf) { RejectedBy = (NwPlayer)objSelf; SentBy = EventsPlugin.GetEventData("INVITED_BY").ParseObject <NwPlayer>(); }
protected override void PrepareEvent(NwObject objSelf) { Sender = (NwPlayer)objSelf; Invited = EventsPlugin.GetEventData("INVITED").ParseObject <NwPlayer>(); }
protected override void PrepareEvent(NwObject objSelf) { PreviousLeader = (NwPlayer)objSelf; NewLeader = EventsPlugin.GetEventData("NEW_LEADER").ParseObject <NwPlayer>(); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Target = EventsPlugin.GetEventData("BARTER_TARGET").ParseObject <NwPlayer>(); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Gold = EventsPlugin.GetEventData("GOLD").ParseInt(); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Associate = EventsPlugin.GetEventData("ASSOCIATE_OBJECT_ID").ParseObject <NwCreature>(); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Password = EventsPlugin.GetEventData("PASSWORD"); }
protected override void PrepareEvent(NwObject objSelf) { Player = (NwPlayer)objSelf; Area = EventsPlugin.GetEventData("AREA").ParseObject <NwArea>(); NewToModule = EventsPlugin.GetEventData("IS_DM").ParseInt().ToBool(); }
protected override void PrepareEvent(NwObject objSelf) { Container = (NwItem)objSelf; Owner = EventsPlugin.GetEventData("OWNER").ParseObject <NwCreature>(); }
protected override void PrepareEvent(NwObject objSelf) { Creature = (NwCreature)objSelf; Item = EventsPlugin.GetEventData("ITEM_OBJECT_ID").ParseObject <NwItem>(); }
protected override void PrepareEvent(NwObject objSelf) { Creature = (NwCreature)objSelf; Item = EventsPlugin.GetEventData("ITEM").ParseObject <NwItem>(); Store = EventsPlugin.GetEventData("STORE").ParseObject <NwStore>(); }
protected override void PrepareEvent(NwObject objSelf) { Healer = (NwCreature)objSelf; Target = EventsPlugin.GetEventData("TARGET_OBJECT_ID").ParseObject <NwCreature>(); AmountHealed = EventsPlugin.GetEventData("HEAL_AMOUNT").ParseInt(); }
protected override void PrepareEvent(NwObject objSelf) { Module = (NwModule)objSelf; Old = EventsPlugin.GetEventData("OLD").ParseInt(); New = EventsPlugin.GetEventData("NEW").ParseInt(); }