Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Putnpc2 (https://forums.graalonline.com/forums/showthread.php?t=19141)

SSRobgeta 12-18-2001 06:57 AM

Putnpc2
 
How do you use Putnpc2 for P2P servers?

Falcor 12-18-2001 07:17 AM

putnpc2 x,y,{
script
};

SSRobgeta 12-18-2001 08:17 AM

ok so is it like

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

?

KJS 12-18-2001 08:56 AM

Quote:

Originally posted by SSRobgeta
ok so is it like

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

?

no putnpc2 can only work serverside

SSRobgeta 12-18-2001 08:58 AM

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?

KJS 12-18-2001 09:00 AM

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;
};
}

SSRobgeta 12-18-2001 09:16 AM

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?

Xaviar 12-18-2001 09:28 AM

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

KJS 12-18-2001 10:17 AM

well the arrows wouldn't beable to change levels though...

putnpc2 only allows it to stay in teh same level

SSRobgeta 12-18-2001 07:15 PM

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

btedji 12-18-2001 08:18 PM

http://navarone.f2g.net/npcserver.rtf

Saga2001 12-19-2001 12:09 AM

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?!? :confused:


All times are GMT +2. The time now is 09:50 AM.

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