Changelings fixed in Avlis

Development for CoPaP
Post Reply
Mistcaller
Groundling
Posts: 137
Joined: Tue Nov 25, 2003 7:29 am
Location: Avlis Team - Tairis'nadur Team

Changelings fixed in Avlis

Post by Mistcaller »

The changeling ability fix was succesfully implemented to Avlis. I post the procedure here too for all copap members to be able to view it.

Step 1:
Modify Client OnEnter script to execute the appropriate script (I call it "avlis_addfeat_sp")

Code: Select all

ExecuteScript("avlis_addfeat_sp",OBJECT_SELF);

Step 2:
Import this script

Code: Select all

//::///////////////////////////////////////////////
//:: Name  avlis_addfeat_sp
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*  This function adds required feats to custom race hides.
    It fixes the broken custom race special abilities issue,
    in combination with some hak updates
*/
//:://////////////////////////////////////////////
//:: Created By: Mistcaller
//:: Created On: November 27, 2004
//:://////////////////////////////////////////////

#include "aps_include"
void main()
{
  object oPC = OBJECT_SELF;
  if (GetIsDM(oPC)) return;

  object oHide = GetItemInSlot(INVENTORY_SLOT_CARMOUR, oPC);

  if (!GetIsObjectValid(oHide) || GetPersistentInt(oPC, "RaceSpecialChecked")==1)
  {
    //SendMessageToPC(oPC,"Feat not added");
    return;
  }

  itemproperty ipAddFeat;
  if (GetTag(oHide) == "skin_75_0")
  {
    ipAddFeat = ItemPropertyBonusFeat(50);
    AddItemProperty(DURATION_TYPE_PERMANENT, ipAddFeat, oHide);
    SendMessageToPC(oPC, "Changeling Feat Updated Successfully");
  }
  /* else if (GetTag(oHide)== "some other hide tag")
  {
    AddFeatTheSameWay
  }
  etc. */


  SetPersistentInt(oPC, "RaceSpecialChecked",1);
}
Step 3:
Add all cls_feat_*.2das and feat.2da , iprp_feats.2da that you can find in this file [2DAs_4Changeling.rar] here

into one of your local haks or into the override folder. Both server and client should have the same 2das for it to work.
Also the folder new2das (that is used by the custom ecl checker) should be updated with the new 2das, so that ECL doesnt boot people.


The above fix (step 3) will most probably be intergrated in the next copap hak for patch 1.65. In the same manner other feats can be added to replace lost racial abilities
Post Reply