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 04-18-2007, 04:42 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
Cool If you cant see it it cant be there...

If you cant see it it cant be there, at least thats what it looks like...

I'm trying to make a hole in the ground, BUT your not sapost to go down from the top, so to stop people from going down there i put an invisable block, but it wont work.
this is my script for the block:
PHP Code:
// NPC made by theHAWKER is a
if (created) {y-=.01;
drawaslight;
}
//#CLIENTSIDE
if (playerenters) {
  
setcoloreffect 1,1,1,0.01;

can someone help me out?
__________________
**FLIP OUT**
Reply With Quote
  #2  
Old 04-18-2007, 04:45 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
I give up.
__________________


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
  #3  
Old 04-18-2007, 04: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
Quote:
Originally Posted by killerogue View Post
I give up.
are you giving up cause ur fed up? or has my gienous(however spelt) over powerd you?
__________________
**FLIP OUT**
Reply With Quote
  #4  
Old 04-18-2007, 04:55 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
No. Because you have the online opportunities that aren't available to every newbie scripter who wants to be good. I don't understand why you don't utilize them to learn a better twice as efficient language, aptly GS2.
__________________


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
  #5  
Old 04-18-2007, 04:56 AM
smirt362 smirt362 is offline
Tee Hee
smirt362's Avatar
Join Date: Feb 2005
Location: Texas
Posts: 2,101
smirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant futuresmirt362 has a brilliant future
Send a message via AIM to smirt362 Send a message via MSN to smirt362
If you want an invisible block why not use setshape?
__________________

Don Hertzfeldt <3
Reply With Quote
  #6  
Old 04-18-2007, 04:59 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Perhaps it's better if you do give up. It's his/her choice to either learn GS1 or GS2, and really not something that needs to be argued every single time they make a post. It's kind of tiresome.
Edit: ya, setshape seems the best option.
setshape 1,widthinpixels,heightinpixels;
Reply With Quote
  #7  
Old 04-18-2007, 07:09 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
You do realize that what script you posted will move the npc up 0.1 tiles everytime you call "created", right?
__________________
Do it with a DON!
Reply With Quote
  #8  
Old 04-18-2007, 07:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
"Created" will only be called when the NPC is created(unless manually called), and it's y placement will be reset to it's original placement when it's created, so it's not like it's going to keep moving.
Reply With Quote
  #9  
Old 04-18-2007, 07:38 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
You don't know that...If it was a database npc, the position would not be reset.
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 04-18-2007, 08:44 PM
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 View Post
If you cant see it it cant be there, at least thats what it looks like...

I'm trying to make a hole in the ground, BUT your not sapost to go down from the top, so to stop people from going down there i put an invisable block, but it wont work.
this is my script for the block:
PHP Code:
// NPC made by theHAWKER is a
if (created) {y-=.01;
drawaslight;
}
//#CLIENTSIDE
if (playerenters) {
  
setcoloreffect 1,1,1,0.01;

can someone help me out?
PHP Code:
if (created)
{
setshape 1,3232;

__________________
What signature? I see no signature?
Reply With Quote
  #11  
Old 04-18-2007, 10:52 PM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
the setshape would have to be clientside to block, no?
unless this is offline..
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #12  
Old 04-18-2007, 11:10 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
From what I recall, setshape is serverside, to set the block for all players.
Reply With Quote
  #13  
Old 04-18-2007, 11:23 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
setShape() is independent on the clientside and serverside. Its required on both sides for use with triggerAction()

And like Stan said, you really need to learn to use GS2 if you have the online access. GS1 has much less logic to it.
__________________
Reply With Quote
  #14  
Old 04-19-2007, 12:33 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
Talking

Quote:
Originally Posted by godofwarares View Post
PHP Code:
if (created)
{
setshape 1,3232;

Thank you
__________________
**FLIP OUT**
Reply With Quote
  #15  
Old 04-20-2007, 06:32 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
setShape() is independent on the clientside and serverside. Its required on both sides for use with triggerAction()

And like Stan said, you really need to learn to use GS2 if you have the online access. GS1 has much less logic to it.
GS1 has a lot of logic...it just is a bad way to use it
__________________
Do it with a DON!
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 08:18 AM.


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