Hello, I am trying to make an item with callfunc, this should have 5 or more uses and when completing them the item should be deleted. Try that, but it has not worked for me, any help?
function script Count {
for( .@i = 1; #c == 5; #c-- ){
for( #c = 1; .@i + 1; #c- ){
dispbottom "You can use it again "+ #c +" times more.";
sc_start SC_INCREASEAGI,240000,10;
end;
}
}
if (#c == 5){
dispbottom "bla bla bla.";
delitem xxx,1;
end;
}
}
I mean, the item is never erased independently the amounts of times you use.
Question
Zutcer
Hello, I am trying to make an item with callfunc, this should have 5 or more uses and when completing them the item should be deleted. Try that, but it has not worked for me, any help?
function script Count { for( .@i = 1; #c == 5; #c-- ){ for( #c = 1; .@i + 1; #c- ){ dispbottom "You can use it again "+ #c +" times more."; sc_start SC_INCREASEAGI,240000,10; end; } } if (#c == 5){ dispbottom "bla bla bla."; delitem xxx,1; end; } }
I mean, the item is never erased independently the amounts of times you use.
Edited by ZutcerLink to comment
Share on other sites
2 answers 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.