Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 01-26-2008, 05:32 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
no, added in rc
__________________
Reply With Quote
  #17  
Old 01-26-2008, 05:43 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by projectigi View Post
no, added in rc
Then onCreated would be the only way, to my knowledge of course.
__________________
Reply With Quote
  #18  
Old 01-26-2008, 06:38 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Hmm, why would you want that? o.o

Anyways, you made this thread to see if there was an event for it? Or some way to detect it? Or an idea that you thought could be added :o
__________________
Reply With Quote
  #19  
Old 01-26-2008, 06:47 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
to see if theres a way to do it

well because i have to overwrite the echo for all weapons, and new weapons don't have it overwritten, and i don't feel like using a timeout XD
__________________
Reply With Quote
  #20  
Old 01-26-2008, 07:40 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
The only way to do that would be to have some script that would either read the "weapons/" folder (not recommended) or to read the "weapons" variable (serverside) which is a list of all weapons on the NPC Server.

Do the latter using a loop or so like someone previously suggested. Not a very good use of your NPC Server's CPU though.

And no, there is no event for when a new WNPC is added to the NPC Server (other then locally with-in that script, but that doesn't help you).
__________________
Do it with a DON!
Reply With Quote
  #21  
Old 01-27-2008, 12:54 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Add a weapon/object called "version". In every script, add version.(@this.name)++; If the version number is 1, doStuff();

Otherwise, I cannot see a point in your desires
Reply With Quote
  #22  
Old 01-27-2008, 01:44 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Yeah but that requires adding stuff to each new script which kind of defeats the purpose.
__________________
Do it with a DON!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.