Help with making a quest level requirement
I don't see a thing wrong with this, it does not work correctly though. If anyone sees something broken please point it out for me. This quest is only supposed to send you if you are level 50 or above. On my tests it appears to send you no matter what level though :(
Code:
sub EVENT_SAY { |
$ulevel <= 50
That means less than or equal to 50, which is everyone if your server caps at 50 :P Try this: $ulevel >= 50 |
Yeah that was a typo in the first version, caught it right after posting, changed to your suggestion and it still sends me at lvl 1 :(
Also just a question, does movegrp work? Seems like I remember last time I used it, which was like a year ago. It was broken. |
I use both movegrp and movepc at the same time. The problem with movegrp is that I think it forgets to send the initiator, so movepc will fix that.
Are you sure you did a #reloadquest after saving your quest with the fix in it? That should work just fine. If it still doesn't try this: Code:
sub EVENT_ITEM { |
Figured out what was wrong...Man I'm a noob lol. It seems if you have the GM flag up, it will ignore the >= 50 and send you anyways hehe ;p Turned GM off and did a reloadpl and it no longer sends you.
Thanks for the quick help Trev, sorry it was a false alarm :) |
All times are GMT -4. The time now is 03:37 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.