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 06-15-2001, 07:12 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
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)
Reply With Quote
  #2  
Old 06-15-2001, 10:18 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to 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;
}

__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 06-15-2001, 10:48 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
that works....but it requires freezeplayer in the weapon or it wont do anything
__________________
Reply With Quote
  #4  
Old 06-16-2001, 12:43 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
um.. is your signature supposed to spell out that code? you cant use HTML or JavaScript here =\
Reply With Quote
  #5  
Old 06-16-2001, 02:48 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
THANKS!!!!!!

Thanks dude!
Reply With Quote
  #6  
Old 06-16-2001, 03:08 AM
manton manton is offline
Raise Your Fist
Join Date: Mar 2001
Location: California
Posts: 2,318
manton will become famous soon enough
Send a message via AIM to manton
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.
__________________
-Nastazio

Last edited by manton; 06-16-2001 at 03:11 AM..
Reply With Quote
  #7  
Old 06-16-2001, 04:23 AM
Bane2000 Bane2000 is offline
Registered User
Join Date: Jun 2001
Location: Dorset, UK
Posts: 211
Bane2000 is on a distinguished road
Send a message via ICQ to Bane2000 Send a message via AIM to Bane2000
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)
__________________


"Question Everything, Accept Nothing !" - A wise freind


- Fire Lycia, Save Graal

"England - Yes thats the small Island in Europe that Ownz you all." - As Zorg so rightly puts it
Reply With Quote
  #8  
Old 06-16-2001, 06:14 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
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 03:18 PM.


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