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-26-2002, 02:20 PM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
Post Donations Chest

Ok it's been a while since i've scripted, someone care to help me here.. i need <KAIH4X0RED>
Thanks to those who are willing to help in advance.
Reply With Quote
  #2  
Old 04-26-2002, 02:31 PM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
Ugh, ok well let's try this, if someone can script rather well please pm me. thanks
Reply With Quote
  #3  
Old 04-26-2002, 02:45 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
Oh no Geo! you can't do that either, cause no good scripters will. Anyway its better to learn how to rather then to get a script, right?
__________________

!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
  #4  
Old 04-26-2002, 02:46 PM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
True i suppose, i just hate having to learn how to script all over again, lol
Reply With Quote
  #5  
Old 04-26-2002, 08:19 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Here's a hint, if you're going to make it accessible after the player leaves, it should use a server tag...
---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
  #6  
Old 04-26-2002, 08:42 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
o_O? heh, my bad then. I only do non-p2p scripting Did not realize this. ne thing else you would care to enlighten me upon that is only for non-p2p??
---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
  #7  
Old 04-26-2002, 08:54 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Explain l8er? I was told @ first that triggeraction was a p2p thing, so i didn't bother to learn it. Then i found out and shot the guy, lol, j/k.
---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
  #8  
Old 04-27-2002, 02:15 AM
Geovanie Legend Geovanie Legend is offline
Graunch Programmer
Geovanie Legend's Avatar
Join Date: May 2001
Location: Missouri
Posts: 931
Geovanie Legend is an unknown quantity at this point
Send a message via ICQ to Geovanie Legend Send a message via AIM to Geovanie Legend Send a message via MSN to Geovanie Legend Send a message via Yahoo to Geovanie Legend
No big deal guys I have the donations chest so this thread is pointless now.
Reply With Quote
  #9  
Old 05-05-2002, 11:16 PM
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 Geovanie Legend
No big deal guys I have the donations chest so this thread is pointless now.
Pointless, eh? Not any more.
Quote:
quote:
--------------------------------------------------------------------------------
Originally posted by emortylone
Here's a hint, if you're going to make it accessible after the player leaves, it should use a server tag...
---Shifter
--------------------------------------------------------------------------------



Only if it's non-P2P. You should be careful about giving advice without querying the setting.
Okay, so you don't have to declare a server string if the server is P2P? Can you set a variable (not a server.*) that will keep its value when everyone leaves and enters?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #10  
Old 05-06-2002, 12: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 Kaimetsu


Sure, you can set a this.variable that stays with the NPC.
What if you take the NPC to another level? =0
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #11  
Old 05-06-2002, 12:59 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 Kaimetsu


If the NPC were moved somehow then it would still retain its values.
Okay, what about these situations?

1. A person is holding the NPC when all of a sudden he gets disconnected.

2. The weapon is in a person's weapon list, and he logs off/on.

3. The weapon is in a person's weapon list, and he travels to a new level.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #12  
Old 05-06-2002, 02:44 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 Kaimetsu


When did we start talking about weapons?
05-05-2002 06:59 PM
Weapons are NPCs, too!
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #13  
Old 05-06-2002, 06:49 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 Kaimetsu


Not serverside NPCs.
Of course not. So let me get this straight...

NPC Code:

if (playerenters)
{
canbecarried;
}
if (playertouchsme)
{
this.a = 314159;
}



Okay, so if you pick up the NPC and carry it to the next level, assuming that you touched the NPC in the process of picking it up, with the value of this.a in the other level still be 314159?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #14  
Old 05-06-2002, 07:44 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 Kaimetsu
I don't think serverside NPCs can be carried. But they fall into two categories:

1) Local NPCs, which can't leave the level.
2) Database NPCs, which can.

Both have their this. variables stored no matter what happens to them (within reason).
Got it. Much thanks.

Quote:
Originally posted by Geovanie Legend

No big deal guys I have the donations chest so this thread is pointless now.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
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 12:36 AM.


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