Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bomy Weapons (https://forums.graalonline.com/forums/showthread.php?t=8752)

Death_Sythe 08-03-2001 03:33 AM

Bomy Weapons
 
Ok I see alot of people asking how to amke bomy weapons, well Stefan didnt put the code in the scripting text yet, it is a hidden script instead of having weaponfired just put bomyweaponfired here is a example, the is the Bow Script for bomys
if (bomyweaponfired && playerdarts>0) {
freezeplayer 0.3;
setani shoot,wbow1.gif;
timeout = 0.25;
}
if (timeout) {
shootarrow playerdir;
playerdarts = playerdarts-1;
}

BocoC 08-03-2001 03:44 AM

Bomyweaponfired and Bomyweaponfiredw aren't hidden commands. Inside the bomy code, this is what they do:
NPC Code:

if (swimming) {
callweapon selectedweapon,bomyweaponfiredw;
} else {
callweapon selectedweapon,bomyweaponfired;
}


callweapon is very usefull if you have a script that calls the command 'disabledefmovement', because 'weaponfired' doesn't work when 'disabledefmovement' has been called.

Death_Sythe 08-03-2001 03:49 AM

never understanded that command
 
I never really understanded that script, never understood the fucntion command that well either...

General 08-03-2001 04:40 AM

for some reason, whenever i script a race, the callweapon part never quite works right


All times are GMT +2. The time now is 12:42 AM.

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