Jump to content
  • 0

Title system help


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...