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
  #41  
Old 02-03-2004, 03:23 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
replaceani walk,newgani;
Didn't you find that?
__________________
V$:CONFL16T
Reply With Quote
  #42  
Old 02-03-2004, 03:23 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Re: Triggeraction

Quote:
Originally posted by Gman4pwnu
Can a trigger action detect an NPC thats in a players inventory?
No.
__________________
V$:CONFL16T
Reply With Quote
  #43  
Old 02-03-2004, 03:33 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Re: Triggeraction

Quote:
Originally posted by Gman4pwnu
Can a trigger action detect an NPC thats in a players inventory?

Sorry for all the posts, but im not jus goin 2 cram em all into one
what do you mean with detect?
__________________
-Kjetil Valen
Reply With Quote
  #44  
Old 02-03-2004, 04:34 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Re: Re: Triggeraction

Quote:
Originally posted by WanDaMan

No.
Yes.

Quote:
Originally posted by VeX_RaT_Boy

what do you mean with detect?
Using triggeraction for detect specifieds weapons, i believe.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #45  
Old 02-03-2004, 04:36 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Read Stefan's post, here.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #46  
Old 02-03-2004, 04:38 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
I think you should stop posting questions for every single script that you want to make.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #47  
Old 02-03-2004, 04:43 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Learn the basic first, what you're trying to script is pretty basic and you have troubles with it, so..

LEARN TO WALK BEFORE YOU TRY TO RUN.

Okay?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #48  
Old 02-03-2004, 05:00 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Since there are no real tutorials.
There is no way to learn.

What stefan says makes perfect sense.

If your on a playerworld and suddently the npc server crashes, the clientside scripts still run becouse it already sent them to you, but the client runs them. If you come on afterwords nothing happens at all, becouse it can't send them to you.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #49  
Old 02-03-2004, 05:27 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Yes, osrs but I don't think he means that.. I think he means other weapons aswell as the current weapon? (I don't know if you can either way)...
__________________
V$:CONFL16T
Reply With Quote
  #50  
Old 02-03-2004, 05:28 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
That's hit points (HP) not weapons.. But It's good because it says the detection
__________________
V$:CONFL16T
Reply With Quote
  #51  
Old 02-03-2004, 05:30 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
It's not against the rules, it isn't exactly spamming.. But he could of put them all in one :-)
__________________
V$:CONFL16T
Reply With Quote
  #52  
Old 02-03-2004, 08:39 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by WanDaMan
It's not against the rules, it isn't exactly spamming.. But he could of put them all in one :-)
It's called lazyness, he can make a script without make questions?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #53  
Old 02-03-2004, 08:41 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by WanDaMan
That's hit points (HP) not weapons.. But It's good because it says the detection
Quote:
but I really have no clue on hit detection. =\
That's what he wants to know. -_-
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #54  
Old 02-03-2004, 08:42 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by WanDaMan
Yes, osrs but I don't think he means that.. I think he means other weapons aswell as the current weapon? (I don't know if you can either way)...
'Can a trigger action detect an NPC thats in a players inventory? '

Yes, he can.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #55  
Old 02-03-2004, 08:44 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by osrs


'Can a trigger action detect an NPC thats in a players inventory? '

Yes, he can.
But what if the triggeraction is intended to be for another NPC not the one with the triggeraction in?
__________________
V$:CONFL16T
Reply With Quote
  #56  
Old 02-03-2004, 08:47 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Yeah I edited if you see O.o!
__________________
V$:CONFL16T
Reply With Quote
  #57  
Old 02-03-2004, 08:49 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by osrs


It's called lazyness, he can make a script without make questions?
Thats a rhetorical question !
(Don't know spelling)
__________________
V$:CONFL16T
Reply With Quote
  #58  
Old 02-03-2004, 09:06 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Try fooling arround with Sin&Cos, then use some script to setfocus a part of the destination where the next mark would be, and leave it run around wild. Using setfocus, of course...

Erm... Wrong question answered. Make the topic more on topic: use TIMEOUT, and drunklevel --. I think that's it... Wavy Vision is expressed in first answer, decreasing of drunk level in other.
__________________
- Rance Vicious
Reply With Quote
  #59  
Old 02-03-2004, 09:26 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
Try using light effects
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #60  
Old 02-03-2004, 10:23 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
Quote:
Originally posted by Gman4pwnu
So how would I do a lights on / off script for everyone to see? A triggeraction from server to client?

Also, if I select an image for the npc, do I need to set a shape?
For lights: You can still show/hide the npc on serverside, the visibility information is sent to all players

When you do setimg then the npcserver is by default reading the beginning of the image (gif or png) to get the image size, and is automatically setting the shape size so playertouchsme etc. is working. That has been added 4 months ago. Also imgwidth(filename) and imgheight(filename) are working now on serverside.
Reply With Quote
  #61  
Old 02-03-2004, 10:23 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
I had no clue on what commands might be used for a wavy vision effect, sorry for asking a question, i will no longer ask any questions. I will stay semi stupid on scripting.
Reply With Quote
  #62  
Old 02-03-2004, 10:26 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
This is related to a custom hp system that im tryin to make. For hit detection, if the other player is carrying an npc that has the hit detection script, if the player swings the npc sword, can it send a triggeraction to the x,y and if the player is on the xy and has the detection npc?
Reply With Quote
  #63  
Old 02-03-2004, 10:30 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Thank you for your help stefan, I wish there were some guides that teach scripting in the way Accelerated C++ taught C++.

Pretty much it tells you what your trying to do, it gives you the code, and then it breaks it down to tell you what each command does.
Reply With Quote
  #64  
Old 02-03-2004, 10:31 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
x-x just ask and ignore stupid answers

something like that would be good i guess (does wavy effect when someone touchs the npc)

NPC Code:

if (playertouchsme) {
this.waveangle = 0;
for (this.i=0; this.i<5; this.i+=0.05) {
setfocus playerx+1.5+sin(this.waveangle)*3,playery+2;
this.waveangle += 0.2;
sleep 0.05;
}
resetfocus;
}



I have not tested this but it should work. Change the 'this.waveangle += 0.2' line to some other value to get different waving speed
Reply With Quote
  #65  
Old 02-03-2004, 10:32 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
hopefully the last one! modifying player speed

The only way I know to modify the player's speed is to increase the x and y they move everytime they hit the arrow keys, im wondering if theres a flag or something that stores the playerspeed? Or some other way?
Reply With Quote
  #66  
Old 02-03-2004, 10:34 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
On Graal Classic you go walk weird when hit with a bowling ball

I thought you ment drunk as in, you see flashes in front of your eyes, and stuff o.o;;
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #67  
Old 02-03-2004, 10:35 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
Yes, that's the way it's used clientside
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #68  
Old 02-03-2004, 10:37 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 Termina_Owner


This is hilarious. I should check Stefan's posts more often
Stefan thinks the NPCserver has real feelings and can get bored
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #69  
Old 02-03-2004, 10:51 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
No. You can use the level 3 shield as an increase in speed, otherwise you'd have to make your own movement system.
__________________
- Rance Vicious
Reply With Quote
  #70  
Old 02-03-2004, 11:22 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Gman4pwnu
This is related to a custom hp system that im tryin to make. For hit detection, if the other player is carrying an npc that has the hit detection script, if the player swings the npc sword, can it send a triggeraction to the x,y and if the player is on the xy and has the detection npc?
Yes, that's how the shoot command works.
__________________
Reply With Quote
  #71  
Old 02-03-2004, 11:33 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Well hope the following helps, im going to go through trigonometry briefly:
In a unit circle (a circle with a radius of one), a point on the circles edge defined my an angle x has the coordinates (cos(x),sin(x)). If a larger circle is wanted, you multiply the coordinates by the number you want the radius to increase. I.E. if you want a circle with a radius of 5, the coordinate on the edge of the circle defined by angle x would be (5cos(x),5sin(x)). So the code should look something like this:
NPC Code:

//#CLIENTSIDE
if (created) {
loop=15; // number of times it circles
size=3; // size of the radius that the vision circles at
drunkeffect();
}
function drunkeffect() {
for(i=0;i<loop;i++) { // for loop that ensures that it circles (loop) times
for(j=0;j<360;j++) { // j=angle and i do believe gscript does not use radians
seteffect playerx+1.5+cos(j)*radius,playery+2+sin(j)*radius;
sleep .05;
}
}
resetfocus;
}

__________________
Reply With Quote
  #72  
Old 02-03-2004, 11:41 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Since it's a weapon hitobjects or hitplayer or hurt or something like that would be helpful heh?
__________________
Reply With Quote
  #73  
Old 02-03-2004, 11:49 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by Gman4pwnu
I had no clue on what commands might be used for a wavy vision effect, sorry for asking a question, i will no longer ask any questions. I will stay semi stupid on scripting.
You can ask, but not for every single script that you want to make, you should start since the basic stuff dude, it'll be better for you, trust me.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #74  
Old 02-04-2004, 12:36 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Quote:
Originally posted by ZeLpH_MyStiK
Well hope the following helps, im going to go through trigonometry briefly:
In a unit circle (a circle with a radius of one), a point on the circles edge defined my an angle x has the coordinates (cos(x),sin(x)). If a larger circle is wanted, you multiply the coordinates by the number you want the radius to increase. I.E. if you want a circle with a radius of 5, the coordinate on the edge of the circle defined by angle x would be (5cos(x),5sin(x)). So the code should look something like this:
NPC Code:

//#CLIENTSIDE
if (created) {
loop=15; // number of times it circles
size=3; // size of the radius that the vision circles at
drunkeffect();
}
function drunkeffect() {
for(i=0;i<loop;i++) { // for loop that ensures that it circles (loop) times
for(j=0;j<360;j++) { // j=angle and i do believe gscript does not use radians
seteffect playerx+1.5+cos(j)*radius,playery+2+sin(j)*radius;
sleep .05;
}
}
resetfocus;
}

Erm, Gscript DOES use radians. To convert from radians to degrees, I believe its (radians * (180/pi)). And to convert from degrees, it is (degrees * (pi/180)).
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #75  
Old 02-04-2004, 12:51 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Mining

I have made my pickaxe, but how do I detect if the player is hitting a certain tile ?
Reply With Quote
  #76  
Old 02-04-2004, 12:56 AM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
Actually, I would get a mining rock image, put it into an npc, have the weapon trigger the mining action, and have the rock npc detect the action, then do stuff.

But to answer your question, you would do

NPC Code:

setplayerprop #c,#v(tiles[playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2]);



That would make your chat text the tile that you are hitting with the axe. Then just check if that tile is the one you want.
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #77  
Old 02-04-2004, 01:03 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Go Duwul!

GMan, can you just CENTRALIZE all your questions? Or post them all in one area?

You can have this:

Pick Axe:
NPC Code:

//#CLIENTSIDE
if (weaponfired){
triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,mined,4;
}


NPC:
NPC Code:

if (created){
setshape 1,32,32;
}
if (actionmined){
message Aww.. You hit me! You Filthy Cheater!... You did #p(0) damage to me! Arg;
}

__________________
- Rance Vicious
Reply With Quote
  #78  
Old 02-04-2004, 02:17 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Duwul


Erm, Gscript DOES use radians. To convert from radians to degrees, I believe its (radians * (180/pi)). And to convert from degrees, it is (degrees * (pi/180)).
O ya right gscript does use radians. Well pi is 180 degrees. So easy to convert.
__________________
Reply With Quote
  #79  
Old 02-04-2004, 02:18 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally posted by Termina_Owner
Go Duwul!

GMan, can you just CENTRALIZE all your questions? Or post them all in one area?

You can have this:

Pick Axe:
NPC Code:

//#CLIENTSIDE
if (weaponfired){
triggeraction playerx+1.5+vecx(playerdir)*2,playery+2+vecy(playe rdir)*2,mined,4;
}


NPC:
NPC Code:

if (created){
setshape 1,32,32;
}
if (actionmined){
message Aww.. You hit me! You Filthy Cheater!... You did #p(0) damage to me! Arg;
}

rofl i love ur mine =D
__________________
Reply With Quote
  #80  
Old 02-04-2004, 02:32 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by GoZelda

Stefan thinks the NPCserver has real feelings and can get bored
it doesn't?
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
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:39 PM.


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