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 12-29-2001, 11:49 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Follow Player

This may soon really stupid. but I never looked into it. How do I make something stop following a player with Followplayer comand?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 12-29-2001, 11:52 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
set the x and y co-ordinates
and if your using it for something online the followplayer command wont work
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 12-29-2001, 11:56 PM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by AlexH
set the x and y co-ordinates
and if your using it for something online the followplayer command wont work
\
Then what could I do?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #4  
Old 12-29-2001, 11:57 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
make your own follow player script
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #5  
Old 12-30-2001, 12:03 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Ok, but is there any commands for P2P servers that I can add with NPC Server? Like canwarp?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #6  
Old 12-30-2001, 12:05 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by SSRobgeta
Ok, but is there any commands for P2P servers that I can add with NPC Server? Like canwarp?
oh if your using NPC Server i dunno if followplayer works
i thought you were makin it non p2p where followplayer doesnt work
try asking a p2p owner if followplayer works with NPC Server
i no less than nothing about p2p scripting
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #7  
Old 12-30-2001, 12:18 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by AlexH


oh if your using NPC Server i dunno if followplayer works
i thought you were makin it non p2p where followplayer doesnt work
try asking a p2p owner if followplayer works with NPC Server
i no less than nothing about p2p scripting
Ahh ok.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #8  
Old 12-30-2001, 04:50 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
NPC Code:

if (playerenters&&!isweapon) { toweapons test; }
if (weaponfired) { timeout=.1; }
if (timeout) {
//here we say if the length of the array
//of stepx is 0 we need to make it an array
if (arraylen(stepsx)=0) { init(); }
if (playerx!=stepsx[0]||playery!=stepsy[0]) {
movearray();
record();
}
show();
timeout=.1;
}
function init() {
//here we set the stepsx array to 5
//remember it only goes up to 4
//since it starts at 0
setarray stepsx,5;
setarray stepsy,arraylen(stepsx);
}
function movearray() {
//here we move the array
//we start at 4 and we go
//to 1 , everytime moving it back one.
//for example if stepsx[3] is 3 and stepsx[2]
//is 4,
//it will set stepsx[4] to 3 and stepsx[3]
//to 4 and so on
for (this.i=arraylen(stepsx)-1;this.i>0;this.i--) {
stepsx[this.i]=stepsx[this.i-1];
stepsy[this.i]=stepsy[this.i-1];
}
}
function record() {
//record current player position to 0
stepsx[0]=playerx;
stepsy[0]=playery;
}

function show() {
showimg 1,shadoworb.gif,stepsx[arraylen(stepsx)-1],stepsy[arraylen(stepsy)-1];
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #9  
Old 12-30-2001, 08:44 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
join followers;

have fun!
Reply With Quote
  #10  
Old 12-31-2001, 12:18 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Look for my old script on here, it had three different ways for an NPC to follow the player, easily changeable by messing with a variable in the created portion.
Reply With Quote
  #11  
Old 12-31-2001, 01:56 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by kyle0654
Look for my old script on here, it had three different ways for an NPC to follow the player, easily changeable by messing with a variable in the created portion.
Where would that be?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #12  
Old 12-31-2001, 02:08 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by SSRobgeta

Where would that be?
somewhere in this forum (or the other NPC one). I uploaded it a long time ago. Try doing a search.
Reply With Quote
  #13  
Old 12-31-2001, 02:11 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Quote:
Originally posted by kyle0654

somewhere in this forum (or the other NPC one). I uploaded it a long time ago. Try doing a search.
Ok thx.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
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 08:54 PM.


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