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 05-05-2007, 12:50 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
stop spazzing out....
i just took out the celent side and that makes it server side, right?
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 05-05-2007, 01:00 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by theHAWKER View Post
stop spazzing out....
i just took out the celent side and that makes it server side, right?
Look, your code is ****. You took great code from Gambet, erased his name and put your own on it, and then cry to us when it doesn't work.

Firstly, IT IS SERVERSIDE!

Secondly, MAKE A CLASS!

Thirdly, DO NOT MIX GS1 AND GS2!

Go to RC, go to classes, than create a new class. Name it "baddy". In that class, put Gambet's GBaddy. Then put this in a level.

PHP Code:
function onPlayerChats()
{
  if ( 
player.chat == "/baddy" )
  {
    
putnpc2player.xplayer.y"join( \"baddy\" ); ");
  }

Please take the time to look at the wiki and learn GS2, then maybe we won't all have to cry whenever you post.

EDIT:

Quote:
Originally Posted by Bl0nkt View Post
LOL
I second that.
__________________
Reply With Quote
  #3  
Old 05-05-2007, 01:21 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
[/QUOTE]

Quote:
Originally Posted by cbkbud View Post
Look, your code is ****. You took great code from Gambet, erased his name and put your own on it, and then cry to us when it doesn't work.

Firstly, IT IS SERVERSIDE!

Secondly, MAKE A CLASS!

Thirdly, DO NOT MIX GS1 AND GS2!

Go to RC, go to classes, than create a new class. Name it "baddy". In that class, put Gambet's GBaddy. Then put this in a level.

PHP Code:
function onPlayerChats()
{
  if ( 
player.chat == "/baddy" )
  {
    
putnpc2player.xplayer.y"join( \"baddy\" ); ");
  }

Please take the time to look at the wiki and learn GS2, then maybe we won't all have to cry whenever you post.

EDIT:


I second that.
that worked thank you soo much.

but how do i delete an npc?
__________________
**FLIP OUT**
Reply With Quote
  #4  
Old 05-05-2007, 01:36 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by theHAWKER
that worked thank you soo much.

but how do i delete an npc?
Find the index of the NPC (usually npcscount-1):

PHP Code:
with (findNpc(npcs[npcscount-1]))
{
     
destroy();

__________________
What signature? I see no signature?
Reply With Quote
  #5  
Old 05-05-2007, 01:04 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Quote:
Originally Posted by theHAWKER View Post
stop spazzing out....
i just took out the celent side and that makes it server side, right?
It's not the fact I'm spazzing out, it's the fact that if you're asking people questions like the latter, then I suggest you take some time out to actually study before you dive right in.

Now where's Inverness to tell me I need to learn to script first?
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #6  
Old 05-05-2007, 01:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by killerogue View Post
It's not the fact I'm spazzing out, it's the fact that if you're asking people questions like the latter, then I suggest you take some time out to actually study before you dive right in.

Now where's Inverness to tell me I need to learn to script first?
Don't worry, he's coming. I called him on my gPhone.
__________________
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 09:31 AM.


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