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 04-17-2007, 04:31 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
That script you sent kristi wont work
your script dosen't do anything...
So i changed it up, but it only says "T.T"
PHP Code:
// NPC made by Join my guild Elite Mafia!
//#CLIENTSIDE
if (created) {
  
time 10;
}

if (
playerenters) {
  
time 10;
  
timeout .1;
}

if (
timeout) {
  
time -= 1;
  
timeout .1;
  if (
time <= 0) {
set sailing;
  }
}
if (
sailing) {
    
message T.T;
    
setlevel2 graallegacy_h04.nw,11,31;

__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 04-17-2007, 07:08 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by theHAWKER View Post
That script you sent kristi wont work
your script dosen't do anything...
So i changed it up, but it only says "T.T"
PHP Code:
// NPC made by Join my guild Elite Mafia!
//#CLIENTSIDE
if (created) {
  
time 10;
}

if (
playerenters) {
  
time 10;
  
timeout .1;
}

if (
timeout) {
  
time -= 1;
  
timeout .1;
  if (
time <= 0) {
set sailing;
  }
}
if (
sailing) {
    
message T.T;
    
setlevel2 graallegacy_h04.nw,11,31;

sailing isnt an event, its a conditional, the way i did it was correct.

it doesnt work because youre probably doing it online, setlevel2 doesnt work clientside online.
__________________
Reply With Quote
  #3  
Old 04-17-2007, 08:08 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by theHAWKER View Post
That script you sent kristi wont work
your script dosen't do anything...
So i changed it up, but it only says "T.T"
Dude, some general words of wisdom from a friend, Learn how to script first before you start trying to script everything complicated. Not a word for word quote as I forgot the exact words. But, meh, get's the point across.

All of GS1 is basically deprecated, how do you find:

setstring this.stuff,#c(blah)

easier than,

this.stuff = "blah";

I just don't get it....
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #4  
Old 04-17-2007, 09:05 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by killerogue View Post
Dude, some general words of wisdom from a friend, Learn how to script first before you start trying to script everything complicated. Not a word for word quote as I forgot the exact words. But, meh, get's the point across.

All of GS1 is basically deprecated, how do you find:

setstring this.stuff,#c(blah)

easier than,

this.stuff = "blah";

I just don't get it....
setstring this.stuff,#c(blah)?

That's basically doing this in GS2:
this.stuff = players[blah].chat;

Perhaps you just mean to write:
setstring this.stuff,blah;
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 04-18-2007, 04:15 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by xXziroXx View Post
Hawker, are you trying the script ONLINE or OFFLINE?
Im Doing this on a server.

Quote:
Originally Posted by DustyPorViva View Post
Maybe try explaining what you want this to do? Because I think you're really making this more complicated than it needs to be, if I'm assuming right about what you're doing.
So basicly: i have a level on the gmap where you have to win a ticket to enter, then you go in this boat(which is in a normal "nw" file) when you wait for 20 sconds or so untill you arive at your destionation, which is another level on the gmap.
__________________
**FLIP OUT**
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 04:24 PM.


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