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 10-19-2005, 09:28 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
strange bow thingy

Okay, If a person is in a level with baddies that shoot stones, arrows, etc, the player's arrows reduce, I've looked through my own NPCs and I have no idea where this came from. Also, if you use this weapon, two arrows are taken away (this is my replacement for the bow, because i thought that it might be the problem, but, wrong. What could be doing this? (Note, this is not a problem with bombs, just arrows)
My bow:
NPC Code:
if(actionserverside){
if(strequals(#p(0),darts)){
playerdarts=playerdarts-1;
// ^ ^I know the right way to do this, I was just expirementing a bit
}
}
//#CLIENTSIDE
if(weaponfired){
triggeraction 0,0,serverside,*Bow,darts;
if(playerdarts>0){
setani shoot,;
if(playerdir==0){
shootarrow up;
}
if(playerdir==2){
shootarrow down;
}
if(playerdir==1){
shootarrow left;
}
if(playerdir==3){
shootarrow right;
}
}
}

Reply With Quote
  #2  
Old 10-19-2005, 09:52 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I think you can just do:
shootarrow playerdir;
or
shootarrow(player.dir);

I think you are losing two arrows because the shootarrow command is probably taking an arrow, and you have an additional triggeraction that also removes an arrow.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 10-19-2005, 10:00 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
but it also takes arrows when baddies shoot, but I'll try that. The problem with the baddies is why I created this bow.
Reply With Quote
  #4  
Old 10-19-2005, 10:22 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Oh, the baddy 'arrow problem' has always been around (or at least I think so).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #5  
Old 10-19-2005, 10:43 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
thats so lame ALWAYS? That really bites....anyway around it?
Reply With Quote
  #6  
Old 10-20-2005, 01:05 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by excaliber7388
thats so lame ALWAYS? That really bites....anyway around it?
Don't use predefined baddies, or script your own arrow system.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #7  
Old 10-20-2005, 01:50 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by ApothiX
Don't use predefined baddies, or script your own arrow system.
oh heh, didn't realize that would work, I'll try that I guess, thanks
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 02:59 AM.


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