Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #46  
Old 06-30-2003, 07:26 AM
James James is offline
LOCAL DOUCHEBAG
James's Avatar
Join Date: Aug 2001
Location: Oregon
Posts: 3,132
James is a splendid one to beholdJames is a splendid one to beholdJames is a splendid one to beholdJames is a splendid one to behold
Send a message via AIM to James
Quote:
Originally posted by Judge_S
Well, it shouldn't be that difficult.

I can't do much with scripting, but wouldn't something like this work?

NPC Code:

if (playerchats&&strequals(#c,Non PK Zone)) {
disableweapons;
}



Keep in mind, that I don't even know if this works, seeing as I haven't done real coding in about a year, and as I don't know which commands have been changed, edited, or disabled.
I'm pretty sure that'd just disable your own wNPCs.
__________________

JAMES BAY PACKERS
2011 FANTASY FOOTBALL CHAMPIONS
2012 FANTASY FOOTBALL CHAMPIONS


“If I can slow it down in my mind... things will be fine."

-Aaron Rodgers
2011's NFL Most Valuable Player




Reply With Quote
  #47  
Old 06-30-2003, 10:36 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by osrs
Just a question:
When you talk to a GST member to help you to fix a script,the member must fix the script for you or just give a suggestion about how to fix it?
There is no requirement of how much they should help you other than to the best of their ability answer your questions. It is to my knowedge their perrogative how much they help you and how much you must do on your own - I'm a big advocate of teaching people to fish instead of catching fish for them.
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #48  
Old 07-23-2003, 10:31 PM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
James is right, Judge. You need to throw in a for loop that would disable all the players on the level. Personally, I would make a serverside npc that does a for loop and uses with.
Reply With Quote
  #49  
Old 07-27-2003, 07:28 AM
zs0 zs0 is offline
pothed 5lyf
zs0's Avatar
Join Date: May 2002
Location: o_o
Posts: 1,008
zs0 is on a distinguished road
Quote:
Originally posted by tlf288



It seems like Loriel is forgotton a lot.
Poor guy. When I used to talk to him he was really nice.. o_o

I thought there was one more GST though
__________________




Quote:
Originally Posted by Scott
GREAT AND I THOUGHT IT WAS BLOODY SPECIAL, THANKS GUYS FOR REMOVING ANY INDIVIDUALITY I MIGHT OF ONCE HAD. GOD THE WORD REVOVLES AROUND YOU DOESN'T IT? SCOTT CAN'T HAVE ONE BIT OF FUN. ZEN THIS. MYKEL THAT. DEEK BLAH BLAH. OMFG. IM GOING TO SLIT MY WRISTS!!!
Reply With Quote
  #50  
Old 07-27-2003, 07:38 AM
Tseng Tseng is offline
Sublime
Tseng's Avatar
Join Date: Jan 2003
Location: California
Posts: 0
Tseng is on a distinguished road
Quote:
Originally posted by zs0


Poor guy. When I used to talk to him he was really nice.. o_o

I thought there was one more GST though
Global Scripting Team Members:

Kaimetsu
Angel
Jagen
Tseng
Loriel
Projectshifter
__________________
Funny Things:
Quote:
Originally posted by Stefan
I didn't ban you, I only played a little bit with my RC.
-----
Reply With Quote
  #51  
Old 08-10-2003, 06:30 PM
Destorm Destorm is offline
Owner of Leviathan?
Destorm's Avatar
Join Date: Apr 2003
Location: England
Posts: 161
Destorm is on a distinguished road
Send a message via AIM to Destorm
So is there like tryouts or anything for GST ?
__________________

-Make sure you lock every thread you can Mods-
Reply With Quote
  #52  
Old 08-11-2003, 02:07 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
angel's on gst? huh, never knew that ^_^
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #53  
Old 08-17-2003, 04:35 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
It seems that most people (GST) don't have time to do these requests anymore, so for anyone who is interested, go sign up at:
www.gscript.us

Those forums are dedicated to GScript, and Gscript only, and you may request full NPCs there too.
__________________
(Married to Skyld)
Reply With Quote
  #54  
Old 08-19-2003, 03:17 AM
HunterTerryon HunterTerryon is offline
Registered User
Join Date: Aug 2003
Posts: 168
HunterTerryon is on a distinguished road
Post I NEED HELP BADLY

Ok heres the deal: I need a hardcoded tile set like eras or bravos or well you know.The problem is my NATS are clueless and I really need help because gfx is my thing Im making the tile set but it wont be compatable with pics one.And I tried copying eras and redoing it to fit my needs but it seems the hard code didnt copy over.Now if anyone could give me any tips or hardcode a image for me I would be very greatfull.

-Delta
Reply With Quote
  #55  
Old 08-19-2003, 06:14 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Re: I NEED HELP BADLY

Quote:
Originally posted by HunterTerryon
Ok heres the deal: I need a hardcoded tile set like eras or bravos or well you know.The problem is my NATS are clueless and I really need help because gfx is my thing Im making the tile set but it wont be compatable with pics one.And I tried copying eras and redoing it to fit my needs but it seems the hard code didnt copy over.Now if anyone could give me any tips or hardcode a image for me I would be very greatfull.

-Delta
I don't really know what you are talking about, but I am pretty sure you have to use the predifined one.
__________________
(Married to Skyld)
Reply With Quote
  #56  
Old 08-19-2003, 07:11 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Re: I NEED HELP BADLY

Quote:
Originally posted by HunterTerryon
Ok heres the deal: I need a hardcoded tile set like eras or bravos or well you know.The problem is my NATS are clueless and I really need help because gfx is my thing Im making the tile set but it wont be compatable with pics one.And I tried copying eras and redoing it to fit my needs but it seems the hard code didnt copy over.Now if anyone could give me any tips or hardcode a image for me I would be very greatfull.

-Delta
if your NATs don't know how to do a tiledef get new NATs...
Reply With Quote
  #57  
Old 08-19-2003, 09:12 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
rofl amen to that jagen
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #58  
Old 08-19-2003, 08:24 PM
HunterTerryon HunterTerryon is offline
Registered User
Join Date: Aug 2003
Posts: 168
HunterTerryon is on a distinguished road
They know how to do that but the tiles I made arent compatible with picsone so I need to use another image,a hard coded one like the nw one or era one or bravos old one...
Reply With Quote
  #59  
Old 09-07-2003, 07:38 AM
Gravis2k Gravis2k is offline
Registered User
Join Date: Jun 2003
Location: AR
Posts: 52
Gravis2k is on a distinguished road
Send a message via ICQ to Gravis2k Send a message via AIM to Gravis2k Send a message via Yahoo to Gravis2k
Flying npc

Server: Laysuf
Account: Gravis2k
Position: Admin
NPC Server? True
NPC: I need a npc that when transformed into a bird and flying it wont stop when the button is let go but glide slowly to a stop also to be able to fly over walls and buildings (which could be turned on and off by flags) and to have a higher speed then normal walking
Date: When ever, i'm in no rush for it.

Below i will paste what i have done so far which is setting the gani's to each ani and the land and fly options, please feel feel to make this better if you like

NPC Code:
//#CLIENTSIDE

if (weaponfired){
if (this.on==0) {
playerdir=2;
setani birdtransform,;
replaceani idle,birdidle1;
replaceani sword,birdattack3;
replaceani walk,birdidle1;
replaceani sit,birdidle1;
replaceani pull,birdidle1;
replaceani push,birdidle1;
replaceani swim,birdidle1;
this.on=1;
}
else if (this.on==1){
playerdir=2;
setani birdreform1,;
replaceani idle,idle;
replaceani sword,sword;
replaceani walk,walk;
replaceani sit,sit;
replaceani pull,pull;
replaceani push,push;
replaceani swim,swim;
this.on=0;
}
}


if (playerchats){
if (strequals(#c,land)){
setplayerprop #c,:escends slowly::;
setani birdland2,;
replaceani sit,birdsit1;
disabledefmovement;
}


else if (strequals(#c,fly)){
setplayerprop #c,::Rises rapidly into the air::;
setani birdfly5,;
replaceani sit,birdidle;
enabledefmovement;
}
}

__________________
My first roll on Kingdoms
Reply With Quote
  #60  
Old 09-08-2003, 05:14 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Spark910


Should be +Ningnong too!
And me!
Oh wait no. I'm not good enough, lol.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:35 PM.


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