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-07-2002, 10:20 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Sword disabling...

I am trying to make a script that wil totally
disable the players sword, but still allow
the use of their other weapons.

NPC Code:

// NPC made by Prozac
if (playerenters) {timereverywhere; timeout=.05;}
if (timeout) {
if (keydown(5))
{disabledefmovement;
setplayerprop #c,sword disabled!;
sleep 1;
enabledefmovement}
timeout=.05;
}



That makes the player not able to see their sword,
but if you are up next to a bush it still
cuts the bush down.

Any idea how to turn just the sword completely off?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 04-08-2002, 02:52 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

I think there is a command called "hidesword" lol.

So, that should solve it.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #3  
Old 04-08-2002, 04:26 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
simple stuff...
NPC Code:

if (playerenters && !isweapon){
toweapons Sword Disable;
timeout=0.05;}
if (timeout){
setsword no-sword.gif,0;
if (keydown(5)){
setplayerprop #c,Sword Disabled!;
}timeout=0.05;}


i just simply keeps setting the sword power to zero
__________________
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:48 PM.


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