Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-18-2012, 11:30 PM
E_Man E_Man is offline
E-Man
E_Man's Avatar
Join Date: Jun 2012
Posts: 81
E_Man will become famous soon enough
Custom Projectile (Bow)

I'm trying to make a custom bow with new images for my world, I found a script online that uses the command I need: "shoot" but I could not find it in the commands list so I don't know how to completely use it properly. Also I can't figure out how to make the arrows do damage, this is what I have so far.

// NPC made by E-Man
if (created) {
setimg woodenbow.png;
}
if (playertouchsme) {
toweapons Wooden Bow;
}
if (weaponfired && playerdir=0) {
freezeplayer 0.6;
setani shoot,woodenbow1.png;
sleep 0.2;
shoot playerx-0.8,playery+0.5,2,pi/2,0,0,eman_woodenarrow,;
}
if(weaponfired && playerdir=1){
freezeplayer 0.6;
setani shoot,woodenbow1.png;
sleep 0.2;
shoot playerx-1,playery+2,2,pi,1,0,eman_woodenarrow,;
}
if(weaponfired && playerdir=2){
freezeplayer 0.6;
setani shoot,woodenbow1.png;
sleep 0.2;
shoot playerx+0.2,playery+3,2,1.5*pi,.5,0,eman_woodenarr ow,;
}
if(weaponfired && playerdir=3){
freezeplayer 0.6;
setani shoot,woodenbow1.png;
sleep 0.2;
shoot playerx+1.3,playery+2,2,pi*2,1,0,eman_woodenarrow, ;
}



Also for some reason when I shoot left the arrow is transparent, I think that may be because of the shoot command though.
Reply With Quote
 


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 05:17 AM.


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