The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show/Close a dialog during world save.
Author Message
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #1
Show/Close a dialog during world save.
Hey Guys!

Just decide to share this little scp that add a function to show a fancy dialog box during a world save and close its after its done.

Hope you like!

[Image: world_save.png]

Code:
//////////////////////////////////////
//                                //
//                 By AmonVangrell        //
//            31/1/2014            //
//////////////////////////////////////
//Sphere 0.56C
///////////////////////////////////////////////////
//    To install add this to sphere_serv_triggers.scp    //
//    [FUNCTION f_onserver_save]                    //
//    serv.allclients f_show_save_dlg                //
//    [FUNCTION f_onserver_save_finished]            //
//    serv.allclients f_close_save_dlg                //
///////////////////////////////////////////////////
[PLEVEL 2]
f_show_save_dlg
f_close_save_dlg

[FUNCTION f_show_save_dlg]
TRYSRC <UID> SRC.DIALOG d_save_game

[FUNCTION f_close_save_dlg]
TRYSRC <UID> SRC.DIALOGCLOSE d_save_game

[DIALOG d_save_game]
260,260
noclose
nomove
PAGE 0
resizepic 10 10 9200 200 90
checkertrans 20 20 180 60
tilepic 85 20 13920
dtext 50 75 05b The world is saving...

[EOF]
01-31-2014 06:26 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 4 users Like amonvangrell's post
Post Reply 


Messages In This Thread
Show/Close a dialog during world save. - amonvangrell - 01-31-2014 06:26 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)