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 04-10-2001, 10:02 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Talking

I've managed to rebuilt unstick me in a NPCW which is 1.28 compatible, so "yay!" to me.
Ahem, well anyway here's the code:
NPC Code:
// NPC made by Grim Squeaker
if (playerenters) toweapons Unstick me;
if (playerenters||timeout) {
setarray this.loc,playerscount*2;
setarray this.time,playerscount;
for (this.i=0;this.i<playerscount;this.i++) {
if (players[this.i].x==this.loc[this.i*2]&&playery==this.loc[this.i*2+1]) this.time[this.i]++;
else {
this.time[this.i]=0;
this.loc[this.i*2]=players[this.i].x;
this.loc[this.i*2+1]=players[this.i].y;
}
}
timeout=0.05;
}
if (playerchats) {
if (strequals(#c,unstick me)) {
for (this.i=0;this.i<playerscount;this.i++) {
if (this.time[this.i]>=600) {
setplayerprop #c,Warped;
playerx=31;
playery=31;
setlevel house1.graal;
}
else setplayerprop #c,Wait 30 seconds before doing 'Unstick me'!;
}
}
}



Only problem with it is that when you are online it won't work in the room where you get the NPC.
__________________

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 07:51 PM.


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