Jump to content
  • 0
Sign in to follow this  
chiba222

About checking player level stat

Question

Hi anyone,

I have a new script which need to check player level stat,

if player level 90, there is a self announce to show them information.

But I'm not sure it is possible.

Can anyone tell me what is that command or is it possible?

Thank you

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Check when what?
When login?
When level up?
When click on NPC?
 

When login:

 

OnPCLoginEvent:
if(BaseLevel == 90) 
    announce "announce", bc_self;
end;
 

 

When levelup:

 

OnPCBaseLvUpEvent:
if(BaseLevel == 90)
    announce "announce", bc_self;
end;
 

 

When Click:

 

npc_header {
if(BaseLevel == 90)
{
    announce "announce", bc_self;
} else {
  // not 90 lvl
}
}
 
Edited by Kubix

Share this post


Link to post
Share on other sites
  • 0

 

Check when what?

When login?

When level up?

When click on NPC?

 

When login:

 

OnPCLoginEvent:
if(BaseLevel == 90) 
    announce "announce", bc_self;
end;
 

 

When levelup:

 

OnPCBaseLvUpEvent:
if(BaseLevel == 90)
    announce "announce", bc_self;
end;
 

 

When Click:

 

npc_header {
if(BaseLevel == 90)
{
    announce "announce", bc_self;
} else {
  // not 90 lvl
}
}
 

 

Thank you so much!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.