Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   My Hat NPC -Again- (https://forums.graalonline.com/forums/showthread.php?t=26070)

darkriders_p2p 03-22-2002 02:51 AM

My Hat NPC -Again-
 
Ok I am making my hat NPC.
I need to make something with arrays so I can do this:
Make it so I can only use the hats I buy and not every hat.
and when I cycle through only to show the hats that I own.
If you can help me with this please do, I posting me script so you can see.

AND DELTERIA NO SCRIPT STEALING :P
anyone else too

NPC Code:

//NPC made by /\/\ãxïmus Ðärkrïdër
if (playertouchsme) {
toweapons Hat NPC;
}
if (weaponfired) {
this.hb=1;
setani idle,;
setplayerdir down;
disabledefmovement;
timeout=.1;
}
if (timeout&&this.hb==1) {
if (keydown(1)) { i--;
}
if (keydown(3)) {
i++;
} if (keydown(5)) {
if (strequals(#s(client.hat),)&&this.hb==1) {
setstring client.hat,hat#v(i).png;
setplayerprop #P1,#s(client.hat);
setani haton,#s(client.hat);
sleep .1;
enabledefmovement;
this.hb=0;
hideimg 1;
}
if (!strequals(#s(client.hat),)&&this.hb==1) {
setani hatoff,#s(client.hat);
sleep 0.7;
setstring client.hat,;
setplayerprop #P1,;
sleep .1;
enabledefmovement;
setani idle,;
this.hb=0;
hideimg 1;
}
}
if (keydown(6)) {
hideimg 1;
enabledefmovement;
setani idle,;
this.hb=0;
}
showimg 1,hat#v(i).png,playerx-.06,playery-2;
changeimgpart 1,95,0,48,48;
timeout=.1;
if (i<0) {
i=0;
}
}
if (this.hb==0) {
hideimg 1;
}


nyghtGT 03-23-2002 11:59 AM

Re: My Hat NPC -Again-
 
Quote:

Originally posted by darkriders_p2p

AND DELTERIA NO SCRIPT STEALING :P
anyone else too


Stereotyping us because of our former owner is not a very nice thing to do, and before you do it again you should at least go to Delteria and see how much it has changed ...

darkriders_p2p 03-23-2002 12:13 PM

I went on delteria and in the first five minutes I PKed someone and he put a staff tag on and ban me.I didn't see much.
And I'm sorry for stereotyping you, I shoudl just yell at whoever made the hackeysack gani for g2k1 because I made the EXACT same gani for my g2k1 playerhouse that was rejected.

nyghtGT 03-23-2002 02:49 PM

Quote:

Originally posted by darkriders_p2p
I went on delteria and in the first five minutes I PKed someone and he put a staff tag on and ban me.
staff like that have nothing to deal with your accusations of our "script stealing"

LilNiglet 03-24-2002 10:02 AM

Quote:

Originally posted by Kaimetsu
No spamming. That includes "Plz help me with the thing I posted 30 seconds ago!?!1"
That would not be possible due to the 60 second rule. :]

darkriders_p2p 03-24-2002 10:06 AM

ok the post is off topic.
Refering to my earlier topic about my hat.Kai ur looking at this post so I will ask you to help me, we could talk over PMs instead of my posting these messages, and anyothers that wanna help.

royce 03-24-2002 10:11 AM

I'll aid you if you need some gfx of a selection screen made or if you have something similiar in mind.

happyme 03-24-2002 11:19 AM

thats a nice script, it should have numbers on top that would be owage

darkriders_p2p 03-24-2002 11:32 AM

Quote:

Originally posted by happyme
thats a nice script, it should have numbers on top that would be owage
nice idea, once I get this problem sorted out then thats simple.
So the sooner someone helps me out a bit then its all set, and I will post the whole thing so everyone can use it.

joseyisleet 03-24-2002 03:02 PM

-=Josey=-
I would use a "bought hats" type system. Where it sets a string, maybe to the server, showing who all owns that hat. Then check to see if they have that number of hat, if not, move to the next, etc etc.

neomaximus2k 03-24-2002 05:39 PM

Quote:

Originally posted by darkriders_p2p


nice idea, once I get this problem sorted out then thats simple.
So the sooner someone helps me out a bit then its all set, and I will post the whole thing so everyone can use it.

Your still doing this dude? after i sent you the script LMAO

darkriders_p2p 03-24-2002 11:14 PM

Quote:

Originally posted by neomaximus2k


Your still doing this dude? after i sent you the script LMAO

neo u ish b thinking of someone else, u never sent me the script.So far screen_name is the only one who has helped me remotely

neomaximus2k 03-25-2002 05:19 AM

Quote:

Originally posted by darkriders_p2p


neo u ish b thinking of someone else, u never sent me the script.So far screen_name is the only one who has helped me remotely

hmm weird, well in that case i'll take a looksie


All times are GMT +2. The time now is 06:28 AM.

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