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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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