Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-16-2002, 04:20 AM
Max-imus Max-imus is offline
Registered User
Join Date: May 2002
Posts: 201
Max-imus is on a distinguished road
Few questions

I don't have that much knowledge about scripting with the npc server, so hopefully you guys can help me out and explain these things to me.

Why doesn't this script work for me online?

if(compusdied){
//#CLIENTSIDE
hide;
}

and also

//#CLIENTSIDE
if(playertouchsme)
{toinventory keyname;hidelocal;}

if you could help me with getting these to work and explaining them, I'd greatly appreciate it.
__________________
¤Mā×Īmū§¤ - Manager of Delteria
  #2  
Old 07-16-2002, 05:53 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
i didnt think Delteria had a npc server.
  #3  
Old 07-16-2002, 06:36 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I know toweapons doesnt work clientside but I'm not sure about toinventory, I have never found a use for it and I try to not use it, if something doesnt work for you, try it both clientside and serverside and see what happens
  #4  
Old 07-16-2002, 08:53 AM
Max-imus Max-imus is offline
Registered User
Join Date: May 2002
Posts: 201
Max-imus is on a distinguished road
Quote:
Originally posted by Python523
I know toweapons doesnt work clientside but I'm not sure about toinventory, I have never found a use for it and I try to not use it, if something doesnt work for you, try it both clientside and serverside and see what happens
Yeah I've been doing that :-/ . Well thanks for the suggestion, I will keep playing around with it.
__________________
¤Mā×Īmū§¤ - Manager of Delteria
  #5  
Old 07-23-2002, 06:16 AM
doubleZ doubleZ is offline
Registered User
Join Date: Jul 2002
Location: In a tree
Posts: 8
doubleZ is on a distinguished road
toinventory ish old =P. Liek, no one uses it no more. I just use a weapon item, and flags as a substitute for it, liek for quests and stuff =)
__________________
- LiL PiXiE KiTiE - MeOw!

Cassidy ish all miiiiiiiiine, not yours =o!

My real account name that i play graal on is not doubleZ, its kittygirl765 ^_^, my friend let me keep her forum account, thanks cupo =D
  #6  
Old 08-25-2002, 01:18 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Re: Few questions

Quote:
Originally posted by Max-imus
.........

//#CLIENTSIDE
if(playertouchsme)
{toinventory keyname;hidelocal;}

..........
Im an Amature, Im sure someone can confirm if Im right or wrong. I think this is serverside script so.........

This at top

if(playertouchsme)
{toinventory keyname;hidelocal;}

then:

//#CLIENTSIDE

then the other bit Which i forgot!

*It work?*

TIP:You dont need to keep putting ''//#CLIENTSIDE''

The script is server side with NPC servers until you tell it other wise (by using ''//#CLIENTSIDE'') and once you put ''//#CLIENTSIDE'' anything below it becomes Clientside, So you dont need to keep telling it that its Clientside:

[serverside script]
//#CLIENTSIDE
[Client side (ANYTHING) Below it]

-----------

If what I said didnt work..... try only putting ONE ''//#CLIENTSIDE'' and put it above the ''IF'' the first one.

I dont know if that made sence or will help, But have a go and see if it works. Tell me if it does work and if it doesn't
  #7  
Old 08-27-2002, 11:06 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I don't know if you CAN put //#CLIENTSIDE in the middle of a script... I see no point behind it =P! Some scripts can be both, but others are just one or the other. If need-be, triggeraction is there for a reason, he he.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #8  
Old 08-28-2002, 04:03 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
I don't like toinventory, because it destroys the NPC and the image won't be saved when disconnecting.
You could try this, although I haven't tested it. (I don't have access to a script-server).

NPC Code:

// this part will be executed server-side:
if (created) {
setshape 1,32,32; // whatever...I just think you need it serverside
// for playertouchsme
}
if (playertouchsme) {
set gotwhatever;
toweapons whatever;
}
//#CLIENTSIDE
if (playertouchsme) {
hidelocal;
play extra.wav;
}

__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
 


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 02:15 PM.


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