Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bomy Island Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=80)
-   -   What ever happened to? (https://forums.graalonline.com/forums/showthread.php?t=157)

Fai 03-12-2001 08:47 PM

My l33t flying things is better :|

Lycia 03-12-2001 08:47 PM

Antago rules.

grim_squeaker_x 03-12-2001 08:49 PM

Mine is compatible with all versions of Graal which allow keydown ^^. Well except that the if (keydown(6)) should be if (keyodwn(4)) in most versions.

Fai 03-12-2001 08:49 PM

why
___do
___people
write
___npcs
______like
___this
?

grim_squeaker_x 03-12-2001 08:50 PM

Because it's easy to check the coding of the NPC then in my opinion.

Fai 03-12-2001 08:50 PM

WAIT THAT WAS SUPPOSED TO BE DIFFERENT

Fai 03-12-2001 08:51 PM

re read da post

Lycia 03-12-2001 08:53 PM

I find it easier to read it, keep it clean, and find stuff easier.

grim_squeaker_x 03-12-2001 08:53 PM

Well as I said before it's easier to read the coding of the NPC in that way ^^

Fai 03-12-2001 08:53 PM

I don't it's ugly and messy and confusing :[

grim_squeaker_x 03-12-2001 08:55 PM

Anybody is allowed their personal opinion in my opinion (Hmm, that sounds weird), it doesn't really matter to me as long as you don't get:
NPC Code:
if(playerenters&&somethingoranotherdifferenthing)t  his.thing=1;this.thing2=1;this.thing3=1; etc.


Lycia 03-12-2001 09:00 PM

Fai, tell me what looks better:

NPC Code:

if (playerenters&&strequals(#a,Fai)) {setlevel2 worldj-16.nw,30,30; setlevel2 worldj-16.nw,30,30; setbackpal dusk6.png; noplayerkilling; weaponsdisabled;}



or

NPC Code:

if (playerenters&&strequals(#a,Fai)) {
setlevel2 worldj-16.nw,30,30;
setbackpal dusk6.png;
noplayerkilling;
weaponsdisabled;
}




Which looks easier to understand?

Fai 03-12-2001 09:06 PM

Well the top one saves room.

Lycia 03-12-2001 09:06 PM

Gah, I didn't ask that! >.<

Fai 03-12-2001 09:15 PM

k would someone answer a question?

if (timeout||playerenters) {
timeout=.05;
}
if (timeout) {
showimg 0,door.gif,__,__;
sleep .05;
hideimg 0;
timeout=.05;
}

K in the __ spots, the x,y, i want those to be RANDOM what could i do to this to make it do what I want.:[

grim_squeaker_x 03-12-2001 09:21 PM

if you want something to be random just use this little script:

random(lowestpossiblenumber,highestpossiblenumber)

Or if you want it to always be whole numbers:

int(random(lowestpossiblenumber,highestpossiblenum ber))

Fai 03-12-2001 09:22 PM

so...

if (timeout||playerenters) {
timeout=.05;
}
if (timeout) {
showimg 0,door.gif,random(0,64),random(0,64);
sleep .05;
hideimg 0;
timeout=.05;
}

?

grim_squeaker_x 03-12-2001 09:26 PM

Yup.

Fai 03-12-2001 09:32 PM

OMG it like worked.

grim_squeaker_x 03-12-2001 09:33 PM

I knew I could do it :D:D:D:D:D

Lycia 03-12-2001 09:34 PM

Grim Squeaker, you are a Tyhm in the making. :D

Fai 03-12-2001 09:37 PM

K one more thing.

Why is hitplayer or hurtplayer or whatever it is so confusing, and how could I make it hit like, any player/comp :[

grim_squeaker_x 03-12-2001 09:46 PM

hitplayer index; is just hard to use, can't explain how to use it myself actually(I di know how to use it I just don't know how to explain), I just know that the new hurtobject x,y,power; is a lot easier to use.

Fai 03-12-2001 09:52 PM

Ok. one LAST thing.

WAIT HOLD ON MY washing machine is unbalanced

Fai 03-12-2001 09:53 PM

OK fixed, suppose I was using showimg for light2.png.

What If I wanted to put setcoloreffect on it? Or any other showimg. Is it possible?

grim_squeaker_x 03-12-2001 09:55 PM

Yup like for example:

NPC Code:

if (created) {
showimg 1,light2.png,x,y;
changeimgcolors 1,0.4,0.4,0.4,0.99;
}



changeimgcolors is the command for that as can be sen in the above example.

Fai 03-12-2001 09:56 PM

OMG THanks genius

grim_squeaker_x 03-12-2001 09:56 PM

I'm not genius I just now what most commands can do and what they are. ^^

Lycia 03-12-2001 09:57 PM

Grim, you are now Tyhm Jr.

grim_squeaker_x 03-12-2001 09:58 PM

OMG, does this mean I'm Jr. Vice Levels admin?
And it doesn't mean I have to dress up funny from time to time does it?

Lycia 03-12-2001 09:59 PM

Yes.

Fai 03-12-2001 09:59 PM

What is ^^

grim_squeaker_x 03-12-2001 10:00 PM

^^ = ^_^ Only I think the _ is annoying to type.

Fai 03-12-2001 10:00 PM

I made an NPC that crashed my computer :]

Lycia 03-12-2001 10:01 PM

I personally like >.< better.

Fai 03-12-2001 10:02 PM

How cause your sig keeps chainging

grim_squeaker_x 03-12-2001 10:02 PM

Heh, computer crashing NPC's are easy I think this script should crash any computer:

NPC Code:
if (created) {
this.thing=99999999;
this.thing++;
}



I'm not sure though.

Lycia 03-12-2001 10:03 PM

Quote:

Originally posted by Fai
How cause your sig keeps chainging
Its a PHP script.

Fai 03-12-2001 10:04 PM

I do not know what PHP is plz eplzin

Lycia 03-12-2001 10:05 PM

PHP is a web scripting language.

Like, CGI/PERL, Java, etc.


All times are GMT +2. The time now is 03:00 AM.

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