Ranking 1.9

Play Now

Omen_lom

Golden Oldie
Golden Oldie
May 29, 2006
1,761
14
124
i've noticed that a few servers i have played can have ranks dpending on lvl and certain stats i know how to program qfunction but...
i dont know how to give the people ranks or titles
please can someone tell me the action to give them the ranks
 

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
#IF
CHECKLEVELEX = 21
#ACT
LineMSG 5 "Congratulations <$USERNAME> You've been premoted to rank of Apprentice"

Taken from a section of HellzLoose's rank system.
 
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
#IF
CHECKLEVELEX = 21
#ACT
LineMSG 5 "Congratulations <$USERNAME> You've been premoted to rank of Apprentice"

Taken from a section of HellzLoose's rank system.

i dont think this is what omen is after km, that would just send a message to the player not actually set the rank

this is taken from my qmanage, in mapquest folder, under the loginact bit

;==================================================
#IF
#ACT
#CALL [\Common\LoginAct.txt] @Act
;==================================================
#IF
checkjob Warr
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Warr
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Warr
checklevel 25
#ACT
SETRANKLEVELNAME %s\NoviceSwordsman
#IF
checkjob Warr
checklevel 35
#ACT
SETRANKLEVELNAME %s\IntermediateWarrior
#IF
checkjob Warr
checklevel 45
#ACT
SETRANKLEVELNAME %s\AdvancedFighter
#IF
checkjob Warr
checklevel 55
#ACT
SETRANKLEVELNAME %s\HardWarrior
#IF
checkjob Wizard
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Wizard
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Wizard
checklevel 25
#ACT
SETRANKLEVELNAME %s\NoviceSorcerer
#IF
checkjob Wizard
checklevel 35
#ACT
SETRANKLEVELNAME %s\IntermediateCaster
#IF
checkjob Wizard
checklevel 45
#ACT
SETRANKLEVELNAME %s\DemonicMage
#IF
checkjob taos
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob taos
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob taos
checklevel 25
#ACT
SETRANKLEVELNAME %s\NovicePriest
#IF
checkjob taos
checklevel 35
#ACT
SETRANKLEVELNAME %s\AdvancedPriest


edit the titles, and levels to what you want them to be, but hopefully you can understand how it works, also you can make the qmanage look for a flag to assign a rank, so for example you would have a rank npc where you could choose a rank, when you choose it, it would then set a flag, then the qmanage would check that flag and assign the rank you have put in there for example:

#if
check [100] 1
#act
setranklevelname %s\TITLE

etc etc

hope this helps

BTW: this works for the 2.3 files aswell
 
Last edited:
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
Oh yeah sh1te lol... I didnt see that. I copied the wrong bit :P ma bad.
 
Upvote 0

Paul

Dedicated Member
Dedicated Member
Jul 31, 2008
26
0
27
i dont think this is what omen is after km, that would just send a message to the player not actually set the rank

this is taken from my qmanage, in mapquest folder, under the loginact bit

;==================================================
#IF
#ACT
#CALL [\Common\LoginAct.txt] @Act
;==================================================
#IF
checkjob Warr
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Warr
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Warr
checklevel 25
#ACT
SETRANKLEVELNAME %s\NoviceSwordsman
#IF
checkjob Warr
checklevel 35
#ACT
SETRANKLEVELNAME %s\IntermediateWarrior
#IF
checkjob Warr
checklevel 45
#ACT
SETRANKLEVELNAME %s\AdvancedFighter
#IF
checkjob Warr
checklevel 55
#ACT
SETRANKLEVELNAME %s\HardWarrior
#IF
checkjob Wizard
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Wizard
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob Wizard
checklevel 25
#ACT
SETRANKLEVELNAME %s\NoviceSorcerer
#IF
checkjob Wizard
checklevel 35
#ACT
SETRANKLEVELNAME %s\IntermediateCaster
#IF
checkjob Wizard
checklevel 45
#ACT
SETRANKLEVELNAME %s\DemonicMage
#IF
checkjob taos
checklevel 0
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob taos
checklevel 15
#ACT
SETRANKLEVELNAME %s\Beginner
#IF
checkjob taos
checklevel 25
#ACT
SETRANKLEVELNAME %s\NovicePriest
#IF
checkjob taos
checklevel 35
#ACT
SETRANKLEVELNAME %s\AdvancedPriest


edit the titles, and levels to what you want them to be, but hopefully you can understand how it works, also you can make the qmanage look for a flag to assign a rank, so for example you would have a rank npc where you could choose a rank, when you choose it, it would then set a flag, then the qmanage would check that flag and assign the rank you have put in there for example:

#if
check [100] 1
#act
setranklevelname %s\TITLE

etc etc

hope this helps

BTW: this works for the 2.3 files aswell

im using this on my 2.3 server but i cant seem to get it to work, i want it to read from my sub class npc to see if it has the flag set to 1, ive set it to read from my npc but every time i strart m2server.exe up it just spams it with

[01/09/2008 19:45:50] script error, load fail: \Npc_def\SubClass-0.txt@mage
[01/09/2008 19:45:50] script error, load fail: \Npc_def\SubClass-0.txt@mage
[01/09/2008 19:45:50] script error, load fail: \Npc_def\SubClass-0.txt@mage
[01/09/2008 19:45:50] script error, load fail: \Npc_def\SubClass-0.txt@mage
[01/09/2008 19:45:50] script error, load fail: \Npc_def\SubClass-0.txt@mage
 
Last edited:
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
after i used the script i had this inside the m2server log:
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act...

and now that i have took off everything in qmanage i keep on getting a Rank on every char ingame which just says "Level".. how can u delete rankings from everyone?

EDIT:
never matter.. im sooooo noob that i didnt realise that in strings.ini there is setted the RankLevelName to Level.. which is the name everyone is getting now :)
 
Last edited:
Upvote 0

Paul

Dedicated Member
Dedicated Member
Jul 31, 2008
26
0
27
after i used the script i had this inside the m2server log:
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act...

and now that i have took off everything in qmanage i keep on getting a Rank on every char ingame which just says "Level".. how can u delete rankings from everyone?

EDIT:
never matter.. im sooooo noob that i didnt realise that in strings.ini there is setted the RankLevelName to Level.. which is the name everyone is getting now :)

i want mine something like oldskool (i never said a copy) i want players to start at 39 and lvl 40 then go to sub class npc and from there go up in ranks every 5 lvls i want it to go upto about rank 13 tho but atm having trouble reading from the sub class npc i made im gonna keep tweaking it tho i think its all trial and error for me now :)

if anyone can help tho it would be appreciated greatly :D
 
Upvote 0

TheBoss

Golden Oldie
Golden Oldie
Sep 6, 2004
1,810
6
175
Middlesbrough
after i used the script i had this inside the m2server log:
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act
[01/09/2008 18.14.48] script error, load fail: \Common\LoginAct.txt@Act...

and now that i have took off everything in qmanage i keep on getting a Rank on every char ingame which just says "Level".. how can u delete rankings from everyone?

EDIT:
never matter.. im sooooo noob that i didnt realise that in strings.ini there is setted the RankLevelName to Level.. which is the name everyone is getting now :)


did u fix that error on ur m2server
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
yes i know but i didnt understand why u have to make that #call function.. since its enough to simply add the rest without it.. i thought that u had to put something into the LoginAct.txt to make it work but it works without nothing
 
Upvote 0

Paul

Dedicated Member
Dedicated Member
Jul 31, 2008
26
0
27
yes i know but i didnt understand why u have to make that #call function.. since its enough to simply add the rest without it.. i thought that u had to put something into the LoginAct.txt to make it work but it works without nothing

so what did you put in string.txt to replace level?
 
Upvote 0

TheBoss

Golden Oldie
Golden Oldie
Sep 6, 2004
1,810
6
175
Middlesbrough
yes i know but i didnt understand why u have to make that #call function.. since its enough to simply add the rest without it.. i thought that u had to put something into the LoginAct.txt to make it work but it works without nothing

right sorted that no error ... went in game .. and it doesnt show up on my chara any idea pal
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
235
♫♪♫ ♦♥♠♣ ♀♂♀
so what did you put in string.txt to replace level?

in string.ini i just have it like this now:
RankLevelName=%s\
instead of
RankLevelName=%s\Level

right sorted that no error ... went in game .. and it doesnt show up on my chara any idea pal

Well try something simply before the complete script to see if that works too.. for example try in QManage to put this:

[@login]
#IF
CHECKLEVEL 25
#ACT
SETRANKLEVELNAME %s\LvL25
BREAK

this should make it so that when a player which is lvl 25 logs into the game he will have a rank saying LvL25.. but if u are a lvl 24 player and reach lvl 25 u will not get the ranking until u dont log out and in again.. because QManage works only on login (as u might already know)..

else if u want something better u can use QFunction and make it so it has this inside:
[@levelup]
#IF
CHECKLEVELEX = 25
#ACT
SETRANKLEVELNAME %s\LvL25
BREAK

this will make your char get and instant ranking when he just levels up to 25.. and keep it untill he doesnt get another ranking or until he doesnt log out.. if u log out u will loose the ranking and get back to normal..

to keep ranking memorized also after log out u might try to fix my script which im trying to make it work correctly here
 
Upvote 0