Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   ??? (https://forums.graalonline.com/forums/showthread.php?t=18092)

Saga2001 11-28-2001 11:34 PM

???
 
so if i wanted to trigger servergetchat, and the npc saying:
NPC Code:

if (actionservergetchat) {
actions...
}


thanthe npc would call:
NPC Code:

if (playerchats) triggeraction playerx+1.5,playery+2,servergetchat,#a;


?!?!?!?!

can someone answer if this would work for p2p? i need to make sure that thats all i need to fix...i am fairly new to p2p

LiquidIce00 11-29-2001 03:39 AM

yes, but the if (actionserver... part would go in the control npc.
since server actions are called to it.

BocoC 11-29-2001 06:53 AM

Re: ???
 
Quote:

Originally posted by Saga2001
so if i wanted to trigger servergetchat, and the npc saying:
NPC Code:

if (actionservergetchat) {
actions...
}


thanthe npc would call:
NPC Code:

if (playerchats) triggeraction playerx+1.5,playery+2,servergetchat,#a;


?!?!?!?!

can someone answer if this would work for p2p? i need to make sure that thats all i need to fix...i am fairly new to p2p

NPC Code:

it (playerchats) {
triggeraction 0,0,servergetchat,#a;
}


I think the X and Y have to be 0. Works when it is, so I dunno.

Saga2001 11-29-2001 02:03 PM

ok...
 
yeah i got from pikaz that it was 0,0 but its not working...
and i can't figure out y...
if anyone could help me out a little with fixing it, i would be overly greatful...
i am fairly new to npcserver...
AIM: PastAustin
MAIL: [email protected]
thanks! :)

mikepg 11-30-2001 04:18 AM

well
 
when im scripting stuff like that, If you stay in the same level as the NPC, the x,y stays where you put it. If it is a weapon, and you leave the level, the x,y automatically goes to 0,0. Thats why, if you had a weapon that played a sound before play2 came out, it sounded far away sometimes.

Andor_NPC-Admin1 11-30-2001 07:00 AM

Re: ok...
 
Quote:

Originally posted by Saga2001
yeah i got from pikaz that it was 0,0 but its not working...
and i can't figure out y...
if anyone could help me out a little with fixing it, i would be overly greatful...
i am fairly new to npcserver...
AIM: PastAustin
MAIL: [email protected]
thanks! :)

You're chat thing still not working?
Did u make it as a regular NPC instead of a weapon, like i said b4?


All times are GMT +2. The time now is 05:13 PM.

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