How to limit the level of a map?

11/07/2013 23:28 microviper#1
Hello, I've been trying to setup a npc PKT, so it move the player level 1 to level 80 for a map, 81-160 and 161-255 map to another to another, the set could only 161-255 which used the code level <161, what code should I use to restrict the level to below 80 or below level 161? I tried to use the code to eliminate == convey more npc has limit of shares, if anyone can help ... thank you
11/07/2013 23:36 hio77#2
check the level is within X range before sending them to a map..

Code:
ACTION_USER_ATTR = 1001, // plays family member's revision and the inspection."attr opt data".attr may choose
// “level”, (+=, ==, <),
11/08/2013 00:13 microviper#3
Quote:
Originally Posted by hio77 View Post
check the level is within X range before sending them to a map..

Code:
ACTION_USER_ATTR = 1001, // plays family member's revision and the inspection."attr opt data".attr may choose
// “level”, (+=, ==, <),
+ = 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
11/08/2013 00:28 hio77#4
You want to be using the greater than sign, ad your checking equality rather than setting.
11/08/2013 00:52 idlemonkey#5
Quote:
Originally Posted by microviper View Post
+ = 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
11/08/2013 00:54 microviper#6
Quote:
Originally Posted by hio77 View Post
You want to be using the greater than sign, ad your checking equality rather than setting.
so I have to use the equal sign? == This code will cause a certain level can not enter the map, more if I had to do this for all convey example == 81 == 82 ... 254 == 255 == so that the npc has limit actions and does not allow me to do this maneuver
11/08/2013 01:10 idlemonkey#7
Quote:
Originally Posted by microviper View Post
so I have to use the equal sign? == This code will cause a certain level can not enter the map, more if I had to do this for all convey example == 81 == 82 ... 254 == 255 == so that the npc has limit actions and does not allow me to do this maneuver
you would use the == line to make it either allow or not allow that specific number only for instance if you made it ==100 everyone lvl 1-99 could enter but not 100 and everyone 101-255 could also enter

i dont think you can add more than one variable to the single action but u could use an id next

but like hio mentioned already use < or > it would be more efficient
11/08/2013 01:29 hio77#8
Do be aware, there ate line break limits. Your limited to about 15 commands before a request or it will die (the 15 may not be right, I don't remember exact. )
11/08/2013 06:32 funhacker#9
@hio77 - limit is based off a task call, so every cq_task entry that starts action code has its own limit


@OP - What you're trying to achieve will be done as they have mentioned. But some types won't allow for > signs so use what's been shown is allowed.
< 81 goto first pkt map or continue below
< 161 goto second map or
goto last map
11/08/2013 09:37 hio77#10
Quote:
Originally Posted by funhacker View Post
@hio77 - limit is based off a task call, so every cq_task entry that starts action code has its own limit


@OP - What you're trying to achieve will be done as they have mentioned. But some types won't allow for > signs so use what's been shown is allowed.
< 81 goto first pkt map or continue below
< 161 goto second map or
goto last map
yeah, forgot which was the limiting factor.. none the less, you dont really wanna be checking if each level is equal... 256 times...