Check Premium modules and offline play
#1
Posté 27 mai 2012 - 09:17
-how can I open a premium module in order to check scripts/items?
#2
Posté 28 mai 2012 - 01:38
#3
Posté 28 mai 2012 - 02:09
#4
Posté 28 mai 2012 - 04:09
However, I believe that once the verification has taken place, I disconnect just in case there might be latency. But I don't know if or how my session was saved. For what that is worth... not a plug nickel, I guess.
#5
Posté 28 mai 2012 - 05:43
#6
Posté 28 mai 2012 - 07:59
#7
Posté 28 mai 2012 - 08:19
#8
Posté 28 mai 2012 - 08:53
Darkness over Daggerford
It might be worth taking a look at, its a Hall of Fame Module with 450 (!!!) votes.
Modifié par Carcerian, 28 mai 2012 - 09:02 .
#9
Posté 28 mai 2012 - 08:57
#10
Posté 28 mai 2012 - 09:11
All the tools ive tried refuse to work on a premium hack, it definitely would be nice to be able to extract them, or view them with something like NW Explorer.
Modifié par Carcerian, 28 mai 2012 - 09:12 .
#11
Posté 28 mai 2012 - 09:31
#12
Posté 28 mai 2012 - 09:50
some gems in there like this one:
//::///////////////////////////////////////////////
//:: inc_balance
//:: Copyright © 2004 Bioware Corp.
//:://////////////////////////////////////////////
/*
This include file is used to autobalance NPCs
and encounters based on the Party playing the
adventure.
*/
//:://////////////////////////////////////////////
//:: Created By: Keith K2 Hayward
//:: Created On: August, 2004
//:://////////////////////////////////////////////
// Called on PCs Exiting and entering the world to rebalance
// future creatures based on the party
void ReCalcGlobalDif();
// Warning: NPC must start at level 1 for this to work;
void LevelUpNPC(object oNPC);
void ReCalcGlobalDif()
{
int iHitDice, iLevel, iPlayers;
object oPC = GetFirstPC();
while (GetIsObjectValid(oPC) == TRUE)
{
// Minimum of level 5 characters
iHitDice = GetHitDice(oPC);
if (iHitDice < 5)
{
iHitDice = 5;
}
iLevel += iHitDice;
iPlayers++;
oPC = GetNextPC();
}
SetLocalInt(GetModule(), "GLOBAL_LEVEL", (iLevel/iPlayers));
//SendMessageToPC(GetFirstPC(), "**GLOBAL_LEVEL = " + IntToString(iLevel/iPlayers));
}
void EquipUpNPC(object oNPC)
{
object oCArmor, oCWeaponR, oCWeaponL;
object oArmor, oWeaponR, oWeaponL;
int iLevel = GetHitDice(oNPC);
int iBoss = GetLocalInt(oNPC, "BOSS");
int iGameDiff = GetGameDifficulty();
int iEnhancementMax = ((iLevel - 1) / 3) + 1;
int iFactor = 0;
int iEnhancement = 0;
itemproperty ipWeapEnhance;
itemproperty ipArmrEnhance;
// testing a different method of scaling,
// all NPCs will be equiped to their level.
/* // Set a base factor in relation to the Game diffculty.
switch (iGameDiff)
{
case GAME_DIFFICULTY_CORE_RULES:
case GAME_DIFFICULTY_DIFFICULT:
iFactor = 1;
break;
case GAME_DIFFICULTY_NORMAL:
default:
iFactor = 2;
break;
case GAME_DIFFICULTY_VERY_EASY :
case GAME_DIFFICULTY_EASY :
iFactor = 3;
break;
}
if (iBoss == TRUE)
{
iFactor -= 1;
}
*/
// Calctulate the max enchancement
iEnhancement = iEnhancementMax - iFactor;
//SendMessageToPC(GetFirstPC(), "**OBJECT = " + GetTag(oNPC)
// + ", suggested enhancement level =" + IntToString(iEnhancement));
if (iEnhancement > 0)
{
ipWeapEnhance = ItemPropertyEnhancementBonus(iEnhancement);
ipArmrEnhance = ItemPropertyACBonus(iEnhancement);
oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC);
oWeaponR = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC);
oWeaponL = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oNPC);
// Check the armor and creature skin and upgrade them
if(GetIsObjectValid(oArmor) == FALSE)
{
oCArmor = GetItemInSlot(INVENTORY_SLOT_CARMOUR, oNPC);
if(GetIsObjectValid(oCArmor) == TRUE)
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipArmrEnhance, oCArmor);
}
}
else
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipArmrEnhance, oArmor);
}
// Check the weapon and creature weapon and upgrade them
if(GetIsObjectValid(oWeaponR) == FALSE)
{
oCWeaponR = GetItemInSlot(INVENTORY_SLOT_CWEAPON_R, oNPC);
if(GetIsObjectValid(oCWeaponR) == TRUE)
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipWeapEnhance, oCWeaponR);
}
}
else
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipWeapEnhance, oWeaponR);
}
// Check the other weapon and creature weapon and upgrade them
if(GetIsObjectValid(oWeaponL) == FALSE)
{
oCWeaponL = GetItemInSlot(INVENTORY_SLOT_CWEAPON_L, oNPC);
if(GetIsObjectValid(oCWeaponL) == TRUE)
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipWeapEnhance, oCWeaponL);
}
}
else
{
AddItemProperty(DURATION_TYPE_PERMANENT, ipWeapEnhance, oWeaponL);
}
}
}
void LevelUpNPC(object oNPC)
{
int iGlobalLevel = GetLocalInt(GetModule(), "GLOBAL_LEVEL");
int iBoss = GetLocalInt(oNPC, "BOSS");
int iGameDiff = GetGameDifficulty();
int iLevel = 0;
float fFactor = 0.0f;
// Set a base factor in relation to the Game diffculty.
switch (iGameDiff)
{
case GAME_DIFFICULTY_CORE_RULES:
case GAME_DIFFICULTY_DIFFICULT:
fFactor = 0.80f;
break;
case GAME_DIFFICULTY_NORMAL:
default:
fFactor = 0.60f;
break;
case GAME_DIFFICULTY_VERY_EASY :
case GAME_DIFFICULTY_EASY :
fFactor = 0.40f;
break;
}
// Bosses should be tougher then average creatures.
if (iBoss == TRUE)
{
fFactor += 0.40f;
}
iLevel = FloatToInt(iGlobalLevel * fFactor);
//SendMessageToPC(GetFirstPC(), "**OBJECT = " + GetTag(oNPC)
// + ", Set to level =" + IntToString(iLevel));
// Scale up the level according to the factor
while (GetHitDice(oNPC) < iLevel)
{
if (LevelUpHenchman(oNPC, class_TYPE_INVALID, TRUE) == 0)
{
// If Levelup Fails for whatever
// reason break out of the loop
break;
}
}
ForceRest(oNPC);
EquipUpNPC(oNPC);
}
Modifié par Carcerian, 28 mai 2012 - 09:51 .
#13
Posté 28 mai 2012 - 10:21





Retour en haut







