Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   need help here. (https://forums.graalonline.com/forums/showthread.php?t=26123)

mhermher 03-23-2002 05:19 AM

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;


mhermher 03-23-2002 05:33 PM

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

mhermher 03-23-2002 05:54 PM

Quote:

Originally posted by Kaimetsu
You're using without an NPC Server, right?
Yes, it works offline, not online

LittleBabyGirl_Bomy 03-23-2002 06:58 PM

He asked if you use a NPC server..
that wasent really an answer :P

AlexH 03-23-2002 08:21 PM

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

mhermher 03-23-2002 10:17 PM

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.

Jman9912-P2P 03-24-2002 12:10 AM

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

screen_name 03-24-2002 12:15 AM

i think kai wants to know if he plans to use it on a npc server

mhermher 03-24-2002 12:35 AM

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.

mhermher 03-24-2002 01:25 AM

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

mhermher 03-24-2002 01:53 AM

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?

neomaximus2k 03-24-2002 05:22 PM

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

mhermher 03-24-2002 05:33 PM

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 :)

LittleBabyGirl_Bomy 03-24-2002 07:12 PM

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

Saga2001 03-24-2002 08:12 PM

Quote:

Originally posted by Kaimetsu

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



All times are GMT +2. The time now is 04:06 AM.

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