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-05-2004, 12:33 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
disablesword;?

Hi i search for a command to disable the sword i tried some:
replaceani sword,idle;
//but this hurts when u press the space key O.o
disableweapons;
//blah all weapons disabled
disablesword;
//is in my commands.rtf but wont work O.o

Someone know a command to disable the sword?
Reply With Quote
  #2  
Old 04-05-2004, 01:00 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
The only thing you can do is to rescript the weapon system.
__________________
-Kjetil Valen
Reply With Quote
  #3  
Old 04-05-2004, 01:00 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Yeah with disableweapons? And callweapon selectedweapon,weaponfired;`?

Last edited by projectigi; 04-05-2004 at 01:13 PM..
Reply With Quote
  #4  
Old 04-05-2004, 03:49 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Re: disablesword;?

Quote:
Originally posted by projectigi

disablesword;
//is in my commands.rtf but wont work O.o
there is no disablesword command, there ought to be one though


Quote:

Yeah with disableweapons? And callweapon selectedweapon,weaponfired;`?
yes
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #5  
Old 04-05-2004, 04:27 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
stefan should put disabling the sword in enablefeatures
Reply With Quote
  #6  
Old 04-05-2004, 06:14 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by R0bin
stefan should put disabling the sword in enablefeatures
Good idea.
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 04-05-2004, 08:00 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
From what I've seen, Stefan would rather simply tell you to rescript everything than add something new and useful.
__________________
Kat
Reply With Quote
  #8  
Old 04-06-2004, 06:44 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by -Ramirez-
From what I've seen, Stefan would rather simply tell you to rescript everything than add something new and useful.
I thought that was us? then again, I wouldn't doubt that Stefan would say that too sometimes...

Edit: back on the old topic, I just rembered something I might have done a long time ago to disable the sword, set the players sword to a blank image (no-shield.png or whatever) set the swordpower to 0 and viola! no sword! just remember to save a string for when you need to restore the player's sword
Note: It's been a very long time since i've played around trying to disable the sword, and I don't remember if this is what worked for me
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 04-06-2004, 05:05 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally posted by -Ramirez-
From what I've seen, Stefan would rather simply tell you to rescript everything than add something new and useful.
soooo spiteful!

::edit:: that sucked... dachs works
__________________

Last edited by Kristi; 04-06-2004 at 05:19 PM..
Reply With Quote
  #10  
Old 04-06-2004, 05:17 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Yeah but it still hurts the other players rofl
Reply With Quote
  #11  
Old 04-06-2004, 05:20 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
I just tested my last suggestion, it works, but be careful not to lose the player's sword data during the conversions! (make sure the sword is disabled when you enable, and make sure its enabled when its disabled)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #12  
Old 06-06-2004, 06:50 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Making a disable-sword in enablefeatures? Errm no?
NPC Code:

//#CLIENTSIDE
if (timeout || isweapon) {
disableweapons;
setarray this.keydown,11;
setarray this.oldkeydown,11;
for (this.i=0;this.i<11;this.i++) {
this.oldkeydown[this.i]=this.keydown[this.i];
this.keydown[this.i]=(keydown(this.i));
}
if (this.keydown[4]==true && this.oldkeydown[4]==false && selectedweapon>=0) callweapon selectedweapon,weaponfired;
timeout = 0.05;
}
]


Last edited by KuJi; 06-06-2004 at 07:03 AM..
Reply With Quote
  #13  
Old 06-06-2004, 08:18 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
I believe there was a very simple command.
Try changing the player's sword gani with another one.

replaceani sword,idle;
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #14  
Old 06-06-2004, 08:47 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Great, then I can fire NPC weapons no matter whether I am swimming, carrying bushes, frozen by NPCs, riding horses...
Reply With Quote
  #15  
Old 06-06-2004, 08:47 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
That was mentioned in the first post. Read.
Reply With Quote
  #16  
Old 06-06-2004, 09:49 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
I did, but the way he posted was so unclear x-x' Why does nobody leave some space between crap? Even I did it as newb.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #17  
Old 06-07-2004, 02:10 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
mine still works?

why, what, who, bah
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #18  
Old 06-08-2004, 03:20 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Loriel
Great, then I can fire NPC weapons no matter whether I am swimming, carrying bushes, frozen by NPCs, riding horses...
I got a newer npc of it ;O
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 05:30 AM.


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