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 05-05-2002, 05:22 PM
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
Hmm Im Having Problems With #P1

This Is Supposed To Be The Hat One! It Works Offline Anyone Know Why It Doesnt Work Online!? Well it Does Work But You Can See Each Others Hats When There On Ya Head!

-Spark911
__________________
--Spark911
Reply With Quote
  #2  
Old 05-06-2002, 02:27 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
*Kicks Keyboard*
I ment CANT!
__________________
--Spark911
Reply With Quote
  #3  
Old 05-06-2002, 02:40 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Spark910
*Kicks Keyboard*
I ment CANT!
Having a little trouble with apostrophes?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #4  
Old 05-06-2002, 03:55 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Re: Re: Hmm Im Having Problems With #P1

Quote:
Originally posted by Kaimetsu


Then what's the problem...?
I think I might know.

Considering Unixmad's plan has gone into effect, I made a hat changer NPC for Delteria. It worked fine and dandy offline, and worked fine online until I thied to actually put the hat on.

It won't stay on. :/
Reply With Quote
  #5  
Old 05-06-2002, 04:19 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: Re: Re: Hmm Im Having Problems With #P1

Quote:
Originally posted by LilNiglet


I think I might know.

Considering Unixmad's plan has gone into effect, I made a hat changer NPC for Delteria. It worked fine and dandy offline, and worked fine online until I thied to actually put the hat on.

It won't stay on. :/
Thats the prob i had! You said i might know, you know answer?
__________________
--Spark911
Reply With Quote
  #6  
Old 05-06-2002, 05:21 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight
Quote:
Originally posted by Kaimetsu
I'm not sure that I follow. Could you describe the problem clearly?

Jagen:
What they're saying is that they can't get the hat attribute (#P1) to set and that when they set it, the hat image flickers and disappears
Reply With Quote
  #7  
Old 05-06-2002, 06:54 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Kaimetsu
Question: How are you setting it? Clientside or serverside?
There isn't a NPC server to make it serverside. We are trying to put them on worlds like Delteria, CLassic, or something like that. I think Unixmad's plans involved lifting all restrictions on non-graalgold worlds, so I made a hat NPC for delteria... etc.
Reply With Quote
  #8  
Old 05-06-2002, 06:11 PM
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
EDITED:

Well all ive done is
setplayerprop #p1, imgname.png;

Thats wont work, as you can see when YOU HAVE A HAT ONE BUT CANT SEE each others hats, it does stay on YOU AND DOES NOT fliker but you CANT see EACHOTHERS HATS.
__________________
--Spark911

Last edited by Spark910; 05-07-2002 at 12:36 AM..
Reply With Quote
  #9  
Old 05-07-2002, 05:13 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
I think he is saying that when you put this command in the NPC (abviously changing the values to something else):

setplayerprop #p1, imgname.png;

You can see the hat on your head, but other people can't see it. You are the only one that can see the hat. It sounds like the #p1 value isn't going through the server.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #10  
Old 05-07-2002, 05:31 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Serverside, i am almost completly sure thats what Kai is saying. And if it has no npc-server, sounds like your out of luck, you could make your own ganis. ?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 05-07-2002, 06:22 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Umm...maybe try using a flag that keeps #P1 as the hat?
__________________
Reply With Quote
  #12  
Old 05-07-2002, 06:24 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Googi
Umm...maybe try using a flag that keeps #P1 as the hat?
oh, duh!
Reply With Quote
  #13  
Old 05-07-2002, 06:27 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by LilNiglet

oh, duh!
I extremely overuse flags.

And the && of 1337ness.
__________________
Reply With Quote
  #14  
Old 05-07-2002, 07:01 AM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight
Quote:
Originally posted by Googi


I extremely overuse flags.

And the && of 1337ness.

Jagen:
Grow out of using flags, they suck, use strings and vars
Reply With Quote
  #15  
Old 05-07-2002, 07:53 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Hats work on Babylon. I can see others and others can see mine.
here is the script im using.
NPC Code:

// NPC made by Alexander
if (playertouchsme) {
toweapons Hat;
}
if(playerchats && startswith(/hat,#c)){
setstring this.hat,#e(5,-2,#c);
timeout=.1;
}
if (timeout) {
setplayerprop #P1,hat#s(this.hat).png;
timeout=.1;
}

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 11:00 AM.


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