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 01-16-2011, 06:51 PM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
Unhappy Update level with NPC Server

SO i made a level thats update evry 1 minute but i cant go in the level evrytime so i ask can i make a NPC so that with the script the NPC server update the level Thanks :/

__________________________
Reply With Quote
  #2  
Old 01-16-2011, 06:54 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You can but updating the level every minute is not a proper solution for your problem.

What are you trying to do?

This example script will run every minute:

PHP Code:
function onCreated() {
  
this.0;
  
onTimeout();
}

function 
onTimeout() {
  
this.i++;
  echo(
this.i);
  
setTimer(60);

__________________
Quote:
Reply With Quote
  #3  
Old 01-16-2011, 07:04 PM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
ok but evry minute update the NPC server the level automaticly
Reply With Quote
  #4  
Old 01-16-2011, 07:05 PM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
that i mean
Reply With Quote
  #5  
Old 01-16-2011, 07:25 PM
nullify nullify is offline
Registerd Abuser
nullify's Avatar
Join Date: May 2004
Location: The cheese state.
Posts: 851
nullify has a spectacular aura about
I sure glad Twaina is trying to learn.
Reply With Quote
  #6  
Old 01-16-2011, 11:27 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Why do you need to update a level every minute?
__________________
"We are all in the gutter, but some of us are looking at the stars."
Ś Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #7  
Old 01-16-2011, 11:30 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Twaina View Post
SO i made a level thats update evry 1 minute but i cant go in the level evrytime so i ask can i make a NPC so that with the script the NPC server update the level Thanks :/

__________________________
You absolutely should not update the level every minute. In fact, the NPC-Server should not be updating levels automatically regardless.

What do you mean you can't go in the level every time? That sounds like a deeper problem.
__________________
Skyld
Reply With Quote
  #8  
Old 01-17-2011, 03:43 AM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
no the NPC server update the level automaticly with a script evry minute
(i am germn sowwe)
Reply With Quote
  #9  
Old 01-17-2011, 05:04 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Twaina View Post
no the NPC server update the level automaticly with a script evry minute
Yeah and you should NEVER do that.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #10  
Old 01-17-2011, 06:15 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Time to rephrase the question... It's exactly like Sonnfel and Valtor all over again...

Why do you need to update the level every minute?
__________________
Quote:
Reply With Quote
  #11  
Old 01-17-2011, 04:11 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by fowlplay4 View Post
Time to rephrase the question... It's exactly like Sonnfel and Valtor all over again...

Why do you need to update the level every minute?
Let me take a crack at this..

I think he's saying that he can't normally enter the level unless he updates it first. To this respect, automatically updating the level would serve as a fix.

But if this is the case, it sounds like it might be a folderconfig or filebrowser problem.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #12  
Old 01-17-2011, 05:39 PM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
Maybe he uploaded the Level in a wrong folder ??
__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Bj÷rn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
  #13  
Old 01-17-2011, 05:57 PM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
Quote:
Originally Posted by MattKan View Post
I'm going to point out Twaina is a she.
Well there's your problem.
Reply With Quote
  #14  
Old 01-17-2011, 06:04 PM
RegretZ RegretZ is offline
Me.
RegretZ's Avatar
Join Date: Sep 2010
Location: USA
Posts: 415
RegretZ will become famous soon enough
Quote:
Originally Posted by Liberated View Post
Well there's your problem.
There are computers in the kitchen?

I keed, I keed.
Reply With Quote
  #15  
Old 01-17-2011, 06:52 PM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
1..iam a she
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 03:03 AM.


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