Eternal Warrior Project
PW Treasure regen script Labels=0
Eternal Warrior Project
PW Treasure regen script Labels=0
Eternal Warrior Project
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Eternal Warrior Project

The Eternal Warrior Project Official Guild
 
HomeLatest imagesSearchRegisterLog in

 

 PW Treasure regen script

Go down 
AuthorMessage
rorqock
Guild Archon
Guild Archon
rorqock


Posts : 112
Join date : 2008-04-14
Age : 50
Location : France

PW Treasure regen script Empty
PostSubject: Re: PW Treasure regen script   PW Treasure regen script Icon_minitimeFri Dec 12, 2008 11:20 am

This one is easier and it works Wink its in French but i'm sure you could understand it , you can change the respawn time actually its every 30 minutes and don't forget to change the message at the bottom, in French it says " This object is empty !"

In "OnOpen":

Code:
//:://////////////////////////////////////////////
//:: Created By: Kray
//:: Created On: 10/07/2002 08:29
//:://////////////////////////////////////////////
#include "NW_O2_CONINCLUDE"

void main()
{
//Par défaut, à 30min de respawn.
float fRespawnTime = 1800.0;
object oPC = GetLastOpener();
if(GetIsPC(oPC))
{
if(GetLocalInt(OBJECT_SELF,"EMPTY") == 0)
{
GenerateLowTreasure(oPC,OBJECT_SELF);
SetLocalInt(OBJECT_SELF,"EMPTY",1);
DelayCommand(fRespawnTime,SetLocalInt(OBJECT_SELF,"EMPTY",0));
}
else
{
SendMessageToPC(oPC,"Cet objet est vide!");
}
}
}

Edit: you can also change the objects inside the container :

GenerateLowTreasure)
or
GenerateMediumTreasure
or
GenerateHighTreasure
or
GenerateBossTreasure
or
GenerateBookTreasure
or what you want PW Treasure regen script 25238
Back to top Go down
http://www.myspace.com/rorqock
 
PW Treasure regen script
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Eternal Warrior Project :: Neverwinter Nights Series :: Scripts-
Jump to: