[FilterScript] XP/LVL System
#1

Hi, I present you my Level and XP system where you need to get, more and more xp to reach bigger level. Like RunesCape or Skyrim.

Pastebin

This sistem require dini, zcmd and sscanf inc. Saves to file. You can change the destination. If you are not familiar to dini or zcmd, its easy to change. Very easy to put script to GM.

Command /xp can use JUST rcon admin, But if you put code to GM you can use your own variable.

On top is MAX_LEVEL, there is max player level, if you dont want to be a level limit, just delete 66 row:
Код:
if(lvl[playerid] == MAX_LEVEL) return 1;
In stock numbers 300 and 7.0 are totaly RANDOM. With them I got the result I wanted.

And here is required xp for each level.

Quote:

Level: 1 Xp: 0
Level: 2 Xp: 83
Level: 3 Xp: 174
Level: 4 Xp: 276
Level: 5 Xp: 388
Level: 6 Xp: 512
Level: 7 Xp: 650
Level: 8 Xp: 801
Level: 9 Xp: 969
Level: 10 Xp: 1154
Level: 11 Xp: 1358
Level: 12 Xp: 1584
Level: 13 Xp: 1833
Level: 14 Xp: 2107
Level: 15 Xp: 2411
Level: 16 Xp: 2746
Level: 17 Xp: 3115
Level: 18 Xp: 3523
Level: 19 Xp: 3973
Level: 20 Xp: 4470
Level: 21 Xp: 5018
Level: 22 Xp: 5624
Level: 23 Xp: 6291
Level: 24 Xp: 7028
Level: 25 Xp: 7842
Level: 26 Xp: 8740
Level: 27 Xp: 9730
Level: 28 Xp: 10824
Level: 29 Xp: 12031
Level: 30 Xp: 13363
Level: 31 Xp: 14833
Level: 32 Xp: 16456
Level: 33 Xp: 18247
Level: 34 Xp: 20224
Level: 35 Xp: 22406
Level: 36 Xp: 24815
Level: 37 Xp: 27473
Level: 38 Xp: 30408
Level: 39 Xp: 33648
Level: 40 Xp: 37224
Level: 41 Xp: 41171
Level: 42 Xp: 45529
Level: 43 Xp: 50339
Level: 44 Xp: 55649
Level: 45 Xp: 61512
Level: 46 Xp: 67983
Level: 47 Xp: 75127
Level: 48 Xp: 83014
Level: 49 Xp: 91721
Level: 50 Xp: 101333
Level: 51 Xp: 111945
Level: 52 Xp: 123660
Level: 53 Xp: 136594
Level: 54 Xp: 150872
Level: 55 Xp: 166636
Level: 56 Xp: 184040
Level: 57 Xp: 203254
Level: 58 Xp: 224466
Level: 59 Xp: 247886
Level: 60 Xp: 273742
Level: 61 Xp: 302288
Level: 62 Xp: 333804
Level: 63 Xp: 368599
Level: 64 Xp: 407015
Level: 65 Xp: 449428
Level: 66 Xp: 496254
Level: 67 Xp: 547953
Level: 68 Xp: 605032
Level: 69 Xp: 668051
Level: 70 Xp: 737627
Level: 71 Xp: 814445
Level: 72 Xp: 899257
Level: 73 Xp: 992895
Level: 74 Xp: 1096278
Level: 75 Xp: 1210421
Level: 76 Xp: 1336443
Level: 77 Xp: 1475581
Level: 78 Xp: 1629200
Level: 79 Xp: 1798808
Level: 80 Xp: 1986068
Level: 81 Xp: 2192818
Level: 82 Xp: 2421087
Level: 83 Xp: 2673114
Level: 84 Xp: 2951373
Level: 85 Xp: 3258594
Level: 86 Xp: 3597792
Level: 87 Xp: 3972294
Level: 88 Xp: 4385776
Level: 89 Xp: 4842295
Level: 90 Xp: 5346332
Level: 91 Xp: 5902831
Level: 92 Xp: 6517253
Level: 93 Xp: 7195629
Level: 94 Xp: 7944614
Level: 95 Xp: 8771558
Level: 96 Xp: 9684577
Level: 97 Xp: 10692629
Level: 98 Xp: 11805606
Level: 99 Xp: 13034431

Reply
#2

Any coments? maybe suggesions?
Reply
#3

Script is easily hack able, Use server sided variables instead that way would be impossible to hack...
Reply
#4

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
Script is easily hack able, Use server sided variables instead that way would be impossible to hack...
lol what?
Reply
#5

AFAIK, the score is server-side, so this is impossible to hack from client side.
Reply
#6

You don't understand, he is using SetPlayerScore a random hacker can just come set his score to level 99 13034431 xp, using let's say a variable from your register system as like Player[playerid][xp] += amount); or whatever...
Reply
#7

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
Script is easily hack able, Use server sided variables instead that way would be impossible to hack...
Lol what?

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
lol what?
yup

Quote:
Originally Posted by kurta999
Посмотреть сообщение
AFAIK, the score is server-side, so this is impossible to hack from client side.
Yes, I am using.

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
You don't understand, he is using SetPlayerScore a random hacker can just come set his score to level 99 13034431 xp, using let's say a variable from your register system as like Player[playerid][xp] += amount); or whatever...
It seems you don't understand.

I have variables like:
Код:
new XP[MAX_PLAYERS]; //player xp
new lvl[MAX_PLAYERS]; //player lvl
This is server sided? Am I right?

And here is checking and changing score:
Код:
if(GetPlayerScore(playerid) != lvl[playerid])
                {
                        SetPlayerScore(playerid,lvl[playerid]);
                }
Not every blind can see.

But yes, they can set score to whatever they want as long as CheckLevel(playerid) is not called. You can just put this to OnPlayerUpdate or timer.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)