Neverwinter Nights
Menú
Gamersmafia es ahora un archivo de solo lectura.

Ayuda a compilar 2 scripts

Wenas gente, soy nuevo por aqui.

Necesito ayuda para compilar dos scripts, es en referencia a los levels de 41 a 60, todos los scripts me funcionan bien, pero tengo otro ya en el Onleave del server y necesito compilar dos scripts en uno si pudierais ayudarme, no tengo mucha idea de scripts la verdad.

PRIMER SCRIPT:

  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);
  }
```

**SEGUNDO SCRIPT:**
  #include "hgll_func_inc"

  void main(){ 
    object PC = GetExitingObject(); 
    object M = GetModule();
    string Script = GetLocalString(PC, "LetoScript");

    if( Script != "" ) { 
      SetLocalString(PC, "LetoScript", ""); 
      LetoScript(Script);
    }
  }
```

yo estoy en c++ sorry

es java? o que extension son los archivos?

Comentario #2 por Blitzkrieg:
es java? o que extension son los archivos?

Se usa NWScript:

https://en.wikipedia.org/wiki/NWScript

PD: Pongo el script en formato código.

Los más activos en Scripting