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 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 is on a distinguished road
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
  #2  
Old 04-10-2001, 11:15 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 is on a distinguished road
Yeah.

I for some reason just decided to script it for 1.28, and since 1.28 hasn't got isweapon built in yet I just had to do it without isweapon
__________________


Last edited by grim_squeaker_x; 04-10-2001 at 11:18 PM..
Reply With Quote
  #3  
Old 04-11-2001, 01:12 AM
sniperjoe10 sniperjoe10 is offline
Banned
sniperjoe10's Avatar
Join Date: Mar 2001
Location: FL, USA
Posts: 2,045
sniperjoe10 is on a distinguished road
Good job, Grim.
Reply With Quote
  #4  
Old 04-11-2001, 02:14 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
im posting this cause.. its not working =P ur sig isnt working, itll probably be working when others see this post, just fix it, cause.. we can't see Lycia's work =P
Reply With Quote
  #5  
Old 04-11-2001, 10:17 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
Now we only need sethead setshield,and setsword commands for 1.28 @_@
Reply With Quote
  #6  
Old 04-11-2001, 10:21 AM
Spearman Spearman is offline
Registered User
Join Date: Mar 2001
Location: Indiana, USA
Posts: 498
Spearman is on a distinguished road
Send a message via ICQ to Spearman Send a message via AIM to Spearman
Nice job, how long did you spend on that?
Reply With Quote
  #7  
Old 04-11-2001, 06:37 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 is on a distinguished road
Quote:
Originally posted by Spearman
Nice job, how long did you spend on that?
1 hour
And that is 1 huor only because I had to downgrade some of the commands I'm used to for 1.28 @_@
__________________

Reply With Quote
  #8  
Old 04-15-2001, 02:17 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
problemo

There is a problem..when you get the weapon u can't open your weapons menu which is kinda important =/
Reply With Quote
  #9  
Old 04-15-2001, 03:23 AM
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 is on a distinguished road
Re: problemo

Quote:
Originally posted by Komieko
There is a problem..when you get the weapon u can't open your weapons menu which is kinda important =/
Strange, I could just perfectly open my weapons menu... Maybe it helps if you assign an image to the weapon.
__________________

Reply With Quote
  #10  
Old 04-15-2001, 03:44 AM
Komieko Komieko is offline
Registered User
Join Date: Mar 2001
Posts: 494
Komieko is on a distinguished road
yep!

yeah I assigned an image and it worked!
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 10:21 AM.


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