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 02-08-2002, 12:24 PM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
Hello

I'll admit. I've never scripted in my whole life and I have no idea what I'm doing. But I do no something..

I was wondering how to script a basic bow. I know you theres several lines for each direction. and how do you set the bow to show a certain image.. so its not just your hands.
__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy

Last edited by Kaimetsu; 02-08-2002 at 12:52 PM..
Reply With Quote
  #2  
Old 02-08-2002, 12:59 PM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
oops my bad.
__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy
Reply With Quote
  #3  
Old 02-08-2002, 08:53 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
NPC Code:

if (playertouchsme) {
toweapons Bow;
}
if (weaponfired) {
freezeplayer .5;
setani wbow,;//I think that's the animation
shootarrow playerdir;
playerdarts-=1;
}


lol half of it is just made up, it may not work.
__________________

-=Shard IceFire=-
Reply With Quote
  #4  
Old 02-08-2002, 10:04 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
shootarrow playerdir-2 ;x
__________________
Reply With Quote
  #5  
Old 02-08-2002, 10:14 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
the animation is shoot
Reply With Quote
  #6  
Old 02-08-2002, 11:03 PM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
Quote:
Originally posted by Slaktmaster
the animation is shoot
or u can just use the push sprite.
__________________
Reply With Quote
  #7  
Old 02-08-2002, 11:37 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu
NO PROFANITY PLEASE. This is scripting, there's no need to get sufficiently emotional about it to swear.
i was gonna say, he didn't cuss, but u probably edited it...so nm...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 02-09-2002, 07:14 AM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
I don't remember cussing.. but oh well, I think I said I don't know s*** about coding
__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy
Reply With Quote
  #9  
Old 02-09-2002, 07:17 AM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
How do you set your own graphic.. like the fireball graphic when you fire.

How do you do that.
__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy
Reply With Quote
  #10  
Old 02-09-2002, 10:00 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
setani shoot,whatevernewfireballgraphicnamehere;
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #11  
Old 02-09-2002, 10:09 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
if you want to know how the bow is scripted in the game, get one from a chest offline, go into the debugger, find the bow in the drop down menu and viola! your script stares blankly at you...
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #12  
Old 02-09-2002, 10:24 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
:P


i remember there was a bug where you could get offline and use the debugger and steal all the NPCw scripts :P
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #13  
Old 02-09-2002, 10:36 AM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
Is shoot like a Gani or a spirite?
__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy
Reply With Quote
  #14  
Old 02-09-2002, 11:48 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
Quote:
Is shoot like a Gani or a spirite?
It's both but the Gani is the only one that supports a bow image anymore.
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #15  
Old 02-10-2002, 09:26 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
Quote:
Originally posted by Kadar
shootarrow playerdir-2 ;x
so if the player's dir was 0, you would wind up with -2? I think what you mean to say is (playerdir-2)%4
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 08:58 AM.


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