Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Jagen. (https://forums.graalonline.com/forums/showthread.php?t=32153)

Torankusu 06-23-2002 10:00 AM

Jagen.
 
He wasn't asking for an NPC... he was asking if anybody had a predefined "watershore" thing like the path generator. I don't think he can find konidias's and neither can I.

Shiftk03- 06-23-2002 10:03 AM

Re: Jagen.
 
Quote:

Originally posted by Torankusu
He wasn't asking for an NPC... he was asking if anybody had a predefined "watershore" thing like the path generator. I don't think he can find konidias's and neither can I.
Don't just blame Jagen, I seconded that motion to close it...The way he put it seemed like he was asking for something else.

Torankusu 06-23-2002 10:04 AM

Re: Re: Jagen.
 
Quote:

Originally posted by Shiftk03-


Don't just blame Jagen, I seconded that motion to close it...The way he put it seemed like he was asking for something else.

He called it an NPC because it goes into your "Predefined NPCs" folder.

Python523 06-23-2002 10:06 AM

err, the path makers are scripts =/

Torankusu 06-23-2002 10:13 AM

Quote:

Originally posted by Python523
err, the path makers are scripts =/
Uh, I don't see why they can't be posted...

They're not "graal scripts."

Python523 06-23-2002 10:29 AM

open the text file up, it's a script

Torankusu 06-23-2002 10:40 AM

if (playerenters) {
this.lastpx = -1000;
}
if (playerenters || timeout) {
if (mousebuttons%2>=1) {
if (this.lastpx>-1000) {
dx = (mousex-this.lastpx);
dy = (mousey-this.lastpy);
dist = (abs(dx)>abs(dy)? abs(dx) : abs(dy));
for (di=0; di<dist; di++) {
px = this.lastpx + (dx*di/dist);
py = this.lastpy + (dy*di/dist);
laypath();
}
}
px = mousex;
py = mousey;
laypath();
this.lastpx = px;
this.lastpy = py;
} else
this.lastpx = -1000;
timeout = 0.05;
}
function laypath() {
sandtiles = {0xaa,0xab,0x12d,0x8,0xf};
grasstiles = {0x0,0x1,0x10,0x1ff,0x3ff,0x7ff,0x835,0x836,0x837} ;
sandspot = {
0x176,0x166,0x177,
0x1a7, 0xaa,0x197,
0x188,0x178,0x169
};
grassspot = {
0x168,0x178,0x189,
0x197,0x7ff,0x1a7,
0x187,0x166,0x186
};
sandcornernwse = 0xfe9;
sandcornernesw = 0xff9;
allcornertiles = {0x176,0x166,0x167,0x177,0x1a7,0xaa,0x197,0x188,0x 178,0x179,0x169,
0x168,0x189,0x187,0x186,0xfe9,0xff9};

// Check if can lay a sand path here
if (tiles[px,py] in sandtiles) return;
for (tx=px-1; tx<=px+1; tx++) for (ty=py-1; ty<=py+1; ty++) {
if (tiles[tx,ty] in sandtiles) continue;
checkgrassorborder();
if (isok==false) return;
}

// Put sand on the mouse position
tiles[px,py] = sandtiles[int(random(0,5))];

// Calculate the tiles around the mouse position
for (tx=px-1; tx<=px+1; tx++) for (ty=py-1; ty<=py+1; ty++) {
if ((tx==px && ty==py) || tiles[tx,ty] in sandtiles) continue;

// Check which tiles around this tile are sand tiles
sandn = (tiles[tx ,ty-1] in sandtiles);
sandnw = (tiles[tx-1,ty-1] in sandtiles);
sandw = (tiles[tx-1,ty ] in sandtiles);
sandsw = (tiles[tx-1,ty+1] in sandtiles);
sands = (tiles[tx ,ty+1] in sandtiles);
sandse = (tiles[tx+1,ty+1] in sandtiles);
sande = (tiles[tx+1,ty ] in sandtiles);
sandne = (tiles[tx+1,ty-1] in sandtiles);
if (sandnw+sandne==2) sandn = true;
if (sandnw+sandsw==2) sandw = true;
if (sandsw+sandse==2) sands = true;
if (sandse+sandne==2) sande = true;

// Get the right sand corner tile depending on
// in which directions sand was found
if (sandn+sands==2 || sandw+sande==2 ||
sandn+sandw+sandse==3 || sandw+sands+sandne==3 || sands+sande+sandnw==3 || sande+sandn+sandsw==3)
newtile = sandtiles[0];
else if (sandn+sandw+sands+sande==2) {
if (sandn+sandw==2) newtile = grassspot[0+0*3];
else if (sandw+sands==2) newtile = grassspot[0+2*3];
else if (sands+sande==2) newtile = grassspot[2+2*3];
else newtile = grassspot[2+0*3];
} else if (sandn+sandw+sands+sande==1) {
if (sandn+sandse==2 || sande+sandnw==2) newtile = grassspot[2+0*3];
else if (sandn+sandsw==2 || sandw+sandne==2) newtile = grassspot[0+0*3];
else if (sands+sandnw==2 || sandw+sandse==2) newtile = grassspot[0+2*3];
else if (sands+sandne==2 || sande+sandsw==2) newtile = grassspot[2+2*3];
else if (sandn==1) newtile = grassspot[1+0*3] + (tx%2); // 2 tiles for north
else if (sandw==1) newtile = grassspot[0+1*3];
else if (sands==1) newtile = grassspot[1+2*3] + (tx%2); // 2 tiles for south
else newtile = grassspot[2+1*3];
} else if (sandnw+sandne+sandsw+sandse==2) {
if (sandnw+sandse==2) newtile = sandcornernwse;
else if (sandne+sandsw==2) newtile = sandcornernesw;
} else if (sandnw+sandne+sandsw+sandse==1) {
if (sandnw==1) newtile = sandspot[2+2*3];
else if (sandsw==1) newtile = sandspot[2+0*3];
else if (sandse==1) newtile = sandspot[0+0*3];
else newtile = sandspot[0+2*3];
}

// Write the tile
tiles[tx,ty] = newtile;
}

// Redraw the level on the mouse position
updateboard px-1,py-1,3,3;
}
function checkgrassorborder() {
isok = ((tiles[tx,ty] in grasstiles) || (tiles[tx,ty] in allcornertiles));
}

RavenTelvecho 06-23-2002 11:06 AM

har did i miss something?

Falcor 06-23-2002 11:54 AM

There is a fine line between asking for someone to give you a script, and asking for a script that is retally available. If I asked for the graal2002 sand path Edit NPC would you close my thread?

Python523 06-23-2002 12:04 PM

Quote:

Originally posted by Falcor
There is a fine line between asking for someone to give you a script, and asking for a script that is retally available. If I asked for the graal2002 sand path Edit NPC would you close my thread?
No, because it comes with the graal exe (I think) I don't believe the script above does

Saga2001 06-23-2002 04:08 PM

Grrrrrr....
Personally I don't consider that script stealing and neither did Kai, so it shouldn't have heppened. *wonders why he wasn't chosen to mod the forums because he pwns*

Falcor 06-23-2002 11:03 PM

Quote:

Originally posted by Saga2001

*wonders why he wasn't chosen to mod the forums because he pwns*

Same reason I wasn't, you don't work on 2k1 or know Alkaren.

Python523 06-24-2002 02:12 AM

this is in kaimetsu's rules and guidelines:
Don't post here just asking for scripts. The posters here aren't some universal resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go get a NAT.
I considered that asking for a script and so did rabid

Cybnext 06-24-2002 02:28 AM

Quote:

Originally posted by Falcor


Same reason I wasn't, you don't work on 2k1 or know Alkaren.

I work for 2k1 as the NPC Admin, and I didn't get picked. :mad:

Falcor 06-24-2002 04:06 AM

then maybe you didnt know alkaren

Logo 06-24-2002 06:40 AM

i think "jagen" and rabid are stupid!

Dustey4Ever 06-24-2002 12:17 PM

Quote:

Originally posted by Logo
i think "jagen" and rabid are stupid!
Dustey:
Rabid is the best man... Dont tell me otherwise because I know you are lieing;)

Saga2001 06-24-2002 02:48 PM

1 Attachment(s)
I work on 2001, I don't know alkie, well I know him, but he hates me for no aparent reason.
Jagen and Rabid do not script badly, however I believe I have much more experience and practical knowledge on scripting, along with more posts here and more resolved issues from my posts, rather than question, no hard meant to either of them, I just pride myself at being one of the best scripters on Graal, and 90% of the Graalian population knows I am a good scripter, and no one seems to ever take note unless I beat them with salmon like I did to Kamuii. Pretty good? I wonder if I posted something pwnage if they would mod me. Here we go. I don't really care if anyone uses any of this on their server, its a showoff, and since I posted it here everyone who knows anything about scripting will know its mine, since Bird, Kamuii, Koni, and about 100000 other people have seen it, go for it, your bad mistake. Did I mention that I was the one who scripted the 2001 q menu system that you have seen information about in the main forum? Yeah. So here we go...:rolleyes:

adam 06-24-2002 09:41 PM

Quote:

Originally posted by Saga2001
I work on 2001, I don't know alkie, well I know him, but he hates me for no aparent reason.
Jagen and Rabid do not script badly, however I believe I have much more experience and practical knowledge on scripting, along with more posts here and more resolved issues from my posts, rather than question, no hard meant to either of them, I just pride myself at being one of the best scripters on Graal, and 90% of the Graalian population knows I am a good scripter, and no one seems to ever take note unless I beat them with salmon like I did to Kamuii. Pretty good? I wonder if I posted something pwnage if they would mod me. Here we go. I don't really care if anyone uses any of this on their server, its a showoff, and since I posted it here everyone who knows anything about scripting will know its mine, since Bird, Kamuii, Koni, and about 100000 other people have seen it, go for it, your bad mistake. Did I mention that I was the one who scripted the 2001 q menu system that you have seen information about in the main forum? Yeah. So here we go...:rolleyes:

Pride goeth before a fall? Aw well. Your not that bad.


*cries* *screams* WHY@#$@ WHY!@$#@!


Why did you have to quit TCN!@#@!$#


But whatever. :-/
I should have known you'd be one of the few to actually do what you intended and become one of the best scripters around. Aw well. You have a lot of free time don't you? Man.. I wish I had free time.

Falcor 06-25-2002 12:24 AM

Rabid is cool ;)
I don't know Jagen all that well.

Logo 06-25-2002 12:53 AM

i think they both need to be removed from modship, banned, and stripped of internet access!

mods should be Falcor and Saga2001

nyghtGT 06-25-2002 01:40 AM

Quote:

Originally posted by Logo
i think they both need to be removed from modship, banned, and stripped of internet access!

mods should be Falcor and Saga2001

Wolf: I dont know rabid, but jagen is somone who you should back off of. If you "think" so damn much about other people, maybe try thinking about what you say. Considering you have no basis for your statments.

Dustey4Ever 06-25-2002 01:41 AM

Dustey:
Quote:

Originally posted by Falcor
Rabid is cool ;)
I don't know Jagen all that well.

Yap i dont even know Jagen, but Rabid rocks:D

Quote:

Originally posted by Logo
i think they both need to be removed from modship, banned, and stripped of internet access! mods should be Falcor and Saga2001
Please get a brain k? Fal and Saga are good scripters and good people to be friends with but would they make good mods? I know fal would and I think Saga would be good to but what you said is just stupid-_-

Logo 06-25-2002 01:58 AM

Quote:

Originally posted by nyghtGT

Wolf: I dont know rabid, but jagen is somone who you should back off of. If you "think" so damn much about other people, maybe try thinking about what you say. Considering you have no basis for your statments.

lies

Logo 06-25-2002 01:59 AM

Quote:

Originally posted by ***4Ever
Dustey:


Please get a brain k? Fal and Saga are good scripters and good people to be friends with but would they make good mods? I know fal would and I think Saga would be good to but what you said is just stupid-_-

lies

draygin 06-25-2002 02:36 AM

It's a script for level making. You will never see the script on a level. It just makes tiling go alot faster. I mean if it was something that would show up in the game then I would say no. But its basically an add on to level editing. To speed up work. No one is ripping off a script. They're just grateful some one made a tool that adds onto level editor. That speeds up there own work.

nyghtGT 06-25-2002 04:37 AM

Quote:

Originally posted by Logo


lies

Quote:

Considering you have no basis for your statments.
its sad really, you even qoute yourself in your signature.

Dustey4Ever 06-25-2002 05:42 AM

Quote:

Originally posted by nyghtGT



its sad really, you even qoute yourself in your signature.

Dustey:
yah,... thats pretty bad...:(

Logo 06-25-2002 05:50 AM

lies

Falcor 06-25-2002 06:11 AM

truths

Dustey4Ever 06-25-2002 08:46 AM

Quote:

Originally posted by Logo


lies

lol sometime i bet your going to get a acc post reset or a forum ban for spamming:(

Quote:

Originally posted by Falcor


truths

truths... yes

Saga2001 06-25-2002 12:43 PM

Well note all the times that Logo said lies, where the hell are the mods? See, I am on the forums at least 2 times a day, and I would see this stuff...

Falcor 06-25-2002 12:47 PM

I am on the forums almost 10 or 20 times a day and Have a vast experience in all form s of scripting. Plus have been scripting since the days when Kharlia was still an extension on Classic (I think around 1999 or so) yet I wasn't chosen. I should kiss some asses, maybe Ill be mod of something ;p

Torankusu 06-25-2002 12:55 PM

and pastaustin is a far better teacher than rabid. :O

"WAIT FOR A DOCUMENT I WILL POST."

"WAIT. STEFAN SAID HE WILL POST THE PROJECT THING "Soon*"
*Soon = around 2 weeks, if not more. :(

Shiftk03- 06-26-2002 06:28 AM

Ahh stop the whining..Forum mods have lifes too, we can't be on the forums 24/7. Remember, patience is a virtue.

Falcor 06-26-2002 10:51 AM

Can we ban Logo for repetitious posting of the same friggen word?

Python523 06-26-2002 10:55 AM

Quote:

Originally posted by Falcor
Can we ban Logo for repetitious posting of the same friggen word?
hopefully yes

Logo 06-27-2002 12:43 AM

lies

Glory 06-27-2002 05:08 PM

Corupt: wow this thread got off topic real quick whoever wanted the beach lines generator I havent made one yet but ive made plenty others ill look into making a beach gen when i finish up soem gfx on my tileset just PM whoever wanted it


All times are GMT +2. The time now is 08:18 PM.

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