• Due to recent spam attacks that heavily used compormised accounts we did reset all user passwords, AGAIN, if it happens and your account got compromised again due to re-used passwords your account will be perma-banned.

About checking player level stat

chiba222

New member
Messages
20
Points
0
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

 
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:

Code:
npc_header {
if(BaseLevel == 90)
{
    announce "announce", bc_self;
} else {
  // not 90 lvl
}
}
 
 
Last edited by a moderator:
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!

 
Back
Top