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






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
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #2
RE: Show/Close a dialog during world save.
I wondered when someone was going to do this also Tongue i like your dialog, it looks nice with the globe.

What am I working on?
01-31-2014 08:53 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Show/Close a dialog during world save.
Like you are the only person that does that Soulless.... pfft

Now... make the globe spin!

[Image: 2nis46r.jpg]
01-31-2014 09:51 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Show/Close a dialog during world save.
Imho the globe is a tribute to the sphereserver logo !
01-31-2014 10:24 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: Show/Close a dialog during world save.
No, it isn't.
LoL
Poor LessSoul :/

Sent from my GT-I9505 using Tapatalk

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
01-31-2014 11:01 PM
Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #6
RE: Show/Close a dialog during world save.
I thought the globe was very cool too, sphereeeloogooooo


pfft @ you mordaunt! you poop mouth. pfft.
[Image: anchorman-poopmouth.jpg]

What am I working on?
02-02-2014 02:36 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #7
RE: Show/Close a dialog during world save.
love it and using it (Mordant you should create a thread to add this one in sphere community script packs!) hahaha

really, I like it, I will use it.

[Image: 2hy9q0y.png]
12-23-2014 01:22 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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