- 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 ?
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 ?
