Jump to content
  • 0
DrakeSky

Disable mini boss and boss card in Card Trader

Question

Hi! Scripters,

Please help me on this, I want to disable or blacklist the mini boss card and boss card on this card trader script.

TIA and Keep Safe!

Script Below:

prontera,151,163,6    script    Sample    100,{
    getinventorylist;
    for ([email protected] = 0; [email protected] < @inventorylist_count; [email protected]++) {
        if (getiteminfo(@inventorylist_id[[email protected]], 2) == 6) {
            [email protected]$ = [email protected]$ + getitemname(@inventorylist_id[[email protected]]) + ":";
            [email protected][getarraysize([email protected])] = @inventorylist_id[[email protected]];
            [email protected][getarraysize([email protected])] = @inventorylist_amount[[email protected]];
        }
    }
    
    [email protected] = 0;
    
    mes "Please select 3 cards...";
    while ([email protected] < 3) {
        if (getarraysize([email protected])) {
            mes "> 1x " + getitemname([email protected][[email protected]]);
            [email protected]++;
        }
        [email protected] = select([email protected]$) - 1;
        [email protected][getarraysize([email protected])] = [email protected][[email protected]];
        cleararray [email protected][[email protected]], ([email protected][[email protected]] < 1 ? 0 : ([email protected][[email protected]]-1)), 1;
        if ([email protected][[email protected]])
            [email protected]$ = replacestr([email protected]$, getitemname([email protected][[email protected]]), "");
        [email protected]++;
    }
    
    [email protected] = getarraysize([email protected]);
    mes "> 1x " + getitemname([email protected][[email protected]]);
    next;
    mes "Are you sure you want to trade these cards?";
    
    if (select("~ Yes:~ No") & 2) end;
    
    for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)
        delitem [email protected][[email protected]], 1;
    
    getitem rand(4001,4407), 1;
    
    close;
}

 

Edited by Patskie
codebox
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

wow !! who actually write out this formula, marvelous !!
me wanna give credits to whoever can write this formula out

anyways, all you have to do is just add an SQL query for it

https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.1r.txt

 

EDIT: found out ->

https://rathena.org/board/topic/124490-3-cards-of-your-choice-1-random-card/?do=findComment&comment=381238

Edited by AnnieRuru
Link to comment
Share on other sites

  • 0
20 hours ago, AnnieRuru said:

wow !! who actually write out this formula, marvelous !!
me wanna give credits to whoever can write this formula out

anyways, all you have to do is just add an SQL query for it

https://gist.github.com/AnnieRuru/d74dc61ff6b44301688f6c6e3e3d861c

 

EDIT: found out ->

https://rathena.org/board/topic/124490-3-cards-of-your-choice-1-random-card/?do=findComment&comment=381238

Thank you for this Ms. AnnieRuru!, if you don't mind me asking, is there a way that I can blacklist a specific card? Like if I want to remove poring card on the list I will put 4001 something like that. 

Link to comment
Share on other sites

  • 0
11 hours ago, Bringer said:

another version for boss card to boss card

open another topic, you always seems to asking questions on another person's topic and mess up the conversation
same goes to this -> https://rathena.org/board/topic/126009-deadbloody-branch-timer/?do=findComment&comment=386976
I'll ignore all your post on this forum from now on if you don't open a new topic, I'm backseat moderating atm
I don't have moderation power on rathena forum,

 

 

4 hours ago, DrakeSky said:

Like if I want to remove poring card on the list I will put 4001 something like that. 

https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.2r.txt

Link to comment
Share on other sites

  • 0
On 10/15/2020 at 12:50 AM, AnnieRuru said:

open another topic, you always seems to asking questions on another person's topic and mess up the conversation
same goes to this -> https://rathena.org/board/topic/126009-deadbloody-branch-timer/?do=findComment&comment=386976
I'll ignore all your post on this forum from now on if you don't open a new topic, I'm backseat moderating atm
I don't have moderation power on rathena forum,

 

 

https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.2r.txt

Oh my god! This is so perfect! AnnieRuru, thank you so much for your help. ^_^ 

Link to comment
Share on other sites

  • 0
On 10/15/2020 at 12:50 AM, AnnieRuru said:

open another topic, you always seems to asking questions on another person's topic and mess up the conversation
same goes to this -> https://rathena.org/board/topic/126009-deadbloody-branch-timer/?do=findComment&comment=386976
I'll ignore all your post on this forum from now on if you don't open a new topic, I'm backseat moderating atm
I don't have moderation power on rathena forum,

 

 

https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/choose3card_1randomcard/choose3card_1randomcard_0.2r.txt

By the way, Ms. AnnieRuru, how can I fix this blue message on the box? The blue message on the Please select 3 cards.

See attached file.

ct.jpg

Link to comment
Share on other sites

  • 0

it supposed to look like this
screen2020rAthena000.jpg

here is the documentation from script_commands.txt
https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1101-L1118

 

if your client don't support it then change F_MesItemInfo into getitemname as usual

Link to comment
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.   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.



×
×
  • Create New...

Important Information

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