1
Classic Main Forum / Re: Share your screenshots! :D
« on: April 13, 2021, 11:40:32 AM »
Huh huh Zojo said hardon.
We're back. Discord - https://discord.gg/U7C8YNYF63
How recent is this? I was hoping to get him something closer to the end of Classic pre NPC server.
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?
You're too pure for Graal
function onPlayerEnters() {
if (client.waterfilled = true) {
function onPlayerEnters() {
if (client.waterfilled) {
function onPlayerEnters() {
if (!client.waterfilled) {
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");
}
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.
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();