GyokuAkuma Posted December 28, 2017 Posted December 28, 2017 (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 December 28, 2017 by GyokuAkuma Quote
0 Sehrentos Posted January 15, 2018 Posted January 15, 2018 (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 January 15, 2018 by Sehrentos Addition Quote
Question
GyokuAkuma
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?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.