Jump to content
  • 0
Sign in to follow this  
Helena

Function leaves clickable (invisible) chat bubble.

Question

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

1 answer to this question

Recommended Posts

  • 0

Try changing this

 

 

successremovecards .@part;
delitem 20318,1;
next;
mes "[Safe Un-Card Ticket]";
mes "Success!";
close;

 

to

 

 

close2;
successremovecards .@part;
delitem 20318,1;
dispbottom "[Safe Un-Card Ticket]";
dispbottom "Success!";
end;


I just tested with your version and it did not happen to me @@Helena. Are you using recent revision of Hercules? And what client are you using? it might be a client side problem.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.