Here is the script I have Ondeath of the beetle, it works for the most part, the way I want it to other than putting the charisma decreased symbol up. I need help with the area of effect script for the NPC's as well as the remove the decrease script for the bath, although that one I can probably muddle my through on my own, it's the area of effect I am completely clueless about.
#include "x2_inc_compon"
#include "x0_i0_spawncond"
#include "x3_inc_horse"
#include "x2_inc_itemprop"
void main()
{
object oPC = GetLastKiller();
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
int nclass = GetLevelByclass(class_TYPE_COMMONER);
int nAlign = GetAlignmentGoodEvil(OBJECT_SELF);
object oKiller_chest =GetItemInSlot(INVENTORY_SLOT_CARMOUR,oPC);
//do not know your amount, so put 2
int iAmount = 8;
itemproperty ip_Stink =ItemPropertyDecreaseAbility(IP_CONST_ABILITY_CHA,iAmount);
if(oKiller_chest!=OBJECT_INVALID)
{
IPSafeAddItemProperty(oKiller_chest,ip_Stink,0.0,X2_IP_ADDPROP_POLICY_REPLACE_EXISTING);
SetLocalInt(oPC,"iStink", 1);
HorseAddHorseMenu(oPC);
SendMessageToPC(oPC,"I stink!");
GiveXPToCreature(oPC,1500);
AddJournalQuestEntry("jt_Infestation", 7, oPC, TRUE, FALSE);
SetLocalInt(oPC, "QueenBeetleDead", 1);
}
Any help would be greatly appreciated and Lightfoot 8, if your out there, I loved the ideas you had awhile back, if you still have them and could show me how to script them I would be forever grateful.





Retour en haut






