Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hmm Im Having Problems With #P1 (https://forums.graalonline.com/forums/showthread.php?t=28602)

Spark910 05-05-2002 05:22 PM

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

Spark910 05-06-2002 02:27 AM

*Kicks Keyboard*
I ment CANT!

BBflat 05-06-2002 02:40 AM

Quote:

Originally posted by Spark910
*Kicks Keyboard*
I ment CANT!

Having a little trouble with apostrophes?

LilNiglet 05-06-2002 03:55 AM

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. :/

Spark910 05-06-2002 04:19 AM

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?

Neonight 05-06-2002 05:21 AM

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

LilNiglet 05-06-2002 06:54 AM

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.

Spark910 05-06-2002 06:11 PM

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.

BocoC 05-07-2002 05:13 AM

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.

Saga2001 05-07-2002 05:31 AM

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. ?

Googi 05-07-2002 06:22 AM

Umm...maybe try using a flag that keeps #P1 as the hat?

LilNiglet 05-07-2002 06:24 AM

Quote:

Originally posted by Googi
Umm...maybe try using a flag that keeps #P1 as the hat?
oh, duh!

Googi 05-07-2002 06:27 AM

Quote:

Originally posted by LilNiglet

oh, duh!

I extremely overuse flags.

And the && of 1337ness.

Neonight 05-07-2002 07:01 AM

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

user13-xo 05-07-2002 07:53 AM

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;
}


Googi 05-07-2002 08:11 AM

Quote:

Originally posted by Neonight


Jagen:
Grow out of using flags, they suck, use strings and vars

I know.

Flags are so convienient though:(

Dragona2002 05-07-2002 08:28 PM

LOL

guys a Hat is based on a Gani.....
the picture is just a cover for that Gani.....

user13-xo 05-07-2002 10:16 PM

Quote:

Originally posted by Dragona2002
the picture is just a cover for that Gani..... [/B]
Yes the gani is idle. you set #P1 to the gani and that shows the hat. setplayerprop #P1 hat152.gif;

Quote:

Originally posted by Dragona2002
guys a Hat is based on a Gani..... [/B]

LilNiglet 05-07-2002 10:24 PM

Quote:

Originally posted by 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;
}


I would show you mine, but...

1. Script Stealers.
2. Graal is down, so I cannot acces my RC or test level.

Saga2001 05-07-2002 11:11 PM

Quote:

Originally posted by Kaimetsu
In any case, there's nothing wrong with flags. They're a tool, just like everything else. They have their applications when used correctly. They're very good for some situations and very bad for others. The objective is just to learn which is which.
One of the many reasons Kaimetsu is greater than the average Graalian, he has this really great thing that I think he is one of the few Graalians have, COMMON SENCE. less than three kai.

user13-xo 05-08-2002 05:47 AM

Quote:

Originally posted by LilNiglet


I would show you mine, but...

1. Script Stealers.
2. Graal is down, so I cannot acces my RC or test level.

Script stealers like the ones on UN? I just went on taht server 6 hours later after a friend told me that there were hats there. The only difference was they changed /hat to sethat. oh well now every server knows how to get hats to work.

adam 05-08-2002 10:16 AM

Quote:

Originally posted by Saga2001


One of the many reasons Kaimetsu is greater than the average Graalian, he has this really great thing that I think he is one of the few Graalians have, COMMON SENCE. less than three kai.


As I have learned in school.

COMMON SENSE is not all that common. :cool:

Saga2001 05-08-2002 08:44 PM

Quote:

Originally posted by adam



As I have learned in school.

COMMON SENSE is not all that common. :cool:

School has taught u well. I amin a Sophmore math class though, and everything we have "learned" so far is common sence, so it can be found in many common place situations.


All times are GMT +2. The time now is 03:50 AM.

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