Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sword disabling... (https://forums.graalonline.com/forums/showthread.php?t=27111)

prozac424242 04-07-2002 10:20 PM

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?

mikepg 04-08-2002 02:52 AM

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

So, that should solve it.

Goboom 04-08-2002 04:26 AM

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


All times are GMT +2. The time now is 06:01 AM.

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