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 04-20-2002, 10:41 PM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
if player has?

is there ANY way to make it so if the player(you) has hats # 109 there could be a timeout?

NPC Code:
if (playerstrequals #P1,hat109.png) 
{timeout=0.05;}

__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #2  
Old 04-20-2002, 10:42 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Erm..
NPC Code:
if (created||timeout) {
if (strequals(#P1,hat109.png) {
stuffyouwantitdo;
}
timeout=.05;
}


Would work
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 04-22-2002, 02:51 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
thats if you are wearing it, to check if the player HAS it you need to check these two flags

client.hatc109>0

and

hatc109>0
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #4  
Old 04-23-2002, 06:50 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
which a lot of servers do try to do
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #5  
Old 04-23-2002, 10:46 PM
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
Well who wouldn't, its an easy way. However I must admit writing new ones are a lot more fun... If you use the horrible 2k1 one, then you can save time. . Which I have opted to do on Andor, but who knows what I will do, or even who dares to dream?
__________________

!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
  #6  
Old 04-24-2002, 03:48 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
yeah and it is so hard to make new hats.. u have to make a new graphic to put in the gani, then you have to edit the gani.. just use the dang down idle part of the hats as the plain img
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #7  
Old 04-24-2002, 04:29 PM
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
Quote:
Originally posted by Kaimetsu




The hats fit right into the gani. There's no need to edit it every time.
I think he is talking about how there is a gani that goes with it, although no one but 2k1 really uses that gani I don't think.
__________________

!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
  #8  
Old 04-25-2002, 09:02 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I think a lot of people try and do stuff as complicated as they can. like bombscount[0].whatever and stuff. just do like bombscount-=10; i try and make my stuff as simple as possible, so whoever wants to edit it l8er has a better chance of understanding it. And many many people use strings like 10 million times per script. there are other ways of doing things!
---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
Reply With Quote
  #9  
Old 04-26-2002, 03:38 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
OK

I have so far
NPC Code:
if (strequals(#P1,hat109.png)) {timeout=0.05}



if there a way to end a timeout?

so i could else {timeout=NO MORE}
__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #10  
Old 04-26-2002, 05:17 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
Re: OK

Quote:
Originally posted by XeroMaster
I have so far
NPC Code:
if (strequals(#P1,hat109.png)) {timeout=0.05}



if there a way to end a timeout?

so i could else {timeout=NO MORE}
timeout = 0;
__________________
Reply With Quote
  #11  
Old 04-26-2002, 08:24 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
put the timeout so that it loops as long as the hat is still active. Like:
if (strequals(#P1,hat109.png)) {timeout=0.05}
if (timeout&&strequals(#P1,hat109.png)) timeout=0.05;

that way it loops ONLY if the hat is still active. i'd add in just to be safe something so that if the hat is NOT active, timeout=0 just in case it glitches or something, who knows? heh.
---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
Reply With Quote
  #12  
Old 04-26-2002, 08:41 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
o_O? Howso, and how would you approach it?
---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
Reply With Quote
  #13  
Old 04-26-2002, 08:53 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Ah, calling strings is not always the quickest then? I usually don't use tons and never realized this. *smacks himself in the head*. I promise, tomorrow i'll drink LOADS of Caffeine b/4 i come and post. i h8 school!
---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
Reply With Quote
  #14  
Old 04-26-2002, 09:03 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
strequals and such. or by using the strings. i didn't mean calling up as like store strings, my bad.
---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
Reply With Quote
  #15  
Old 04-26-2002, 09:11 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Did you ever notice that Sans ftp is horrible? It screws up a lot and doesn't download images. I had to use putnpc ( *shivers* ) one time, and it worked fine, except online it would not put the npc, it would destroy the command (like i progged it too) but i would not put the npc, VERY annoying.
---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
Reply With Quote
  #16  
Old 04-29-2002, 08:17 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Do you have a global RC? I get on there, and i am not sure what the problem is, but majority of the time the images and txt files are messed up! Like we uploaded orb.gif for my event warper, and it was VISIBLE in the FTP, but would not download. we did a /find orb.gif and it did not show. I have nota clue. Perhaps switching the location of the gifs will help, i'll look into it l8er. I am hoping that the new graal will fix it! Is a new version of RC coming out? One that doesn't LAG HORRIBLY!
---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
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 02:27 AM.


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