Jump to content
  • 0

Title system help


GyokuAkuma

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/21/17
  • Last Seen:  

Hi everyone, i need some help with this.

i have 1 NPC that gives titles if someone have the requeriment for example:

    if (title$ == "YOO") {if (countitem(19009) == 1) {set title$, "YOO2"; next; mes "Yosh!, Congrats boy"; announce "[Ranking] "+strcharinfo(0)+" Everyone Praise him",bc_blue|bc_all; close;}}

 

and another one making the opposite

 

-    script    testtitles    -1,{
OnPCLoginEvent:
    
    if (title$ == "YOO2") {if (countitem(19009) == 0) {set title$, "YOO";bc_blue|bc_all;}}


end;
}

But does nott work at all(the testtitles script don't remove the title YOO2), you guys can help me?

 

Edited by GyokuAkuma
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

Hey,

Remove the first if check and it should work. It will change the title$ to YOO2 if player has the item and to YOO if not.

Or like this in both cases:

if (countitem(19009)) {
  set title$, "YOO2";
} else {
  set title$, "YOO";
}

 

Edited by Sehrentos
Addition
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...