Author Topic: Uhm a few questions....  (Read 9011 times)

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« on: December 22, 2004, 12:45:31 AM »
Well I've been making a clan server based from Godspire also and was wondering how to make the custom filter at 22? also how to use multiple onactivateitem scripts in the same module? Also fast rest and onenter create an item in their inventory? Thanks.  :)
« Last Edit: December 22, 2004, 12:56:59 AM by fireknight40 »

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
Uhm a few questions....
« Reply #1 on: December 22, 2004, 03:39:07 AM »
Quote
Well I've been making a clan server based from Godspire also and was wondering how to make the custom filter at 22? also how to use multiple onactivateitem scripts in the same module? Also fast rest and onenter create an item in their inventory? Thanks.  :)
[snapback]13488[/snapback]

just add - gold piece value 50.000 or how much it is IDK the Zero's.. make it remove the usual resis, invalid classes etc

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #2 on: December 22, 2004, 01:25:09 PM »
Where though is it a script or something like that?

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
Uhm a few questions....
« Reply #3 on: December 22, 2004, 01:58:58 PM »
Quote
Quote
Well I've been making a clan server based from Godspire also and was wondering how to make the custom filter at 22? also how to use multiple onactivateitem scripts in the same module? Also fast rest and onenter create an item in their inventory? Thanks.  :)
[snapback]13488[/snapback]

just add - gold piece value 50.000 or how much it is IDK the Zero's.. make it remove the usual resis, invalid classes etc
[snapback]13494[/snapback]
I'm not planning to explain it all, but that isn't enough to ensure the costlimit.

-Mel

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
Uhm a few questions....
« Reply #4 on: December 22, 2004, 04:19:46 PM »
Code: [Select]
if(GetGoldPieceValue(oItem) > 500000){
DestroyObject(oItem);}

There We Go Hope It Helps :-)

-Vince :)

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #5 on: December 22, 2004, 05:55:55 PM »
Okay, but where does it go?

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline gashmo

  • Sr. Member
  • ****
  • Posts: 268
    • View Profile
Uhm a few questions....
« Reply #6 on: December 22, 2004, 05:57:54 PM »
Quote
Well I've been making a clan server based from Godspire also and was wondering how to make the custom filter at 22? also how to use multiple onactivateitem scripts in the same module? Also fast rest and onenter create an item in their inventory? Thanks.  :)
[snapback]13488[/snapback]

1) For level 22, item cost filter should be set at 500k gp per item. You need to script to do this.
2)  To use multiple onactivate item scripts - you have to name each item differently. Easiest way to learn this is to look at the script bioware uses for the OC on its recall stone. Just copy and paste.
3) Fast rest - look for Sygon's Fast Rest in nwnvault - it is a 2da change.
4) Onenter create item - look up nwnlexicon - they should have examples.

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
Uhm a few questions....
« Reply #7 on: December 22, 2004, 06:20:09 PM »
Hm.. Very Difficult To Explain Under Where You Strip Items Like Resis,Immunes ETC Right Under There You Add The GoldPiece Thing I Just Wrote Up In Code To Be IN The Right Loop Hope It Helps :-)
BTW.. Look A Little Below - There Restduration Is Put It In Override Makes Players Rest Really Quick
-Vince :)
« Last Edit: December 22, 2004, 06:21:53 PM by Fury »

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #8 on: December 23, 2004, 12:50:06 AM »
Thanks. :)

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline Fury

  • Newbie
  • *
  • Posts: 28
    • MSN Messenger - Asgardloki@hotmail.com
    • View Profile
    • http://www.piv.pivpiv.dk
    • Email
Uhm a few questions....
« Reply #9 on: December 23, 2004, 06:34:15 AM »
Anytime Glad To Help :)


-Vince :)

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #10 on: December 24, 2004, 02:57:08 AM »
Sigh I am regretted to say that I need more help...
A healing placeable like the healing lights I can't seem to be able to do anything like that.

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline Tea-cup

  • Hero Member
  • *****
  • Posts: 916
    • View Profile
Uhm a few questions....
« Reply #11 on: December 24, 2004, 06:49:10 AM »
Quote
Sigh I am regretted to say that I need more help...
A healing placeable like the healing lights I can't seem to be able to do anything like that.
[snapback]13667[/snapback]
Code: [Select]
void Raise(object oPlayer)
    {
        effect eVisual = EffectVisualEffect(VFX_IMP_RESTORATION);

        effect eBad = GetFirstEffect(oPlayer);
        ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectResurrection(),oPlayer);
        ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectHeal(GetMaxHitPoints(oPlayer)), oPlayer);

        //Search for negative effects
        while(GetIsEffectValid(eBad))
        {
            if (GetEffectType(eBad) == EFFECT_TYPE_ABILITY_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_AC_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_ATTACK_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_DAMAGE_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_DAMAGE_IMMUNITY_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_SAVING_THROW_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_SPELL_RESISTANCE_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_SKILL_DECREASE ||
                GetEffectType(eBad) == EFFECT_TYPE_BLINDNESS ||
                GetEffectType(eBad) == EFFECT_TYPE_DEAF ||
                GetEffectType(eBad) == EFFECT_TYPE_PARALYZE ||
                GetEffectType(eBad) == EFFECT_TYPE_NEGATIVELEVEL)
                {
                    //Remove effect if it is negative.
                    RemoveEffect(oPlayer, eBad);
                }
            eBad = GetNextEffect(oPlayer);
        }
        //Fire cast spell at event for the specified target
        SignalEvent(oPlayer, EventSpellCastAt(OBJECT_SELF, SPELL_RESTORATION, FALSE));
        ApplyEffectToObject(DURATION_TYPE_INSTANT, eVisual, oPlayer);
    }
void main()
{
    object oPC = GetLastUsedBy();
    if(GetIsInCombat(oPC) == FALSE)
    {
        Raise(oPC);
        ForceRest(oPC);
    }
    else
    {
        DelayCommand(0.1, SendMessageToPC(oPC, "You are in combat."));
    }
}
Does use the same Raise() function as the standard ondeath script. Also, someone that is in combat, someone can't rest, can't use the light either.

Just place it in the onuse of the object and make it useable/plot.

-Mel

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #12 on: December 24, 2004, 05:22:10 PM »
Thank you!!! :)

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]

Offline fireknight40

  • Sr. Member
  • ****
  • Posts: 277
    • MSN Messenger - fireknight40@hotmail.com
    • AOL Instant Messenger - fireknight40
    • Yahoo Instant Messenger - briortheforesaken
    • View Profile
    • http://members.dslextreme.com/users/fierynight3/Iceys%20Hints%20and%20Tips.htm
    • Email
Uhm a few questions....
« Reply #13 on: December 28, 2004, 10:51:55 PM »
Well I need some more help... I don't know much about scripting and I was wondering if someone would check my script and I also don't know how to make it so that it's the one item? Here's the script as I have right now.
Code: [Select]
void main()
{
object oPC;

if (!GetIsDM(GetItemActivatorTarget())
|| !GetIsPC(GetItemActivatedTarget())
){

SendMessageToPC(GetItemActivator(), "");
return;}

SetCutsceneMode(oPC, TRUE);

FadeFromBlack(oPC, FADE_SPEED_SLOW);

object oTarget;
oTarget = oPC;


int nInt;
nInt = GetObjectType(oTarget);

if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_GATE), GetLocation(oTarget));

oTarget = oPC;


nInt = GetObjectType(oTarget);

if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_STRIKE_HOLY), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_STRIKE_HOLY), GetLocation(oTarget));

oTarget = oPC;

nInt = GetObjectType(oTarget);

if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), GetLocation(oTarget));

}

Lord of Doriath[/span]
[span style=\'color:blue\']Sentinel of GodSpire[/color]