Classic Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Graal the Adventure 2004 is now on Graal Reborn! | Introducing Project GrailWay

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Thor

Pages: [1] 2 3 ... 15
1
Hello and Goodbyes / Re: hey men and women
« on: October 28, 2019, 01:13:05 PM »
What about the other million genders?

2
General Graal Discussion / Re: How to Access Graal The Adventure
« on: November 08, 2018, 02:16:02 AM »
I tried this, but when I typed in "adv," it said "Only staff can connect to this server". Is there another way to access it?

Not anymore.

3
GTA no longer exists.

4
Hello and Goodbyes / Re: yooo!
« on: December 24, 2017, 07:49:34 AM »
2004 GtA is on Graal Reborn:
https://graal.in/

An offline pack of Classic from 2000 can be downloaded here as well:

7zip (12MB)
http://www.classicgraal.net/downloads/graal141.7z

or

Zip (18MB)
http://www.classicgraal.net/downloads/graal141.zip

Export the files to a new folder, then run Graal.exe. Proceed with the "One Player" option, then press F1/F2 to load game. There's a file called start.gsave which brings you to the proper start level.

Included is also a file called guide.txt which contains a Quest/Item guide from Gamefaqs.

--------

Unfortunately Graal is owned by Scumbag Stephane Portha.

5
Non Graal Related / Re: Project GrailWay
« on: December 06, 2017, 01:19:33 PM »
You're too pure for Graal

You mean not scumbag enough.

7
Classic Main Forum / Re: Classic Shut Down, Thor Banned?
« on: September 05, 2017, 12:34:56 PM »
Following 2 months and 1 week Unixmad is proving once again that he is a disgrace and cannot be trusted.

8
Classic Main Forum / Re: How did you accomplish the rising water?
« on: August 20, 2017, 06:19:28 AM »
Code: [Select]
function onPlayerEnters() {
  if (client.waterfilled = true) {

Using a single = will always treat the conditional as TRUE, it should be ==. Better yet if you're storing boolean values (true/false or 1/0) you can just do:

Code: [Select]
function onPlayerEnters() {
  if (client.waterfilled) {

or

Code: [Select]
function onPlayerEnters() {
  if (!client.waterfilled) {

--------

Rather than use a timeout I use scheduleEvent(), which can be cancelled with cancelEvents("action").

Code: [Select]

function onFillWater() {
  //blah blah
  this.scheduleEvent(0.2, "FillWater");
}

function onDrainWater() {
  //blah blah
  this.scheduleEvent(0.2, "DrainWater");
}

function stopFill() {
  //blah blah
  this.cancelEvents("FillWater");
}

function stopDrain() {
  //blah blah
  this.cancelEvents("DrainWater");
}


9
General Graal Discussion / Re: Can I be Admin?
« on: August 20, 2017, 02:59:27 AM »
Most "can i b admin"s aren't a big deal. But occasionally you get someone who spends hours/days/weeks/months begging for it non stop.

10
Classic Main Forum / Re: How did you accomplish the rising water?
« on: August 18, 2017, 01:30:31 PM »
Seems awkward to post about this here unless it's specific to Classic.

I posted a reply at http://forums.graalonline.com/forums/showthread.php?p=1741824#post1741824

11
Classic Main Forum / Re: How did you accomplish the rising water?
« on: August 15, 2017, 06:12:23 PM »
After testing your script visually it only works for square shapes. How would I go about doing other shapes? Like a rectangle? Maybe I am not understanding this script, but it seems very limited.

All this code does is handle the drawing of the polygon based on the water-filled area compared with the total flood-able area, but it can and does work for rectangular areas too, rectangles just require specific math to increment the filled area as the filled width and height would not increment evenly.

When raising the water I increment the areas like so:

Code: [Select]
  temp.w = this.waterWidth - (this.boundaryWidth * 2);
  temp.h = this.waterHeight - (this.boundaryWidth * 2);
  temp.xIncrease = 50;
  temp.yIncrease = 50;

  if (this.boundaryWidth > 0) {

    if (this.waterWidth - this.filledWidth <= this.boundaryWidth * 2) {
      temp.w = this.boundaryWidth;
      temp.xIncrease /= 2;
    }

    if (this.waterHeight - this.filledHeight <= this.boundaryWidth * 2) {
      temp.h = this.boundaryWidth;
      temp.yIncrease /= 2;
    }

  }
  temp.xIncrease = (temp.w / temp.xIncrease);
  temp.yIncrease = (temp.h / temp.yIncrease);
  this.filledWidth = min(this.waterWidth, this.filledWidth + temp.xIncrease);
  this.filledHeight = min(this.waterHeight, this.filledHeight + temp.yIncrease);
  this.updatePoly();

(Boundary width would be the walled area on the outermost tiles of a fill area, where I have the water raise more slowly)

12
Classic Main Forum / Re: How did you accomplish the rising water?
« on: August 13, 2017, 04:57:54 AM »
I'm not sure what it is you're trying to accomplish here, as surely the water should rise irrespective of the player's position, unless this is inside a gani script?

What I do is store a tile width and height of the fill area, as well as a filled width and height, and calculate the showpoly x/y/position like so:

Code: [Select]
function updatePoly() {
  temp.x = this.x + this.getWaterX();
  temp.y = this.y + this.getWaterY();
  this.showpoly(200, {temp.x, temp.y, temp.x + this.filledWidth, temp.y, temp.x + this.filledWidth, temp.y + this.filledHeight, temp.x, temp.y + this.filledHeight});
}

function getWaterX()
  return (this.waterWidth - this.filledWidth) / 2;


function getWaterY()
  return (this.waterHeight - this.filledHeight) / 2;

13
Classic Main Forum / Re: How did you accomplish the rising water?
« on: August 09, 2017, 01:21:48 PM »
A combination of showpoly and setshape2.

14
General Graal Discussion / Re: Older version of the level editor.
« on: July 27, 2017, 11:39:41 AM »
Normal level editor is downloadable from the login server.

15
Congratulations. You have won the internet.

Pages: [1] 2 3 ... 15