Script Problem

User-to-User support and questions to the NS3.5 Developers and DM team.
Locked
Fargo_Blake_ns3
Pk Bait
Posts: 91
Joined: Sat Sep 27, 2003 10:30 pm
Contact:

Script Problem

Post by Fargo_Blake_ns3 »

:) ok I'm having problems with this script
#include "TP_TB_I0_RE_INV"

void main()
{
InitTreasureRespawn(OBJECT_SELF, 48 );
TreasureRespawn();
}

as you can see it si set for a 48 haour respawn time , what is the seting for a 5 sec respawn time ?
A Soldiers of †VoN†
My Toon's on NS E
Father Fargo "Blake" †VoN†
Hephaestus †VoN†
Cronus "Blake" †VoN†

DrakhanValane_ns3
Arrogant Snob
Posts: 4239
Joined: Thu Jan 02, 2003 7:25 pm

Post by DrakhanValane_ns3 »

I imagine if the value of 1 is 1 hour, 0.0014 should be roughly 5 sec.
"Some people might say love merely has a learning disorder, but no. Love is just stupid. After all, millions of angst-ridden teen poems can't possibly be wrong." -- R.K.Milholland

All Hail the Mighty Pettsson!

"So cheap and juicy!"

Fargo_Blake_ns3
Pk Bait
Posts: 91
Joined: Sat Sep 27, 2003 10:30 pm
Contact:

Post by Fargo_Blake_ns3 »

ty :)
A Soldiers of †VoN†
My Toon's on NS E
Father Fargo "Blake" †VoN†
Hephaestus †VoN†
Cronus "Blake" †VoN†

Fargo_Blake_ns3
Pk Bait
Posts: 91
Joined: Sat Sep 27, 2003 10:30 pm
Contact:

Post by Fargo_Blake_ns3 »

hey I have a new problem , a friend of mine want to do a bookcase script
and what he want I am not sure how to go about it , this is what he asked

Bookcases - I need scripts on the bookcases that will automatically spawn in another book if the toon build book is removed, this way, there is no problems if someone removes the build books from the bookcase, also, if a player takes a book and puts it back, once they close the bookshelf, it will only keep 1 of each book there.

if you cane help do :)
A Soldiers of †VoN†
My Toon's on NS E
Father Fargo "Blake" †VoN†
Hephaestus †VoN†
Cronus "Blake" †VoN†

User avatar
Pros_ns3
Site Admin
Posts: 1101
Joined: Wed Dec 18, 2002 11:44 am
Location: Connecticut
Contact:

Post by Pros_ns3 »

Well generally what I might do is OnUsed or OnClick I would run 1 script that has a DestroyObject loop for the inventory of the bookcase and then a CreateObject function to create the book. So the bookcase would first eat whatever was in the bookcase's inventory and spit out the book when some clicked or used the bookcase.

Locked

Return to “Help and Support”