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
  #1  
Old 03-23-2002, 05:19 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
need help here.

How can i make this work online?
it works offline perfect, but when i try it online, it wont shwio the time or anything i say
Its for babylon, so no p2p plz.
Heres the first NPC:
NPC Code:

// NPC made by Tyrial
if (playerenters) {
}
if (playertouchsme) {
toweapons Portal Layer;
}
if (playerchats) {
if (startswith(layportal,#c)) {
tokenize #c;
if (tokenscount==6) {
playersprite=17;
playerdir=2;
putnpc warptile.gif,babylonwarp.txt,playerx+0.5,playery+3 ;
sleep 0.1;
setplayerprop #c,Warp Layed!;
play chest.wav;
} else { say2 Acces Denied. Use correct syntax:#blayportal <levelname> #b<x> <y> <time> <name>.#b
Use ""'s to or it wont work.;
}
}
}
if (weaponfired) {

say2 Portal Layer.#bTo put an portal say:#blayportal <levelname> #b<x> <y> <time> <name>.#b
Use ""'s to or it wont work.;
}



heres the txt file:

NPC Code:

if (created) {
tokenize #c;
message #v(this.timer) seconds left. It will warp you to: #s(this.warpname);
setstring this.warplevel,#t(1);
this.warpx=strtofloat(#t(2));
this.warpy=strtofloat(#t(3));
this.timer=strtofloat(#t(4));
setstring this.warpname,#t(5);
}

if (timeout) {
message #v(this.timer) seconds left. It will warp you to: #s(this.warpname);
this.timer-=1;
}
if (playertouchsme) {
setlevel2 #s(this.warplevel),this.warpx,this.warpy;

}
timeout=1;
if (this.timer<=-2) {
destroy;
}
timereverywhere;

__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #2  
Old 03-23-2002, 05:33 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Unhappy

After i see this, that 18 ppl read this, adn no reply. You can think ppl is stealing the script, dont think i did to.
Tyrial is my RP name
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #3  
Old 03-23-2002, 05:54 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Kaimetsu
You're using without an NPC Server, right?
Yes, it works offline, not online
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #4  
Old 03-23-2002, 06:58 PM
LittleBabyGirl_Bomy LittleBabyGirl_Bomy is offline
Registered User
Join Date: Mar 2002
Location: dunno
Posts: 300
LittleBabyGirl_Bomy is on a distinguished road
He asked if you use a NPC server..
that wasent really an answer :P
__________________
I AM FERRET

Aim: Ferret The Man
Email: forum PM me for my mail
Reply With Quote
  #5  
Old 03-23-2002, 08:21 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by LittleBabyGirl_Bomy
He asked if you use a NPC server..
that wasent really an answer :P
He did answer it.
Kai said
"You're using without an NPC Server, right?"

and then Gastly said
"Yes, it works offline, not online
Reply With Quote
  #6  
Old 03-23-2002, 10:17 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by AlexH


He did answer it.
Kai said
"You're using without an NPC Server, right?"

and then Gastly said
"Yes, it works offline, not online
hehe
Thanks :P
I were going to say it, but then i saw you do so i just forgot it.
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #7  
Old 03-24-2002, 12:10 AM
Jman9912-P2P Jman9912-P2P is offline
Registered User
Join Date: Nov 2001
Location: North Carolina!
Posts: 217
Jman9912-P2P is on a distinguished road
Send a message via AIM to Jman9912-P2P Send a message via Yahoo to Jman9912-P2P
lol i remember in the server options on FTP there is something like
putnpcenabled or putnpc= something or something like that u might have to set it
__________________
AIM: Jman9912
Email: [email protected]
Reply With Quote
  #8  
Old 03-24-2002, 12:15 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
i think kai wants to know if he plans to use it on a npc server
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 03-24-2002, 12:35 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by screen_name
i think kai wants to know if he plans to use it on a npc server
I already told him in not.
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #10  
Old 03-24-2002, 01:25 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Kaimetsu
...

I'll rephrase, since my earlier question garnered a whole hunk of confusion:

Does the server on which you are testing it have an NPC Server?
i already said no. Its on babylon, free server. But it wont kill me if i say again so...

Nope, i use it on a free server
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #11  
Old 03-24-2002, 01:53 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Kaimetsu


You were unclear before, indicating that you had possibly misunderstood my question. But okay.

I'd help, but free servers aren't my thing. They make me wince.
:x
Thanks. But cant you help anyways?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #12  
Old 03-24-2002, 05:22 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by mhermher

:x
Thanks. But cant you help anyways?
I am not sure but i think it has to do with the timer. I am looking into the code for you know tho


Well i cant see anything wrong with it but i need to test it online.
When you get online drop me a line on icq or msn
icq:- 24773132
MSN:- [email protected]

and yes the msn does work :P

then i can help you debug it online
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #13  
Old 03-24-2002, 05:33 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by neomaximus2k


I am not sure but i think it has to do with the timer. I am looking into the code for you know tho


Well i cant see anything wrong with it but i need to test it online.
When you get online drop me a line on icq or msn
icq:- 24773132
MSN:- [email protected]

and yes the msn does work :P

then i can help you debug it online
its ok, it works now, but not as good as it did before offline, but it still works. ANd im happy for it
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #14  
Old 03-24-2002, 07:12 PM
LittleBabyGirl_Bomy LittleBabyGirl_Bomy is offline
Registered User
Join Date: Mar 2002
Location: dunno
Posts: 300
LittleBabyGirl_Bomy is on a distinguished road
Quote:
Originally posted by Kaimetsu


You were unclear before, indicating that you had possibly misunderstood my question. But okay.

I'd help, but free servers aren't my thing. They make me wince.
thats what i thought to :-P
__________________
I AM FERRET

Aim: Ferret The Man
Email: forum PM me for my mail
Reply With Quote
  #15  
Old 03-24-2002, 08:12 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu

I'd help, but free servers aren't my thing. They make me wince.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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 07:30 AM.


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