Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2002, 12:51 AM
Stev579 Stev579 is offline
(Legend)
Stev579's Avatar
Join Date: Sep 2002
Location: England
Posts: 153
Stev579 is on a distinguished road
Unhappy Can someone please help?

Hi there, I'm kinda new to scripting, and I'm trying a script for when a player with a specific account name says a specific word to get warped. I'm thinking of using:

if (playerchats&&strequals(#a,account name)&&strequals(#c,warp))
{setlevel2 level.graal,31.5,15;}

Would this be right? If not, can you suggest something that might be? Any help is greatly appreciated.

Thanks.

(level.graal, account name and warp are all examples. XD)
__________________
Reply With Quote
  #2  
Old 11-06-2002, 12:53 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Re: Can someone please help?

Quote:
Originally posted by Stev579
Hi there, I'm kinda new to scripting, and I'm trying a script for when a player with a specific account name says a specific word to get warped. I'm thinking of using:

if (playerchats&&strequals(#a,account name)&&strequals(#c,warp))
{setlevel2 level.graal,31.5,15;}

Would this be right? If not, can you suggest something that might be? Any help is greatly appreciated.

Thanks.

(level.graal, account name and warp are all examples. XD)
yes, but make sure you use .nw as the level.. not .graal (unless it really is .graal)
__________________

Reply With Quote
  #3  
Old 11-06-2002, 01:19 AM
Stev579 Stev579 is offline
(Legend)
Stev579's Avatar
Join Date: Sep 2002
Location: England
Posts: 153
Stev579 is on a distinguished road
Re: Re: Can someone please help?

Quote:
Originally posted by CheeToS2


yes, but make sure you use .nw as the level.. not .graal (unless it really is .graal)
I figured I should use .graal because the house would be for The Adventure/Classic. (When the NPC server gets put up. X_X)
__________________
Reply With Quote
  #4  
Old 11-06-2002, 10:21 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Whats the difference between .NW and .GRAAL, I never really listened.
__________________
Reply With Quote
  #5  
Old 11-06-2002, 12:49 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by bigkow44
Whats the difference between .NW and .GRAAL, I never really listened.
1 difference is that you can open .nw levels in a text editor and edit the level (including scripts and links and signs)
Reply With Quote
  #6  
Old 11-06-2002, 01:15 PM
King_Arthur_Elven King_Arthur_Elven is offline
Banned
Join Date: May 2002
Posts: 125
King_Arthur_Elven is on a distinguished road
Send a message via AIM to King_Arthur_Elven
.nw Can have more NPCS in a level than .graal i belive .graal has a limt of 50? .nw was made for New World.
Reply With Quote
  #7  
Old 11-06-2002, 06:22 PM
Stev579 Stev579 is offline
(Legend)
Stev579's Avatar
Join Date: Sep 2002
Location: England
Posts: 153
Stev579 is on a distinguished road
Re: Re: Re: Re: Can someone please help?

Quote:
Originally posted by Kaimetsu


If it's for the NPC Server then setlevel2 won't work clientside. Which means it won't work if it's in a weapon without triggering the server.
Okay...so what do I use instead? It's only going to warp players.
__________________
Reply With Quote
  #8  
Old 11-06-2002, 07:38 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
I think all classic levels are going to be changed to nw for npcserver, so the simple scripts can be batched easier.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 11-07-2002, 01:44 AM
Stev579 Stev579 is offline
(Legend)
Stev579's Avatar
Join Date: Sep 2002
Location: England
Posts: 153
Stev579 is on a distinguished road
Re: Re: Re: Re: Re: Re: Can someone please help?

Quote:
Originally posted by Kaimetsu


Lots of complicated stuff with triggeractions and params and stuff. You should probably ask some of the Classic staff or something...

...but wait. Why are you making a warp weapon for Classic? I thought they weren't allowed in personal houses.
Warp weapon!? X_X
The idea is that when someone with a specific account name says a specific word/phrase, they get warped to a different level, like, they get warped to their own room, and only they can access it...
__________________
Reply With Quote
  #10  
Old 11-07-2002, 02:20 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
if (playerchats&&strequals(#a,Account)) {
setlevel2 level.graal,30,30;
}


works fine online. (not clientside)
Reply With Quote
  #11  
Old 11-07-2002, 03:33 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
It looks to me like it's working fine. (As long as it isn't a weapon). Yes, we will be using .nw files. Just keep in mind that I've got to lock unique items (and maybe even horses) out of password/account locked rooms.

Quote:
Originally posted by R0bin
if (playerchats&&strequals(#a,Account)) {
setlevel2 level.graal,30,30;
}


works fine online. (not clientside)
No, then you'd be warped always when chatting, even when you just wanted to talk to somebody.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #12  
Old 11-07-2002, 04:20 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Stev, why didn't you try the script before posting about it? It would work fine offline.

An ancient plague has shown it's ugly face once again... lazyness!
__________________
[signature]insert here[/signature]
Reply With Quote
  #13  
Old 11-07-2002, 08:25 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 screen_name
Stev, why didn't you try the script before posting about it? It would work fine offline.

An ancient plague has shown it's ugly face once again... lazyness!
Quote:
Originally posted by Stev579
Hi there, I'm kinda new to scripting
That's why, you remember when you first started don't you? He just wanted to know if this was the best way to do it.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #14  
Old 11-07-2002, 04:40 PM
Stev579 Stev579 is offline
(Legend)
Stev579's Avatar
Join Date: Sep 2002
Location: England
Posts: 153
Stev579 is on a distinguished road
Re: Re: Re: Re: Re: Re: Re: Re: Can someone please help?

Rar. I r dumb.

I did actually try it offline. It worked fine with my account (when I accessed my passworded, account named room), but when I let another player try to access their room, it didn't work.
__________________
Reply With Quote
  #15  
Old 11-07-2002, 08:46 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Dach

That's why, you remember when you first started don't you? He just wanted to know if this was the best way to do it.
Yes I do. I remember myself reading the documentation, then studying the commands. Then I started to try to script with examples from the documentation. I don't remember having to go anywhere for help when I just wanted to know if it would work or not. I tried it and if it didn't work then I would try to fix it.

Quote:
Originally posted by Stev579

Rar. I r dumb.

I did actually try it offline. It worked fine with my account (when I accessed my passworded, account named room), but when I let another player try to access their room, it didn't work.
Then from this I conclude that you just wanted someone to fix it so it would work for other people. Otherwise you wouldn't have posted this thread.


Sorry if you feel offended or something of the sort, but that's just how I feel about the matter.
__________________
[signature]insert here[/signature]
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:52 AM.


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