Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-21-2002, 02:34 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Triggeraction

Does anybody here know how to get triggeraction to work serverside? Cause for me it only works clientside. I have tried every serverside/clientside combination there is, and only sending clientside and recieving clientside works. Is there some special tag to go with it, like putting server in front of the action to send an action to the control NPC, to get it to work serverside?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #2  
Old 01-21-2002, 02:48 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
You have to put server before the action name on server-side scripts and then read the action with if (actionserveractioname)
  #3  
Old 01-22-2002, 12:51 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Slaktmaster
You have to put server before the action name on server-side scripts and then read the action with if (actionserveractioname)
Didn't work.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #4  
Old 01-24-2002, 09:33 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It should work the same, but you need to make sure
the npc actually has some size
(like use setshape 1,48,48 or setshape2) because
otherwise the npcserver thinks its a hidden npc
and doesn't get the action since 'triggeraction'
triggers actions on a special point
  #5  
Old 01-25-2002, 07:12 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Does Setshape need to be clientside or serverside? Cause it seems to only work clientside, so I had put it clientside. Let me try putting it serverside and testing the triggeraction...
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #6  
Old 01-25-2002, 07:19 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Yay! It worked. I also found out that you need to put setshape in both clientside and serverside. Clientside if you wanna change how the NPC blocks the player, and serverside for triggeraction and washit stuff. Stefan, you should add wasshot and waspelt to the serverside actions!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #7  
Old 01-25-2002, 07:26 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Stefan, could you also make it so you don't have to do showcharacter; to be able to use the washit function? Because washit only works if you call showcharacter; in the code.

*Edit*
On second thought, I can't seem to get washit to work anymore... =/ I called setshape 1,48,48; both serverside and clientside, and I called showcharacter; both serverside and clientside, AND I put:
if (washit) message Hit;
on the serverside portion of it.
Still no luck. =/ NPC Server hates me...
*Edit*
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #8  
Old 01-27-2002, 02:54 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
could u mix setshape and setshape2 together?

liek i just made this up...........
NPC Code:

if(created||initialized)
setshape 1,64,64;
if(actionblah)
attatchplayertoobj 0,someID;
//#CLIENTSIDE
if(playerenters)
setshape 4,4,{
22,22,22,22,
22,0,0,22,
22,0,0,22,
22,22,22,22};
if(playertouchsme) {
playerx=x+0.5;
playery=y+0.5;
triggeraction x,y,blah,;
}

__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
  #9  
Old 01-31-2002, 11:05 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes, on server-side use setshape, on
client-side use setshape or setshape2.

That washit thing should work on both
client- and server-side. One thing that is
important is to give the npc power,
like hearts = 3; otherwise the server/client
thinks its a dead npc
  #10  
Old 02-01-2002, 06:59 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Stefan
Yes, on server-side use setshape, on
client-side use setshape or setshape2.

That washit thing should work on both
client- and server-side. One thing that is
important is to give the npc power,
like hearts = 3; otherwise the server/client
thinks its a dead npc
Oh, ok. Thanks Stefan.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #11  
Old 02-05-2002, 05:42 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
THis has nothing to do with your post boco but i contributed alot to your foundation but you never did add my contributions to it!!!! (BOCO=MAKES GOBOOM CRY) :grrr:
__________________
  #12  
Old 02-05-2002, 06:43 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Goboom
THis has nothing to do with your post boco but i contributed alot to your foundation but you never did add my contributions to it!!!! (BOCO=MAKES GOBOOM CRY) :grrr:
Um, the Hey Stefan, Give Kaimetsu An Account Foundation?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
 


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 02:50 PM.


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