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 09-25-2001, 02:30 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Bombs

I wanna make a NPC that throws bombs over a wall and throws them maybe like 10 y so that it goes over the wall and actually lands in the middle of a level. Anyone know the best way to do this?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 09-25-2001, 02:47 AM
NooseKnot NooseKnot is offline
Registered User
Join Date: Jun 2001
Location: Connecticut
Posts: 298
NooseKnot is on a distinguished road
well first make a NPC that throws bombs 10 y then ur done
__________________

Warrior of Darkness
Reply With Quote
  #3  
Old 09-25-2001, 02:49 AM
NooseKnot NooseKnot is offline
Registered User
Join Date: Jun 2001
Location: Connecticut
Posts: 298
NooseKnot is on a distinguished road
hers the coding
//NPC made by NooseKnot
if(playerenters||timeout){
set throwbomb;
}
if(throwbomb{
throwbomb a little to the right;
throwbomb exactly 10y; //whatever the hell that means
throwbomb in middle of room over the wall in front of me;
}
if(throws bombs over wall in front of me){
unset throwbomb;
timeout=5;
}
__________________

Warrior of Darkness
Reply With Quote
  #4  
Old 09-25-2001, 02:50 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
uhh
why not make it ujustable like
if (playerchats&&startswith(throwbomb,#c)) {
tokenize #c;
if (tokenscount==2) {
putbomb playerx,#t(1);
}
}

that would make it so you say throwbomb #
and the # = the y it would go
so you can so throwbomb 4
it would throw a bomb on your x but 4 y front of you
i think
Reply With Quote
  #5  
Old 09-25-2001, 03:33 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Kaimetsu


The trouble there is that it'd place the bomb without it being in transit first. If you had an NPC Server then it'd be easy - just use an NPC for the bomb. If not, then j00 sux anyway.
Reply With Quote
  #6  
Old 09-25-2001, 03:41 AM
NooseKnot NooseKnot is offline
Registered User
Join Date: Jun 2001
Location: Connecticut
Posts: 298
NooseKnot is on a distinguished road
he said throwbomb not put bomb.. god pay more attention:o
lol jk
__________________

Warrior of Darkness
Reply With Quote
  #7  
Old 09-25-2001, 03:51 AM
Guest
Posts: n/a
Not really that good, I could of added him throwing the bomb but i am to lazy...

PHP Code:
// NPC by Stefan Knorr - edited by Ice Pick
if (playertouchsme) {toweapons bomb2;
}

if (
weaponfired && playerbombs>0) {
  if (
playerdir=0) {
    
putbomb 1,playerx+0.5,playery-7;
  }
  if (
playerdir=1) {
    
putbomb 1,playerx-7,playery+1;
  }
  if (
playerdir=2) {
    
putbomb 1,playerx+0.5,playery+7;
  }
  if (
playerdir=3) {
    
putbomb 1,playerx+7,playery+1;
  }
  
playerbombs playerbombs-1;

Reply With Quote
  #8  
Old 09-25-2001, 04:13 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
An easy way to do it, would be to make a gani of the bomb gliding through the air, and then use putbomb.
Reply With Quote
  #9  
Old 09-25-2001, 04:13 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Kaimetsu


I didn't mean j00, I meant Helmut guy.
Reply With Quote
  #10  
Old 09-25-2001, 04:21 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
Yeah, hes going to have an npc that throws the bombs, he can set its gani to a gani of it throwing the bomb and the bomb hurtling through the air. The bomb going through the air would be part of the NPCs gani.

But this would mean it would have to wait for the bomb to land before throwing another one.
Reply With Quote
  #11  
Old 09-25-2001, 04:21 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
oh i thought he ment as a npcw.

but cant you use replacenai on a npc charcter and replace it with like bomb.gani
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 05:05 PM.


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