Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Yet another script question -_- (classes) (https://forums.graalonline.com/forums/showthread.php?t=46404)

zokemon 07-23-2003 12:07 AM

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

mhermher 07-23-2003 12:42 AM

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?

zokemon 07-23-2003 01:06 AM

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?

Kaimetsu 07-23-2003 03:05 AM

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.

zokemon 07-23-2003 04:29 AM

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)

zokemon 07-24-2003 12:06 AM

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


All times are GMT +2. The time now is 10:20 PM.

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