Graal Forums

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

theHAWKER 04-24-2007 12:30 AM

Update Level
 
Is there any posible way to update a level using script?
in one of my levels you can place your own tiles but i found a glich...
the only way to fix this glich is to update the level so it the a way?

Rapidwolve 04-24-2007 12:55 AM

"update level"
Unless you are talking about tile editing on the level

JkWhoSaysNi 04-24-2007 12:57 AM

sendtorc("/updatelevel levelname.nw"); ?

theHAWKER 04-24-2007 01:28 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1302445)
sendtorc("/updatelevel levelname.nw"); ?

wont that just spam the rc?

JkWhoSaysNi 04-24-2007 02:02 AM

well spam rc AND update the level :P

If you're calling it enough for it to spam RC it's the glitch in your script that needs fixing.

godofwarares 04-24-2007 02:13 AM

Quote:

Originally Posted by theHAWKER (Post 1302435)
Is there any posible way to update a level using script?
in one of my levels you can place your own tiles but i found a glich...
the only way to fix this glich is to update the level so it the a way?

updateboard(x, y, width, height);

Works for me, without updating the level.
Example, to update the whole level:

PHP Code:

updateboard(006464); 


Gambet 04-24-2007 02:17 AM

Quote:

Originally Posted by godofwarares (Post 1302477)
updateboard(x, y, width, height);

Works for me, without updating the level.
Example, to update the whole level:

PHP Code:

updateboard(006464); 



updateboard is for displaying any changes to the tiles in a gmap via script, I'm not sure that it works the same as updatelevel.

JkWhoSaysNi 04-24-2007 02:31 AM

It doesn't, but it'll update the tiles. NPC's wont get recreated.

killerogue 04-24-2007 02:48 AM

Quote:

Originally Posted by theHAWKER (Post 1302451)
wont that just spam the rc?

It'll send one line to the RC. I wouldn't classify that as spam. Or just make a chat function that triggers the server to do this upon certain chat.

godofwarares 04-24-2007 12:32 PM

Quote:

Originally Posted by Gambet (Post 1302480)
updateboard is for displaying any changes to the tiles in a gmap via script, I'm not sure that it works the same as updatelevel.

Quote:

...in one of my levels you can place your own tiles but i found a glich...
He is implying that he is making a scripted level editor, but apparently is having trouble making them display. 'updateboard' is the reasonable choice here.

theHAWKER 04-25-2007 03:06 AM

Quote:

Originally Posted by godofwarares (Post 1302604)
He is implying that he is making a scripted level editor, but apparently is having trouble making them display. 'updateboard' is the reasonable choice here.

yeah, but update board dosn't work :(

xXziroXx 04-25-2007 03:13 AM

Quote:

Originally Posted by theHAWKER (Post 1302866)
yeah, but update board dosn't work :(

Add this to server options:

savelevels=true

DustyPorViva 04-25-2007 03:20 AM

If you want it to save, I think it's updateboard2?


All times are GMT +2. The time now is 01:13 AM.

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