Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

View Poll Results: What is your choice about this thread
Are you happy that there is a gun in the code galery? 5 29.41%
Are you Sad that there is a gun in the code galery? 6 35.29%
Are you mad at me because i posted a working gun script in the code galery 6 35.29%
Voters: 17. You may not vote on this poll

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-04-2009, 12:05 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Wink Gun script working !!

DONT NAG ME ABOUT PARAMQUALS IT STILL Works

i can script

PHP Code:
//SCRIPTED BY GULTHEX B****ES
//DONT NAG ME ABOUT PARAMQUALS
//BECAUSE IT WORKS 
//#CLIENTSIDE
//up
if (playerdir=0){
  
this.x=playerx-1;
  
this.y=playery-2;
}
//left
if (playerdir=1){
  
this.x=playerx-2;
  
this.y=playery;
}
//down
if (playerdir=2){
  
this.x=playerx+1;
  
this.y=playery+2;
}
//right
if (playerdir=3){
  
this.x=playerx+2;
  
this.y=playery;
}
}

if (
weaponfired){
  
setshootparams PARAMEQUALS;
  
//shoot x,y,z,angle,zangle,power,gani,ganiparams;
  
shoot this.x,this.y,playerz,(playerdir 1) * pi 2,,,bullet gani here,;
  
setani firing motion here,;
  
replaceani idle,standing still motion here;
  
replaceani walk,walking motion here;
  
freezeplayer 0.0383;
  
sleep 0.1;
}
if (
actionprojectile) {
  if(
strequals(#p(index),PARAMEQUALS)) {
    
hurt 3;
  }

TOLD YOU I COULD MAKE ME 1


NOW DONT TREAT ME LIKE S#1t
got that!

note post a reply if you need help with it

like where to put it lol

Last edited by GULTHEX; 03-04-2009 at 10:59 PM..
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 10:11 AM.


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