Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server Loading %
#1
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 #/# : %"
Reply
#2
is it supposed to finish at 1200%+?


"loading items 1.126748/15 1978% "??
Reply
#3
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?
Reply
#4
Yes I do but the % goes high
Reply
#5
whats your code look like?
Reply
#6
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 & "%")
Reply
#7
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
Reply
#8
Ok thx..

AGH now I have to restart pc I hate norton, it blocks the server running!°! >.>

allright fixed thx spoon
Reply
#9
Shouldn't the 2 be max_shops or max_spells?
Reply
#10
hmm could be.. lol
but i am sure he will come back with any questions if he has them
Reply
#11
No more questions I got it working how its supposed to be Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)