Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-11-2001, 08:31 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Warping Script Problems

I can do warping in an easier way, but Im not that good of a scripter, and this script I could use help with. It comes up with an error somewhere in the setlevel2 part. HELP!

NPC Code:

// NPC made by Reese-=I would be an awesome ET member. NOT KIDDING!>=D=-
if (playerenters) {
}
if (playertouchsme) {toweapons Warper;destroy;
}
if(weaponfired){setplayerprop #c,What level?;sleep 1;setplayerprop #c, ;this.spoke=1}
if(this.spoke=1&&playerchats){setstring level,#c;sleep 2;setplayerprop #c,Saving...;sleep 2; setplayerprop #c, ;this.spoke=2;}
if(this.spoke=2){sleep 2; setplayerprop #c,X position?;sleep 1;setplayerprop #c, ;this.spoke=3;}
if(this.spoke=3&&playersaysnumber<65){setstring x,#c;sleep 2;setplayerprop #c,Saving...;sleep 2; setplayerprop #c, ;this.spoke=4;}
if(playersaysnumber>64&&this.spoke=3){setplayerpro p #c,Invalid Number. Please try again; setplayerprop #c, ;this.spoke=2;}
if(this.spoke=4){sleep 2; setplayerprop #c, Y postion?;sleep 1;setplayerprop #c, ;this.spoke=5;}
if(this.spoke=5&&playersaysnumber<65){setstring y,#c;sleep 2;setplayerprop #c,Saving...;sleep 2; setplayerprop #c, ;this.spoke=6;}
if(playersaysnumber>64&&this.spoke=5){setplayerpro p #c,Invalid Number. Please try again;setplayerprop #c, ; this.spoke=4;}
if(this.spoke=6){setplayerprop #c, Are you done?;this.spoke=7;}
if(this.spoke=7&&playerchats&&!playersaysnumber&&s trcontains(#c,done)){thise.spoke=8;}
if(this.spoke=8){setlevel #s(level);playerx=#s(x);playery=#s(y);}


Reply With Quote
 


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 12:04 AM.


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