Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

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 11:35 PM.


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