level Rank Problems

Play Now

Nikx

LOMCN Veteran
Veteran
Loyal Member
Feb 1, 2008
353
0
43
------------
RANKING SYSTEM
------------

What's this?
This allows to have players ingame with different ranking according to thier levels.. this works immediately as soon as the players level ups.. (Credits to a lot of people)

How to make this?
This is an example of a working ranking system from level 10 to level 30..

Before starting make sure u set a few things.. open
inside C:\Mirserver\M2Server open !Setup.txt, press CTRL+T inside notepad and find the word rank and press search.. u should find for first the following line:
ShowRankLevelName.. make sure this is set to 1 and not to 0.. if it's set to 0 this ranking system will not work

now in the same folder open the string.ini
open it and CTRL+T and search for RankLevelName
make sure that the line which has this word in looks like this RankLevelName=%s\

now lets start making a good ranking system:

STEP 1) goto C:\Mirserver\M2Server\Envir\Market_Def and open QFunction-0.txt

this is an example code of a simply ranking system for levels 10, 20 and 30..


Code:
[@levelUp]#IFCHECKLEVELEX = 10#ACTADDNAMELIST RankNames\lvl10.txtSETRANKLEVELNAME %s\LvL10SENDMSG 0 "<$USERNAME> Has Just Leveled to 10!!"#IFCHECKLEVELEX = 20#ACTDELNAMELIST RankNames\lvl10.txtADDNAMELIST RankNames\lvl20.txtSETRANKLEVELNAME %s\LvL20SENDMSG 0 "<$USERNAME> Has Just Leveled to 20!!"#IFCHECKLEVELEX = 30#ACTgive gold 500000DELNAMELIST RankNames\lvl20.txtADDNAMELIST RankNames\lvl30.txtSETRANKLEVELNAME %s\LvL30SENDMSG 0 "<$USERNAME> Has Just Leveled to 30 and won 500K!!"
Description of the code:
[@levelup] is the only tag that allows to check if a player level ups or not.. so dont change this line

CHECKLEVELEX checks the level of the player
SETRANKLEVELNAME is the command that sets the ranking name.. in my examples the names are LvL10, LvL20, LvL30
SENGMSG 0 sends a message to everyone saying that the person has leveled..

in this example i used NameLists because if a player levels up to 10 and logs out he will loose his ranking.. so to make this not happen anymore we will need to edit also the QManage.txt

STEP 2) goto C:\Mirserver\M2Server\Envir\MapQuest_def and open QManage.txt

this is what i used


Code:
[@Login]#IFCHECKNAMELIST ..\Market_Def\RankNames\lvl10.txt#ACTSETRANKLEVELNAME %s\LvL10BREAK#IFCHECKNAMELIST ..\Market_Def\RankNames\lvl20.txt#ACTSETRANKLEVELNAME %s\LvL20BREAK#IFCHECKNAMELIST ..\Market_Def\RankNames\lvl30.txt#ACTSETRANKLEVELNAME %s\LvL30BREAK
this code allows the server to know if the player that is logging in the game should have or not a ranking.. if he should have it, it will give it..

STEP 3) goto C:\Mirserver\M2Server\Envir\Market_Def and create a new folder called RankNames
go inside RankNames and create 3 new txt files called

lvl10.txt
lvl20.txt
lvl30.txt

If u have done everything correctly u should have a perfectly working rank system.. for more levels ovviously u will have to add them in the qfunction-0.txt making sure u dont mess up the namelists.. so for example if i want a level 40 ranking i should add in qfunction-0 this:


Code:
#IFCHECKLEVELEX = 40#ACTgive gold 1000000DELNAMELIST RankNames\lvl30.txtADDNAMELIST RankNames\lvl40.txtSETRANKLEVELNAME %s\LvL40SENDMSG 0 "<$USERNAME> Has Just Leveled to 40 and won 1M!!"
u should then add this in Qmanage.txt


Code:
#IFCHECKNAMELIST ..\Market_Def\RankNames\lvl40.txt#ACTSETRANKLEVELNAME %s\LvL40BREAK
and u should create an empty txt file called lvl40.txt inside RankNames in the Market_Def folder..










i followed this guy .. nothing anyone help ?
 

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Really no need to use name lists.

qfuntion;
#IF
CHECKLEVEL 20
#ACT
SETRANKLEVELNAME %s\<LVL20>
SENDMSG 0 "<$USERNAME> Has reached level 20 Congratulations "
break
#IF
CHECKLEVEL 10
#ACT
SETRANKLEVELNAME %s\<LVL10>
SENDMSG 0 "<$USERNAME> Has reached level 10 Congratulations "
break
#IF
CHECKLEVEL 1
#ACT
SETRANKLEVELNAME %s\<Noob>
break

QMANAGE;
#IF
CHECKLEVEL 20
#ACT
SETRANKLEVELNAME %s\<LVL20>
break
#IF
CHECKLEVEL 10
#ACT
SETRANKLEVELNAME %s\<LVL10>
break
#IF
CHECKLEVEL 1
#ACT
SETRANKLEVELNAME %s\<Noob>
break
 
Upvote 0

Nikx

LOMCN Veteran
Veteran
Loyal Member
Feb 1, 2008
353
0
43
OMG !!!! lol ur a star ! ... tyyyy so much mate. Rep +1
 
Upvote 0

Nikx

LOMCN Veteran
Veteran
Loyal Member
Feb 1, 2008
353
0
43
Btw... How do i add Colours to my titles for example

Level22- Black
Level30- Blue

ect.. ?

please ty.
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
QMANAGE;
#IF
CHECKLEVEL 20
#ACT
SETRANKLEVELNAME %s\<LVL20>
CHANGENAMECOLOR 2
break
#IF
CHECKLEVEL 10
#ACT
SETRANKLEVELNAME %s\<LVL10>
CHANGENAMECOLOR 3
break
#IF
CHECKLEVEL 1
#ACT
SETRANKLEVELNAME %s\<Noob>
CHANGENAMECOLOR 4
break
 
Upvote 0

Nikx

LOMCN Veteran
Veteran
Loyal Member
Feb 1, 2008
353
0
43
Rofl !!! nice one =))) Rep+1 ... btw how i know what colours what ?
ty
 
Upvote 0

Nikx

LOMCN Veteran
Veteran
Loyal Member
Feb 1, 2008
353
0
43
kk nps.. btw ty soo much :D .. oh one question if u dnt mind uno on weps (graphics) what number does weps and arms go up to ? ..ty
 
Upvote 0