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-02-2001, 05:28 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: Will this work online

Quote:
Originally posted by Bravo_Admin1


u could always use

if (playerenters) {hide;}

that usualy works 4 me
stop spamming cause you only have 12 posts !!!
Reply With Quote
  #17  
Old 10-02-2001, 07:13 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Will this work online

try this

NPC Code:

// NPC made by unknown
// Hirathia Door Script
// Urond's Tavern
if (created) {
setimg newdoor.gif;
this.Door1 = 1;
}
if (playerchats && strequals(#a,Metal-Slug) && startswith(#c,Door)) {
message #c;
}
if (playerchats && strequals(#a,Metal-Slug) && strequals(#c,Door Closed)) {
this.Door1 = 1;
}
if (this.Door1 = 1 && playertouchsme) {
say2 Sorry
#bThis door is locked;
}
if (playerchats && strequals(#a,Metal-Slug) && strequals(#c,Door Opened)) {
this.Door1 = 0;
}
if (this.Door1 = 0 && playertouchsme) {
setlevel2 metal-slugbar.nw,30.5,57;
}



this seems like it should work
Reply With Quote
  #18  
Old 10-03-2001, 02:51 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Kaimetsu
Hmm... Should be able to use save[] variables. Dunno exactly how they work without an NPC Server, though.
save works online (p2p and non) but they dont work offline but if you have a server.string set to make an NPC do a function to set them back then it will work...
Well it did on Delteria ....
Reply With Quote
  #19  
Old 10-03-2001, 02:53 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Kaimetsu
Hmm... Should be able to use save[] variables. Dunno exactly how they work without an NPC Server, though.
can you give me some tips on how to use save[] variables?
Reply With Quote
  #20  
Old 10-03-2001, 02:57 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
uhh

Quote:
Originally posted by btedji


can you give me some tips on how to use save[] variables?
i think they work like this .....
if (playerchats && startswith(notes) {
save[1]=#c;
}
if (playersays(view notes)) {
setplayerprop #c,save[1];
}
I think this is how they may work ... but i am pretty much just spamming so ....
Reply With Quote
  #21  
Old 10-03-2001, 02:59 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
they hold strings and vars but dont need to be put in players flag list, i see, simple enough
Reply With Quote
  #22  
Old 10-03-2001, 04:38 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
vinvect, if if ind this scrip on your server i will hit you
Reply With Quote
  #23  
Old 10-03-2001, 04:49 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by entravial
~AlphaFlame~



Actually, sir, it's correct. Starts with format is

startswith(start,string)

Poogle... you, too, can go read commands.rtf and come back when you learn to script.
=/ I use it #c,HOLY COW all the time and it works =\
Reply With Quote
  #24  
Old 10-03-2001, 04:54 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
im pretty sure on all those type of things it doesnt matter the order
Reply With Quote
  #25  
Old 10-03-2001, 06:15 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
well i want to send the info to every one, so i would change it to server.Door1?
Reply With Quote
  #26  
Old 10-03-2001, 08:22 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
so, how would i set it up? if i want to send the "flag (i dunno)" to every one on the server, and its non p2p, or hel;p me along like you did with the #v stuff.
Reply With Quote
  #27  
Old 10-03-2001, 07:17 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
save[] variables are like global variables i think
Reply With Quote
  #28  
Old 10-04-2001, 03:09 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Kaimetsu


A save var is just like the variables "ap" or "rupees". You can set it and then people can read it.

And no, they're not global.
ahhhhhh, i see
Reply With Quote
  #29  
Old 10-04-2001, 05:35 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by Kaimetsu


A save var is just like the variables "ap" or "rupees". You can set it and then people can read it.

And no, they're not global.
splain more please? also, i want it to be global, so i need server.whatever or this.whatever
Reply With Quote
  #30  
Old 10-04-2001, 06:29 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Metal-Slug


splain more please? also, i want it to be global, so i need server.whatever or this.whatever
server.strings are global
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 11:47 PM.


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