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 07-25-2001, 12:08 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
Pet?

What would be the best way to do this?

If you make a dog that you want to follow you around shold you use

1.Follow player and canwarp;

or

2.Make it so that it stays exactly 2 x and/or 2 ys away?

I have the gifs for a dog (not the actual pet) and I want it so that it stays about as far from a player as a bomy does when it follows. How would I do this?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #2  
Old 07-25-2001, 12:52 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
I would be happy if someone responds
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #3  
Old 07-25-2001, 02:47 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by ownerofbabylon
I would be happy if someone responds
or you could just be polite and wait patiently for a reply
__________________
Reply With Quote
  #4  
Old 07-25-2001, 09:12 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
LOL, good idea.

Well, here is what I have


if(created){
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
}
if(playerdir==0){
setimg up.gif;
}
if(playerdir==1){
setimg left.gif;
}
if(playerdir==2){
setimg down.gif;
}
if(playerdir==3){
setimg right.gif;
}

For some reason it wont change the graphic when the player does. I asked Shadrock and he said to use functions because followplayer is bad so if anyone can get this working I would be happy. See ---->

But seriously does anyone know whats wrong??
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #5  
Old 07-25-2001, 09:22 AM
Darkspector Darkspector is offline
Registered User
Join Date: May 2001
Location: under the newjersey turnpike in a styrfoam box
Posts: 380
Darkspector is on a distinguished road
Send a message via ICQ to Darkspector
make a guinea pig in a cage
__________________
[img]ftp://dragonlance.keenspace.com/20020902.gif[/img]
Reply With Quote
  #6  
Old 07-25-2001, 10:37 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
heh =D good idea
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #7  
Old 07-25-2001, 10:38 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
I have got a pet script for Frogs Rabites and Chickens
Reply With Quote
  #8  
Old 07-25-2001, 10:41 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
me too but i didnt look at them. What do they do?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #9  
Old 07-25-2001, 10:51 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
OMg like I made dogs and cants and chicken pets on ToT =D And they eat stuff and go night night and I thought it was cool untill Mr. High and Mighty popeple steal the GFX >=(

NO MORE STEALING PLEASE!
__________________

subliminal message: 1+1=3
Reply With Quote
  #10  
Old 07-25-2001, 10:53 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
Sounds cool, are u a good scripter?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #11  
Old 07-25-2001, 04:29 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
The playerdir checks need to be in a timeout loop.
__________________

Reply With Quote
  #12  
Old 07-25-2001, 11:12 PM
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
uh oh, I dont know how to do timeouts right.

is it like


if(created){
timeout=.5;
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
}
if(playerdir==0){
timeout=.5
setimg up.gif;
}
if(playerdir==1){
timeout=.5
setimg left.gif;
}

?? something like that? I understand how they work but I have never used them and im not sure what part goes where.
if(playerdir==2){
timeout=.5
setimg down.gif;
}
if(playerdir==3){
timeout=.5
setimg right.gif;
}
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #13  
Old 07-25-2001, 11:19 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally posted by ownerofbabylon
LOL, good idea.

Well, here is what I have


if(created){
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
}
if(playerdir==0){
setimg up.gif;
}
if(playerdir==1){
setimg left.gif;
}
if(playerdir==2){
setimg down.gif;
}
if(playerdir==3){
setimg right.gif;
}

For some reason it wont change the graphic when the player does. I asked Shadrock and he said to use functions because followplayer is bad so if anyone can get this working I would be happy. See ---->

But seriously does anyone know whats wrong??
LOL!!!!!!!!!!!!!
duh you need aloop like this:

if(created){
setimg idle.gif;
}
if(playerchats&&strequals(#c,come)){
followplayer;
set dogfollow;
}
while (dogfollow) {
if(playerdir==0){
setimg up.gif;
}
if(playerdir==1){
setimg left.gif;
}
if(playerdir==2){
setimg down.gif;
}
if(playerdir==3){
setimg right.gif;
}
if (playersays(stop)) {
unset dogfollow;
}
sleep 0.05;
}

ok!
__________________
Do it with a DON!
Reply With Quote
  #14  
Old 07-25-2001, 11:21 PM
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
=D thank you. Now i feel like an idiot. I am not good with loops or anything like that but im learning from looking at post with code in them on the message board =D

Thanks again Zokemon.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #15  
Old 07-25-2001, 11:22 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
np
i script stuff like that all the time
__________________
Do it with a DON!
Reply With Quote
  #16  
Old 07-25-2001, 11:23 PM
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
I got one more question.

What if you wanted to make a dog do the same thing as bomys do? What I mean is like you know how when you say somthing bomys stop following you? Then they go and stay (or wander) a level until you get back. How would you make it so the server kept them on a level even when the person was not online and playing?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #17  
Old 07-26-2001, 11:58 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Quote:
Originally posted by ownerofbabylon
I got one more question.

What if you wanted to make a dog do the same thing as bomys do? What I mean is like you know how when you say somthing bomys stop following you? Then they go and stay (or wander) a level until you get back. How would you make it so the server kept them on a level even when the person was not online and playing?
You would need to make it so when the "dog" recieved the command "walk" or something then it would set its x to x and its y to y, and then go into a "walk mode" where it choose a random direction and takes a few steps and then chooses again.. (check the human npc random walking in the editor)

To keep them on seperate levels, you need an NPC SERVER. =)

Also try not to post several topics related to the exact same thing please.

Email me and I can give you some script examples that might help you out
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #18  
Old 07-27-2001, 06:45 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
Alright, I will talk to ya on AIM or email soon. Right now im at a friends house and im going to a huge concert tommorow (Vans Warped Tour) but I will go home that night and contact you. Thanks alot man!!!
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
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 10:02 PM.


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