Quote:
Originally Posted by microviper
+ = is the code used for the player to win a level? which I can use to lower level i put for example can only enter the map below to convey to players level 100 ?
8220010 8220015 8220011 1001 0 level +=
8220011 8220020 8220012 123 3 2 00:00 2 23:59
8220012 8220020 8220013 123 3 4 21:00 4 21:05
8220013 8220020 8220014 123 3 0 21:00 0 21:05
8220020 0 0 122 0 8220021 8220022 8220023 8220024 8220021 8220022 8220023 8220024
8220021 0 0 1003 0 9783 102 110
8220022 0 0 1003 0 9783 78 57
8220023 0 0 1003 0 9783 112 93
8220024 0 0 1003 0 9783 46 84
|
you could write your action with type 1051 to give a player levels
but its unclear what ur trying to do
what hio said will check for a level as well as this action type he "isnt" wrong this is just another way to check .... as well as add or remove levels
but it seems to me like you want this specially for players lower than level 100 then you will have to add a variable for that before this though such as > or < you can also use == to check if it is a specific number
Code:
9 10 11 1051 0 level [>,<,==,+=,-=][somenumber]
so something like
Code:
8220010 8220011 8220012 1051 0 level < 100
8220011 8220013 0 1022 0 gmlog/action_log [someid],%user_id,[somewords here]
8220012 0 0 126 0 your~level~is~too~low. 0
8220013 8220014 0 1051 0 level += [somenumber]
8220014 0 0 126 0 you~have~a~new~level. 0
note: this is just as an example you would definately have to refine this to make it work for you ....
example: if you give more than 1 level per win ... the person at level 99 would have an advantage
note: you may notice I added a gm action log as well this is to allow you to check the usage of this action in your logs in case of a possible exploit ..... which is something you should do for things that award stuff like this