Graal Forums

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

Poogle 06-15-2001 07:12 AM

Bomy Weapon Scripting
 
anyone know how to make bomy weapons? please post them and make sure they are legal like a bomy hacky sack?(LEGAL PLEASE)

BocoC 06-15-2001 10:18 AM

This is easy. Instead of:
NPC Code:

if (weaponfired) {
do crap;
}



Do this:
NPC Code:

if (bomyweaponfired) {
do crap;
}
if (bomyweaponfiredw) { //fired in water
do crap;
}


G_yoshi 06-15-2001 10:48 PM

that works....but it requires freezeplayer in the weapon or it wont do anything

vergil 06-16-2001 12:43 AM

um.. is your signature supposed to spell out that code? you cant use HTML or JavaScript here =\

Poogle 06-16-2001 02:48 AM

THANKS!!!!!!
 
Thanks dude!

manton 06-16-2001 03:08 AM

Quote:

Originally posted by BocoC
This is easy. Instead of:
NPC Code:

if (weaponfired) {
do crap;
}



Do this:
NPC Code:

if (bomyweaponfired) {
do crap;
}
if (bomyweaponfiredw) { //fired in water
do crap;
}


Hmm,Would that work with other races too? I thought it might if the script is a bit like the bomy script.

Bane2000 06-16-2001 04:23 AM

yeah that got on my nerves a lot, making weapons that i couldn't fire, it just wouldnt work, so if i put :

if (bomyweaponfired) {
}

it will work ? (yeah and smae for water)

BocoC 06-16-2001 06:14 AM

Yes. In the bomy code, if the D key is pressed, this gets run:

NPC Code:

function Cweapon() {
if (selectedweapon>=0) {
if (pswimming)
callweapon selectedweapon,bomyweaponfiredw;
else
callweapon selectedweapon,bomyweaponfired;
}
}


What this does is calls your selected weapon and runs the bomyweaponfired or bomyweaponfiredw segments of it. Pretty easy.


All times are GMT +2. The time now is 09:16 AM.

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