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
  #16  
Old 10-11-2003, 04:45 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Kaimetsu


Wha? Code brackets as in '{'s? They're not inextricably related to spaces.
I meant these
NPC Code:



couldn't remember what they're called exactly
ohyeah tags... d'oh
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #17  
Old 10-11-2003, 04:48 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Ah, you're talking about indenting within code tags. Fair enough, I misinterpreted
__________________
Reply With Quote
  #18  
Old 10-11-2003, 02:35 PM
terisu terisu is offline
Registered User
terisu's Avatar
Join Date: Aug 2003
Posts: 3
terisu is on a distinguished road
It always seems like storing a string that only checks if a player has touched an NPC, would waste space and make a disarray of the player's stored strings etc.
Reply With Quote
  #19  
Old 10-11-2003, 05:10 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Dach


I meant these
NPC Code:



couldn't remember what they're called exactly
ohyeah tags... d'oh
Erm, there's nothing in the code...?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #20  
Old 10-11-2003, 07:24 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by GoZelda

Erm, there's nothing in the code...?
as in, people do this
NPC Code:

if (playertouchsme) {
playerhearts = 0;
}


instead of
NPC Code:

if (playertouchsme) {
playerhearts = 0;
}

__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #21  
Old 10-11-2003, 07:29 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Erm, just click the "style" button?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #22  
Old 10-11-2003, 07:30 PM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Quote:
Originally posted by Dach
stuff
It's pretty much laziness on my part. Not sure about the others. I don't really fix the format until the end and online there is no Style button to help out a bit with making things look neat.

Quote:
(possibly) if the server went down,
O.o
If the server went down wouldn't all npc's not work?
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #23  
Old 10-11-2003, 08:15 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Dach


as in, people do this
NPC Code:

if (playertouchsme) {
playerhearts = 0;
}


instead of
NPC Code:

if (playertouchsme) {
playerhearts = 0;
}

Only styling is different, what's wrong?


Quote:
Originally posted by DarkShadows_Legend
If the server went down wouldn't all npc's not work?
He meant if the server went down and back ( i believe),flags will be cleared and you will able to get more 10 gralats in this case.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #24  
Old 10-12-2003, 04:43 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Sigh. If you ever try to make anything remotely complicated, you'll understand the value of proper indenting.
__________________
Reply With Quote
  #25  
Old 10-12-2003, 08:49 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by DarkShadows_Legend
O.o
If the server went down wouldn't all npc's not work?
I'm probably wrong, but NPCs revert to clientside-only status when this happens, do they not?
__________________
Kat
Reply With Quote
  #26  
Old 10-12-2003, 08:56 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by -Ramirez-

I'm probably wrong, but NPCs revert to clientside-only status when this happens, do they not?
wrong, that's only if the gserver is started without the npcserver, if the npcserver goes down npcs/weapons aren't sent at all
Reply With Quote
  #27  
Old 10-12-2003, 01:19 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by osrs
He meant if the server went down and back ( i believe),flags will be cleared and you will able to get more 10 gralats in this case.
I think this.variables are cleared.
Explains why farming NPCs&stuff suddenly are gone sometimes.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #28  
Old 10-12-2003, 08:42 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Python523


wrong, that's only if the gserver is started without the npcserver, if the npcserver goes down npcs/weapons aren't sent at all
Told you I was probably wrong.

I thought I remembered a time on another server when that happened. All of my NPCWs disappeared, as expected, but I don't remember level NPCs dying with the server. It's probably my bad memory again. :P
__________________
Kat
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 10:58 PM.


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