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-18-2001, 06:57 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
Putnpc2

How do you use Putnpc2 for P2P servers?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 12-18-2001, 07:17 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
putnpc2 x,y,{
script
};
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 12-18-2001, 08:17 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 so is it like

If (weaponfired) {
putnpc2 playerx+1,playery+1, {
Blah
};

?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #4  
Old 12-18-2001, 08:56 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by SSRobgeta
ok so is it like

If (weaponfired) {
putnpc2 playerx+1,playery+1, {
Blah
};

?
no putnpc2 can only work serverside
__________________
Thanks,
-KJL
Reply With Quote
  #5  
Old 12-18-2001, 08:58 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 KJS


no putnpc2 can only work serverside
I'm not use to this NPC Server stuff. How would I do it then?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #6  
Old 12-18-2001, 09:00 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by SSRobgeta

I'm not use to this NPC Server stuff. How would I do it then?
well you cant do it in weapons at all...

(well you can if you triggeraction to the npc server saying to create that npc)

but otherwise you have to do it in a npc without using //#CLIENTSIDE

and you can basically use it how you were using like

if(playertouchsme){
putnpc2 playerx,playery,{
if(created) setimg haticon.png
if(playertouchsme) say2 bah;
};
}
__________________
Thanks,
-KJL
Reply With Quote
  #7  
Old 12-18-2001, 09:16 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
So if I used triggeraction (which I know) I can make it shoot out a new arrow I made and not have the Script download onto peoples Comps?
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #8  
Old 12-18-2001, 09:28 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by SSRobgeta
So if I used triggeraction (which I know) I can make it shoot out a new arrow I made and not have the Script download onto peoples Comps?
Arrays and showimg, buddy
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #9  
Old 12-18-2001, 10:17 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
well the arrows wouldn't beable to change levels though...

putnpc2 only allows it to stay in teh same level
__________________
Thanks,
-KJL
Reply With Quote
  #10  
Old 12-18-2001, 07:15 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 KJS
well the arrows wouldn't beable to change levels though...

putnpc2 only allows it to stay in teh same level
I know
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #11  
Old 12-18-2001, 08:18 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
http://navarone.f2g.net/npcserver.rtf
Reply With Quote
  #12  
Old 12-19-2001, 12:09 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
could u do this?

NPC Code:

Database npc:
if (actionserverMakeHatWep) {
putnpc2 #p(0),#p(1) {
if (playertouchsme) toweapons Hat Weapon;
}
}
Weapon npc:
//#CLIENTSIDE
if (playertouchsme) toweapons Hat Maker;
if (weaponfired) triggeraction 0,0,serverMakeHatWep,playerx,playery;



would that work?!?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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 11:18 PM.


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