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 10-14-2001, 11:46 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Tailor System

I need a little help getting the keydown to work ... plus ... i need help of how i can hold the player still so he doesn't move while the taylor is open:
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
if (playerenters) {
toweapons Babylon Taylor;
}
if (weaponfired) {
showimg 203,babylontaylor2.gif,200,200;
changeimgvis 203,10;
changeimgzoom 203,10;
showimg 204,#3,230,225;
changeimgvis 204,10;
changeimgzoom 204,10;
changeimgpart 204,0,63,32,32;
showimg 205,b_selectarrow.gif,205,235;
changeimgvis 205,10;
changeimgzoom 205,10;
this.arrowlocation=0;
set tayloropen;
this.head=510;
}
if (keydown(1) && tayloropen) {
this.head--;
showimg 204,head#v(this.head).gif,230,225;
changeimgvis 204,10;
changeimgzoom 204,10;
changeimgpart 204,0,63,32,32;
}
if (keydown(3) && tayloropen) {
this.head++;
showimg 204,head#v(this.head).gif,230,225;
changeimgvis 204,10;
changeimgzoom 204,10;
changeimgpart 204,0,63,32,32;
}
if (keydown(0) && tayloropen) {
this.arrowlocation++;
play nextpage.wav;
hideimg 205;
}
if (this.arrowlocation=6) {
showimg 205,b_selectarrow.gif,205,480;
changeimgvis 205,10;
changeimgzoom 205,10;
}
if (keydown(6)) {
hideimg 203;
hideimg 204;
hideimg 205;
unset tayloropen;
}

Reply With Quote
  #2  
Old 10-14-2001, 11:49 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
also ...

try to keep in mind that this is my first time doing scrpiting with 'showimg' so please cut back on the criticism ....
Reply With Quote
  #3  
Old 10-14-2001, 11:56 PM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
You could use disabledefmovement; to stop the player from moving (to renable movement, use enabledefmovement). -Yin
Reply With Quote
  #4  
Old 10-14-2001, 11:57 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
keydown ...

when i do that it disables all the keydown stuff .....
Reply With Quote
  #5  
Old 10-14-2001, 11:59 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: keydown ...

Quote:
Originally posted by nyghtGT
when i do that it disables all the keydown stuff .....
when u do that it just will stop the player from moving and using weapons.. keydown should still work
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #6  
Old 10-15-2001, 12:16 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Tailor System

10 is not a vis level, the max is either 4 or 5
Reply With Quote
  #7  
Old 10-15-2001, 12:22 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: Re: Tailor System

Quote:
Originally posted by btedji
10 is not a vis level, the max is either 4 or 5
I believe u can have as high as you want .. if not its higher then 5 im sure of that
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 10-15-2001, 12:34 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Re: keydown ...

Quote:
Originally posted by LiquidIce00

when u do that it just will stop the player from moving and using weapons.. keydown should still work
well when i do disabledefmovement my keydown doesn't work .... I dunno though i'll just finish it then worry about the keydown ...
Reply With Quote
  #9  
Old 10-15-2001, 12:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Re: Re: Re: keydown ...

Quote:
Originally posted by nyghtGT

well when i do disabledefmovement my keydown doesn't work .... I dunno though i'll just finish it then worry about the keydown ...
keydown works when disabledefmovement is on
Reply With Quote
  #10  
Old 10-15-2001, 12:51 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
the problem with that is its a weapon and if you do disablemovement it disables weapons making it you cant refire the weapon to make it go away
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #11  
Old 10-15-2001, 12:55 AM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
Add an option in the tailor NPC to 'close' the menu (enabling movement again, and hiding the images). -Yin
Reply With Quote
  #12  
Old 10-15-2001, 01:29 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by ownerofbabylon
the problem with that is its a weapon and if you do disablemovement it disables weapons making it you cant refire the weapon to make it go away
that is why you do a keydown(d) sort of thing
Reply With Quote
  #13  
Old 10-15-2001, 01:32 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Dont use flags for the weapons.

Do like this.on = 1; and this.on = 0;
__________________

subliminal message: 1+1=3
Reply With Quote
  #14  
Old 10-15-2001, 01:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Falcor
Dont use flags for the weapons.

Do like this.on = 1; and this.on = 0;
unless you want to save the status when the player logs off but that is not the case this time
Reply With Quote
  #15  
Old 10-15-2001, 02:54 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
*******

Quote:
Originally posted by SagaTCN
Add an option in the tailor NPC to 'close' the menu (enabling movement again, and hiding the images). -Yin
no offense but i am not a ******* ....
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 12:52 AM.


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