Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2001, 03:54 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Weapon Scripting HELP

Whats the script where you use like lets say a customed bow it will take 1 dart how do you make it work?
Reply With Quote
  #2  
Old 06-16-2001, 04:20 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
Question Hope it helps

i'm not sure how much code u need, but if you want to make the arrowcount go down when fired it';s :

if (weaponfired) {
playerdarts=playerdarts-=1;
}

or somthing, i can do it i just cant remember the words of it' dart or darts etc...

but if you tell me exactly what u want i can tell you.

if (weaponfired) {
freezeplayer 1;
playerdarts=playerdarts-=1;
setani shoot,;
etc..... (your special coding for arrow here)
}

i dunno, i only just started screipting so i hope it helps
__________________


"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
  #3  
Old 06-16-2001, 04:38 AM
Munkey Munkey is offline
Guest
Join Date: May 2001
Location: Outside Pittsburgh
Posts: 279
Munkey is on a distinguished road
Send a message via ICQ to Munkey Send a message via AIM to Munkey
auctually you could use playerdarts-=1; it's shorter.
Reply With Quote
  #4  
Old 06-16-2001, 04:53 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
argh, i'm a thick twat

of coure, sorry i'm a thick twat sdome times just use to usually scripting that way.

just working on a large script at the moment and it's got my mind all over the place
__________________


"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
  #5  
Old 06-16-2001, 05:06 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Ok

if playerdarts-=1; is it I am tring to make a bomy bomb and a bomy bow lol ive got this much done:
if (bomyweaponfired) {
setani bomy_shot,;
freezeplayer 1;
shotarrow playerdir;
(tring)playerdarts-=1;
}
Reply With Quote
  #6  
Old 06-16-2001, 05:11 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Error

Im sorry but i need one more thing How to make a weapon not fired if they have no darts
Reply With Quote
  #7  
Old 06-16-2001, 06:46 AM
Munkey Munkey is offline
Guest
Join Date: May 2001
Location: Outside Pittsburgh
Posts: 279
Munkey is on a distinguished road
Send a message via ICQ to Munkey Send a message via AIM to Munkey
ok well that should be this,

if (bomyweaponfired&&playerdarts>=1) {
setani bomy_shot,;
freezeplayer 1;
playerdarts-=1;
shotarrow playerdir;
}

// i think the normal bow freezes a player for .5 seconds but i'm not sure.
Reply With Quote
  #8  
Old 06-16-2001, 07:03 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Ummmm okay sure.....

Due to the fact that the bomy uses freezeplayer in its script im pretty sure there is another script that calls it to freeze its gani and movement but you will have to ask stefan but this below would work if you were a bomy and had the freeze flag or variable set.

if (playertouchsme&&!isweapon&&!hasweapon(Bomy Bow)&&strequals(client.race,bomy)) {tobomyweapons Bomy Bow;}

if (bomyweaponfired&&playerdarts>0) {
playerdarts-=1;
setani bomy_shot,bownameifitsinparams;
freezeplayer2;//You will need to find out the bomy freeze variable for this part
shotarrow playerdir; //Umm you can use this but i make my own arrays for stuff like this ... more custom.
}
__________________

To the sun of your age, I arise

Last edited by TB3; 06-16-2001 at 07:05 AM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:29 PM.


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