When using get fight rank or get trade rank in SE you only get a number between 0 and 10.000.000, that doesn´t represent the real rank (1-31 ).
To get the real rank and the rank name, i wrote this little library script:
http://www.merchant-haven.de/forum/down ... l&df_id=55
The values are returned as array:
Rank [0] = fight ranknummer (1-31)
Rank [1] = fight rankname
Rank [2] = trade ranknummer (1-31)
Rank [3] = trade rankname
This library was made for inclusion in other scripts.
I can´t guarantee, that all values are correct. The values are taken from a list in the german tutorials, i couldn´t test them.
Note: If you want to use the Names, you need the t-files, if they are not included the name will be a readtext, but the ranknumber is correct.
[script][lib][21.04.08]get rank as number and name
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 1431
- Joined: Wed, 7. Nov 07, 19:48
[script][lib][21.04.08]get rank as number and name
Last edited by Trickmov on Sat, 19. Jul 08, 16:03, edited 3 times in total.
-
- Posts: 1431
- Joined: Wed, 7. Nov 07, 19:48
-
- Posts: 22476
- Joined: Sat, 23. Apr 05, 21:42
-
- Posts: 1431
- Joined: Wed, 7. Nov 07, 19:48
Couldn´t find anything like it, only the list in the german tutorials. I wished i would have found something like it, because writing 62 if then or else if then isn´t so funny.jlehtone wrote:deja vu. I'm quite sure I've seen similar script around. Not that it really matters, as it is handy to have.

Trickmov