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
  #1  
Old 07-23-2003, 12:07 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
Yet another script question -_- (classes)

I am a really experianced scripter it is just I have not used classes that much...I have this script and it don't seem to work as a class....
I am using a weapon that when fired client it triggers serverside which then does a putnpc2 playerx,playery,{join classname;};
it gets to the serverside part part just fine so dont ask me that.
When this happens it make a local npc on the level bbut when i open the levels stats the npc looks like just a blank npc...i have tried using putnpc2 playerx,playery,{message testing;};
and that works fine as it puts a blank npc saying testing down...help on this problem is very much appriciated thx
-Zero
__________________
Do it with a DON!
Reply With Quote
  #2  
Old 07-23-2003, 12:42 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Re: Yet another script question -_- (classes)

Quote:
Originally posted by zokemon
I am a really experianced scripter it is just I have not used classes that much...I have this script and it don't seem to work as a class....
I am using a weapon that when fired client it triggers serverside which then does a putnpc2 playerx,playery,{join classname;};
it gets to the serverside part part just fine so dont ask me that.
When this happens it make a local npc on the level bbut when i open the levels stats the npc looks like just a blank npc...i have tried using putnpc2 playerx,playery,{message testing;};
and that works fine as it puts a blank npc saying testing down...help on this problem is very much appriciated thx
-Zero
do you have the calss file in "Classes" in NC?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #3  
Old 07-23-2003, 01:06 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
lol yes of course
i figured out the problem....now it appears and everythng it just doesn't do everything in the script...like the actionrightclick works in the class but some other things dont...i made a npc on a level with join staffsign; as the script and and worked perfectly
so i think it is a problem with putnpc2...maybe it is only serverside or clientside?
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 07-23-2003, 03:05 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Obviously putnpc2 is only serverside, but the NPCs it creates can have clientside script components. We'd need to see the scripts to identify problems therewith.
__________________
Reply With Quote
  #5  
Old 07-23-2003, 04:29 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
ya i no that...well i guess i dun need ne more help cause i am gonna use with () and change all the stuff of the npc from a weapon and just have the npc have the img setting and shape...
thx =)(gonna try to figure out how with works with npcs if u dont o the name)
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 07-24-2003, 12:06 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
can someone plz help me with this...I have the index of this local npc but I dont no that name of it (cause u can't get name from a script) I want to be able to change things about this npc by using with but i dont no what to do i tried with (npcs[i]) but tha dont work...someone plz help me here? thx
__________________
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 09:08 PM.


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