Jump to content
  • 0

Multiple Item Costume Trader


playniks

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.03
  • Content Count:  44
  • Reputation:   2
  • Joined:  02/23/23
  • Last Seen:  

Hello! I would like to request multiple item costume trader wherein it has a callshop function. The NPC only accepts costumes and trade it to a Coin or points. Thanks...

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   10
  • Joined:  04/19/20
  • Last Seen:  

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.03
  • Content Count:  44
  • Reputation:   2
  • Joined:  02/23/23
  • Last Seen:  

On 1/31/2024 at 4:28 PM, Wazaby said:

 

Hello! It seems like it doesnt work anymore? And also I would like it to be callshop function wherein I can sell multiple costumes I want and trade it to points/item depends on the range per costume

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/29/24
  • Last Seen:  

What determines the exchange rate between costumes and coins/points? Is it based on rarity, complexity, or other factors?                                                                                                                                                wow classic gold

Edited by jannickz
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.03
  • Content Count:  44
  • Reputation:   2
  • Joined:  02/23/23
  • Last Seen:  

9 hours ago, jannickz said:

What determines the exchange rate between costumes and coins/points? Is it based on rarity, complexity, or other factors?

 All I want is just simple, exchange costume to a coin.. With the use of the malangdo exchange script, It seems that it only exchange 1 costume at a time.. I want it to have a callshop wherein multiple costume will be exchange rather than 1 by 1..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   10
  • Joined:  04/19/20
  • Last Seen:  

On 2/4/2024 at 4:25 PM, playniks said:

 All I want is just simple, exchange costume to a coin.. With the use of the malangdo exchange script, It seems that it only exchange 1 costume at a time.. I want it to have a callshop wherein multiple costume will be exchange rather than 1 by 1..

Is it possible for you to point to which npc or script? Or just post a snippet of the code that you want help with?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.03
  • Content Count:  44
  • Reputation:   2
  • Joined:  02/23/23
  • Last Seen:  

On 2/6/2024 at 11:45 AM, Wazaby said:

Is it possible for you to point to which npc or script? Or just post a snippet of the code that you want help with?

Quote

guildhall,101,93,3    script    Designer Fernan#eventhat    4_CAT_SAILOR5,{
    if (checkweight(1301,1) == 0) {
        mes "- Please stop here!! -";
        mes "- You have carried too much items, -";
        mes "- Therefore unable receive any item again, -";
        mes "- Please reduce your weight, -";
        mes "- And come back again later! -";
        close;
    }
    disable_items;
    mes "[Designer Fernan]";
    mes "^ff0000Make sure to storage first your main costumes to prevent destroying^000000";
    mes "^ff0000I'm not responsible if you accidentally click your costume, so please storage it first before exchanging.^000000";    
    mes "I am Designer Fernan, who has all kinds of cool costumes in the World.";
    mes "If you have any spare costume with you, let me swap it to costume coin!";
    next;
    if (select( "Exchange costume for Costume Coin", "Continue conversation" ) == 2) {
        mes "[Designer Fernan]";
        mes "Though I look out of shape right now, I used to be a well known fashion model and designer!";
        next;
        mes "[Designer Fernan]";
        mes "Don't pity me! I am well aware of my looks, but I like who I am inside.";
        close;
    }
    mes "[Designer Fernan]";
    mes "Oh, Do you have spare costumes? then I can exchange it for Costume Coin.";
    next;
    mes "- Rummaging -";
    next;
    // ===================================================================
    // =================== Costume Coin ===================
    // ===================================================================
    .@box_list[0] = 41002;        // Costume Coin
    setarray .@item_list_0[0],
    // HEADGEARS
        36202,
        36201,  
        36466;
        
    freeloop(1);    
    while(1) {
        for ( .@i = 0; .@i < 18; ++.@i ) {
            if (getiteminfo(.@box_list[.@i], ITEMINFO_TYPE) == -1)    // temporary check
                continue;
            .@size = getarraysize( getd(".@item_list_" + .@i) );
            for ( .@h = 0; .@h < .@size; ++.@h ) {
                .@id = getd( ".@item_list_" + .@i + "[" + .@h + "]" );
                if (getiteminfo(.@id, ITEMINFO_TYPE) == -1)    // temporary check
                    continue;
                if (isequipped(.@id)) {
                    mes "^ff0000You are still wearing a same item you want to dispose. Please move your equipped costume to your storage.^000000";
                    close;
                    }
                if(!isequipped(.@id)) {
                if (countitem(.@id) < 1)
                    continue;
                mes "[Designer Fernan]";
                mes "I see that you have a ^3131FF" + getitemname(.@id) + "^000000. Do you want to exchange this for a Costume Coin?";
                next;
                switch( select( "Exchange", "Look for something else", "Stop Exchanging" ) ) {
                case 1:
                    mes "[Designer Fernan]";
                    if (countitem(.@id) < 1)
                        mes "Oh~ Something suddenly disappeared...";
                    else {
                        mes "Exchange Completed.";
                        delitem .@id, 1;
                        getitem .@box_list[.@i], 1;
                    }
                    mes "Let me check you for another item to exchange...";
                    next;
                    break;
                case 2:
                    break;
                case 3:
                    mes "[Designer Fernan]";
                    mes "Meow? Where are you going?";
                    close;
                    }
                }
            }
        }
        mes "[Designer Fernan]";
        mes "Guess that is all.";
        next;
        if (select( "Look more", "Quit" ) == 2) {
            mes "[Designer Fernan]";
            mes "Bye~";
            close;
        }
    }
OnInit:
    initnpctimer;
    end;
OnTimer1000:
    showscript("Costume Exchanger");
    setnpctimer 0;
    end;
close;
}



I want it to have callshop func so I can sell multiple costumes instead of converting it one by one... Is there a solution for this? The original script came from re/merchants/malangdo_costume

FIXEDD THANKSS

Edited by playniks
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...