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
  #16  
Old 08-24-2002, 12:11 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Quote:
Originally posted by user13-xo


The ring wouldnt work since the action part is part of the weapon The action would have to be in the control npc for that to work. But having that in the control npc isnt very good since it gets very confusing later.

NPC Code:

if (actionserverside) setlevel2 onlinestartlocal.graal,30,30;
//#CLIENTSIDE
if (weaponfired) {
triggeraction playerx+1.5,playery+2,serverside,Warp Ring,0;
}



If the weapon name is Warp Ring, the ring will warp the player to onlinestartlocal with the x and y at 30. That script is a weapon and nothing needs to be placed in the Control-NPC.
x.X You REALLY don't know the NPC server too well do you?
here is the coding
NPC Code:

triggeraction 0,0,serverside,[weapon name],params;


0,0 makes it read from the server side, vs. doing a REGULAR triggeraction. If you put in a weapon name, and that weapon has if (actionserverside) in it, it will work! I know what I'm talking about x.X
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
  #17  
Old 08-24-2002, 02:18 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by emortylone


x.X You REALLY don't know the NPC server too well do you?
here is the coding
NPC Code:

triggeraction 0,0,serverside,[weapon name],params;


0,0 makes it read from the server side, vs. doing a REGULAR triggeraction. If you put in a weapon name, and that weapon has if (actionserverside) in it, it will work! I know what I'm talking about x.X
---Shifter
Didn't know since before Babylon NPC server has problems
  #18  
Old 08-25-2002, 12:15 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOL... if you would like perhaps I can help you out a bit? Right now I am REALLY going to try and get on a 2k1 or 2k2 server, but I have some free time. If you'd like me to come on and help out I would be MORE than happy to... just send me a forum PM and lemme know XP
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
 


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 05:17 AM.


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