- 0
Sign in to follow this
Followers
0
Function leaves clickable (invisible) chat bubble.
Asked by
Helena
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
Helena
No registered users viewing this page.
By using this site, you agree to our Terms of Use.
Hello all,
i wanted to attach the old card remover to an item so i turned it into a callfunc thing.
Everything works perfectly except, when I'm done removing cards, it leaves a clickable invisible chat bubble on the cell I used it. I'm not sure why it does this, if i cancel the progress somewhere in the middle, it doesn't do this, only when the progress it a success.
Does anyone know why? I've used different endings of the script (delitem with close only, close2 with delitem after, some ends, etc)
Hoping for someone who can help.
function script F_DeCard { set .faildestroy,0; // Should the card remover have a chance of failure that destroys items? 1 = Yes, 0 = No. mes "[Safe Un-Card Ticket]"; mes "Which item would you like to be un-carded? Take note that the item has to be equipped!"; next; setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3"; set .@menu$,""; for( set .@i,1; .@i <= 10; set .@i,.@i+1 ) { if( getequipisequiped(.@i) ) set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@menu$, .@menu$ + ":"; } set .@part,select(.@menu$); if(!getequipisequiped(.@part)) { mes "[Safe Un-Card Ticket]"; mes "You're not wearing anything there that I can remove cards from."; close; } if(getequipcardcnt(.@part) == 0) { mes "[Safe Un-Card Ticket]"; mes "There are no cards compounded on this item."; close; } set .@cardcount,getequipcardcnt(.@part); if (!checkweight(1202,(.@cardcount+1))) { mes "^3355FFYou're carrying too much stuff. Put some items in Kafra Storage before proceeding."; close; } mes "[Safe Un-Card Ticket]"; mes "This item has " + .@cardcount + " card(s) compounded on it. Do you wish to proceed?"; next; if(select("Yes.:Nevermind.") == 2) { close; } successremovecards .@part; delitem 20318,1; next; mes "[Safe Un-Card Ticket]"; mes "Success!"; close; }Share this post
Link to post
Share on other sites