Jump to content
  • 0
Sign in to follow this  
Enemy

A Question with a NPC

Question

Just don't know why vip player ( lvl 1 player ) can't enter on the room.

 

prontera,154,187,5    script    VIP#oV1-1::OpçãoV    885,{cutin "mocseal_rin01",2;if (getgmlevel()<1) goto L_nvip;if (getgmlevel()>1) goto L_Vip;L_nvip:mes "[^1E90FF Teleportador VIP ^000000]";mes "Desculpe, mas você não é VIP.";mes "Torne-se Poderoso Acesse o site e compre já Seu VIP.";close2;cutin "",255;end;L_Vip:mes "[^1E90FF Teleportador VIP ^000000]";mes "Olá ^1E90FF"+strcharinfo(0)+"^000000.";mes "Deseja ir para a sala VIP?";next;menu "Ir Para Sala VIP",L_Sala;mes "[^1E90FF VIP ^000000]";mes "Volte quando quiser algo.";close;L_Sala:    warp "sec_in02",    161,    162;    end;}

any solution?

Edited by Enemy

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Any errors in console?

 

Try changing the last close to close2

 

no errors. i'll try that and edit if it worked.

Edited by Enemy

Share this post


Link to post
Share on other sites
  • 0

If they are exactly level 1 players, why are you checking whether they are less than or more than level 1? You are in a void if a player is exactly at level 1.

 

Your level 1 or greater operator should be this one: '>=', not '>'.

Share this post


Link to post
Share on other sites
  • 0

your problem

if (getgmlevel()<1) goto L_nvip;if (getgmlevel()>1) goto L_Vip;

you never checked for level equal to 1...

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.