Hi people, Im new here.
Well I need some help with 2 scripts, I want to add the High levels 41 to 60 to my server in Nwn1.
All the scripts are running perfect, but int he Onleave Ive got another script, and I don't know how to compile boths, so please if you could help me, I've no idea of scripts to be honest Lol.
The 2 scripts are these.
1st wich Ive got alredy in the Onleave:
include "nw_i0_plot"
int index, iLev;string sLevels = "HP=" + IntToString( iLev ) + ";";
void SalvaConjuros(object oPC){ iLev = GetCurrentHitPoints( oPC ); for( index = 0; index < 622; index++ ) { iLev = GetHasSpell( index, oPC ); if ( iLev > 0 ) sLevels += "S" + IntToString( index ) + "=" + IntToString( iLev ) + ";"; } for( index = 0; index < 480; index++ ) { iLev = GetHasFeat( index, oPC ); if ( iLev > 0 ) sLevels += "F" + IntToString( index ) + "=" + IntToString( iLev ) + ";"; } SetCampaignString(GetModuleName(), GetName( oPC ) + "Levels", sLevels );}
void main(){ object oPC = GetExitingObject(); string sRIP = ObjectToString(GetModule()); RemoveEffect(oPC, EffectPolymorph(SPELL_POLYMORPH_SELF)); SetCampaignInt(sRIP, GetName(oPC), GetCurrentHitPoints(oPC));
SalvaConjuros(oPC);}
2nd wich I need to add
#include "hgll_func_inc"
void main(){ object PC = GetExitingObject(); object M = GetModule();
string Script = GetLocalString(PC, "LetoScript");
if( Script != "" ) { SetLocalString(PC, "LetoScript", ""); LetoScript(Script); }}
So please if anyone could help me to compile boths in one? Thanks very much in advanced