Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   When the server talks... (https://forums.graalonline.com/forums/showthread.php?t=73665)

theHAWKER 04-26-2007 12:15 AM

When the server talks...
 
I have a problem.
I made a hotel where the player can make there own rooms, but every time they place a tile on the rc it says "Level saved: room1.nw".!pissed!

then i whent to the server options and put this:"savelevels=false"(be for it was "savelevels=true") but now it wont save the level :(

so eather way i lose !pissed!

is there anyway to stop the rc from saying that?

killerogue 04-26-2007 12:20 AM

I'd actually like to add a question onto this, a sort of question answer scheme to help you out.

Is there a way to tell if an echo is true or false? That was terribly worded, but I hope someone understands what I mean. :)


E: Server Option: savelevelsmessage=false

Answer to your issue. AIMed to me by Joey.

Twinny 04-26-2007 12:26 AM

Quote:

Originally Posted by killerogue (Post 1303100)
Is there a way to tell if an echo is true or false? That was terribly worded, but I hope someone understands what I mean. :)

Well..unless the echo gives a 0/-1, I guess it's true? You should do tests before the echo and just have the echo display the results.

theHAWKER 04-26-2007 12:33 AM

Quote:

Originally Posted by killerogue (Post 1303100)
I'd actually like to add a question onto this, a sort of question answer scheme to help you out.

Is there a way to tell if an echo is true or false? That was terribly worded, but I hope someone understands what I mean. :)


E: Server Option: savelevelsmessage=false

Answer to your issue. AIMed to me by Joey.

would you mind not using my thread to start your own?

JkWhoSaysNi 04-26-2007 12:35 AM

We made a teraforming part on dark nations where people can teraform and build on planets.

To stop RC getting flooded we made it so it used updateboard() when the editing was taking place, then have it so the user can save there changes which calls updateboard2(0,0,64,64);

That way RC only gets messaged once per level update when the user presses save.

Twinny 04-26-2007 12:41 AM

You could just do

PHP Code:

function onPlayerLeaves()
{
  
updateboard2(0,0,64,64);



theHAWKER 04-26-2007 01:23 AM

Quote:

Originally Posted by Twinny (Post 1303105)
You could just do

PHP Code:

function onPlayerLeaves()
{
  
updateboard2(0,0,64,64);



yeah, but the thing is, every time somone places a tile it puts a line, so when somones making a bed for instance it takes up like 12 lines, so when somones trying to mkae there whole room it will spamm the RC to death. there will also be more then one person doing so x.x

killerogue 04-26-2007 01:34 AM

Quote:

Originally Posted by theHAWKER (Post 1303103)
would you mind not using my thread to start your own?

Would you mine not being an asshat, seeing as how I gave you a sensible answer to your question. And asked one that was as well related and that you could learn something from, *******.

theHAWKER 04-26-2007 01:46 AM

Quote:

Originally Posted by killerogue (Post 1303125)
Would you mine not being an asshat, seeing as how I gave you a sensible answer to your question. And asked one that was as well related and that you could learn something from, *******.

well... whats an echo?

killerogue 04-26-2007 01:52 AM

http://wiki.graal.net

It helps to be able to look up information on your own. Click the link, type "echo()" in the search box and press Enter.

You can find alot of help using the wiki. It's easier and quicker than waiting on the forums for assistance. PLUS I GAVE YOU THE ANSWER IN MY POST. READ THE EDIT.

zokemon 04-26-2007 03:26 AM

Quote:

Originally Posted by theHAWKER (Post 1303130)
well... whats an echo?

So you attacked him without the knowledge of what he said?

Twinny 04-26-2007 08:41 AM

Quote:

Originally Posted by killerogue (Post 1303125)
Would you mine not being an asshat, seeing as how I gave you a sensible answer to your question. And asked one that was as well related and that you could learn something from, *******.

Chill the hell down. What the heck is wrong with you lately?

Quote:

Originally Posted by theHAWKER (Post 1303120)
yeah, but the thing is, every time somone places a tile it puts a line, so when somones making a bed for instance it takes up like 12 lines, so when somones trying to mkae there whole room it will spamm the RC to death. there will also be more then one person doing so x.x

Call updateboard() for normal placements than use the updateboard2 for level saves. I'm not sure but I don't think updateboard does the same RC spam. Correct me if I'm wrong though.

Of course you could do as Joey suggested (using Stan as a proxy) and add savelevelsmessage=false to your server options and see if that works.

theHAWKER 04-26-2007 04:12 PM

Quote:

Originally Posted by Twinny (Post 1303250)
Of course you could do as Joey suggested (using Stan as a proxy) and add savelevelsmessage=false to your server options and see if that works.

yeah that worked thankx :D

Inverness 04-26-2007 05:46 PM

Quote:

Originally Posted by Twinny (Post 1303250)
Chill the hell down. What the heck is wrong with you lately?

theHAWKER started the conflict with his attack on Stan, do not do the same.

Andy0687 04-26-2007 11:18 PM

Quote:

Originally Posted by Inverness (Post 1303304)
theHAWKER started the conflict with his attack on Stan, do not do the same.

Did you guys all get togather one day and decide the rudest ways possible to post in the scripting forum?


All times are GMT +2. The time now is 12:31 PM.

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