Mirage Source http://www.miragesource.net/forums/ |
|
Server Loading % http://www.miragesource.net/forums/viewtopic.php?f=210&t=41 |
Page 1 of 1 |
Author: | grimsk8ter11 [ Thu Jun 01, 2006 9:03 pm ] |
Post subject: | Server Loading % |
Difficulty 1/5 If you like how PW tells you what you have loaded, here is an easy way to do it. Go to ModDatabase in your Server. Find Sub Load___ (___can be NPCs, items, Maps, Player, Classes, Shops, Spells) Now find the part where it says Code: i = 1 to MAX_BLA Bla can be whatever: NPCS, SHOPS, Classes, CHARS, SPELLS, ITEMS, MAPS. Now right below it put this: Code: Call SetStatus("Loading 1. " & i & "/" & 2. & " : " & (i / 2.) * 100 & "%")
Replace The (see lists) with these pairs: 1. Accounts 2. MAX_CHARS 1. Maps 2. MAX_MAPS 1. Shops 2. MAX_SHOPS 1. NPCs 2. MAX_NPCS 1. Items 2. MAX_ITEMS 1. Spells 2. MAX_SPELLS That is all. When your serer load it will say "Loading Blank #/# : %" |
Author: | Krloz [ Sun Jul 09, 2006 1:06 am ] |
Post subject: | |
is it supposed to finish at 1200%+? "loading items 1.126748/15 1978% "?? |
Author: | Misunderstood [ Sun Jul 09, 2006 1:14 am ] |
Post subject: | |
replace 2 with Max_blank...such as Max_maps if your using it for map progress replace 1 with Maps if your loading maps, or whatever you want it to say. like it says in the tutorial. Did you do that? |
Author: | Krloz [ Sun Jul 09, 2006 1:16 am ] |
Post subject: | |
Yes I do but the % goes high |
Author: | Misunderstood [ Sun Jul 09, 2006 2:55 am ] |
Post subject: | |
whats your code look like? |
Author: | Krloz [ Sun Jul 09, 2006 6:59 pm ] |
Post subject: | |
Code: For y = 1 To MAX_SHOPS Call SetStatus("Loading shops " & y & "/" & MAX_SHOPS & " : " & (y / 2#) * 100 & "%") Code: For i = 1 To MAX_SPELLS
Call SetStatus("Loading Spells " & i & "/" & MAX_SPELLS & " : " & (i / 2#) * 100 & "%") |
Author: | Dr. Spoon [ Sun Jul 09, 2006 7:03 pm ] |
Post subject: | |
Krloz wrote: Code: For y = 1 To MAX_SHOPS Call SetStatus("Loading shops " & y & "/" & MAX_SHOPS & " : " & (y / 2#) * 100 & "%") Code: For i = 1 To MAX_SPELLS Call SetStatus("Loading Spells " & i & "/" & MAX_SPELLS & " : " & (i / 2#) * 100 & "%") your problem is the # after the numnber 2 |
Author: | Krloz [ Sun Jul 09, 2006 7:13 pm ] |
Post subject: | |
Ok thx.. AGH now I have to restart pc I hate norton, it blocks the server running!°! >.> allright fixed thx spoon |
Author: | Misunderstood [ Sun Jul 09, 2006 9:44 pm ] |
Post subject: | |
Shouldn't the 2 be max_shops or max_spells? |
Author: | Dr. Spoon [ Sun Jul 09, 2006 11:52 pm ] |
Post subject: | |
hmm could be.. lol but i am sure he will come back with any questions if he has them |
Author: | Krloz [ Mon Jul 10, 2006 12:03 am ] |
Post subject: | |
No more questions I got it working how its supposed to be |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |