Jump to content
  • 0

change payment method


IsabelaFernandez

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

I would like to change the payment method for the item with ID 7420 for example. currently the script is working ok, but it is only for zeny

thanks guys, much love ❤️ 

 

Spoiler

ayothaya.gat,150,158,4    script    Equipamentos Campais    691,{
    mes "Equipamentos Campais";
    mes "Olá!";
    mes "Gostaria de olhar nossa loja Campal?";
    next;
    switch(select("Armas:Acessórios:Variados:Hoje não")) {
        case 1: // Pet Food
            mes "Vou mostrar as armas Campais para você.";
            close2; // Closes the NPC dialog without ending the script
            callshop "PetFoodShop",1; // Only Sell window
            end; // We end the script just after opening the shop so no need to break
        case 2: // Pet Armor
            mes "Vou mostrar os acessórios Campais para você.";
            callshop "PetArmorShop",1;
            end;
        case 3: // Taming Items
            mes "empty.";
            callshop "TamingItemsShop",1;
            end;
        default: // Any other case not covered above. "Not today" in this example.
            mes "Te vejo em breve.!";
            close; // This statement closes and ends the script so no need to end again
    }
    // No need to close or end anything at this point
}

// Please add yourself the items you want to sell, last one doesn't need a comma
-    shop    PetFoodShop    -1,13036:-1,13411:-1,
-    shop    PetArmorShop    -1,2720:-1,2721:-1,
-    shop    TamingItemsShop    -1,

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

4 hours ago, IsabelaFernandez said:

I would like to change the payment method for the item with ID 7420 for example. currently the script is working ok, but it is only for zeny

thanks guys, much love ❤️ 

 

  Hide contents

ayothaya.gat,150,158,4    script    Equipamentos Campais    691,{
    mes "Equipamentos Campais";
    mes "Olá!";
    mes "Gostaria de olhar nossa loja Campal?";
    next;
    switch(select("Armas:Acessórios:Variados:Hoje não")) {
        case 1: // Pet Food
            mes "Vou mostrar as armas Campais para você.";
            close2; // Closes the NPC dialog without ending the script
            callshop "PetFoodShop",1; // Only Sell window
            end; // We end the script just after opening the shop so no need to break
        case 2: // Pet Armor
            mes "Vou mostrar os acessórios Campais para você.";
            callshop "PetArmorShop",1;
            end;
        case 3: // Taming Items
            mes "empty.";
            callshop "TamingItemsShop",1;
            end;
        default: // Any other case not covered above. "Not today" in this example.
            mes "Te vejo em breve.!";
            close; // This statement closes and ends the script so no need to end again
    }
    // No need to close or end anything at this point
}

// Please add yourself the items you want to sell, last one doesn't need a comma
-    shop    PetFoodShop    -1,13036:-1,13411:-1,
-    shop    PetArmorShop    -1,2720:-1,2721:-1,
-    shop    TamingItemsShop    -1,

 

Use Dynamic shop you can also see how the script works

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

6 hours ago, IsabelaFernandez said:

I would like to change the payment method for the item with ID 7420 for example. currently the script is working ok, but it is only for zeny

thanks guys, much love ❤️ 

 

  Hide contents

ayothaya.gat,150,158,4    script    Equipamentos Campais    691,{
    mes "Equipamentos Campais";
    mes "Olá!";
    mes "Gostaria de olhar nossa loja Campal?";
    next;
    switch(select("Armas:Acessórios:Variados:Hoje não")) {
        case 1: // Pet Food
            mes "Vou mostrar as armas Campais para você.";
            close2; // Closes the NPC dialog without ending the script
            callshop "PetFoodShop",1; // Only Sell window
            end; // We end the script just after opening the shop so no need to break
        case 2: // Pet Armor
            mes "Vou mostrar os acessórios Campais para você.";
            callshop "PetArmorShop",1;
            end;
        case 3: // Taming Items
            mes "empty.";
            callshop "TamingItemsShop",1;
            end;
        default: // Any other case not covered above. "Not today" in this example.
            mes "Te vejo em breve.!";
            close; // This statement closes and ends the script so no need to end again
    }
    // No need to close or end anything at this point
}

// Please add yourself the items you want to sell, last one doesn't need a comma
-    shop    PetFoodShop    -1,13036:-1,13411:-1,
-    shop    PetArmorShop    -1,2720:-1,2721:-1,
-    shop    TamingItemsShop    -1,

 

The solution depends on the payment method you want to use.
If you want to use cashpoints or kafrapoints as currency, you can replace shop at the bottom with cashshop.
If you want to use items as currency, you can use itemshop.
Finally, if you want to use some variable where the currency is stored, you can use pointshop.

There are other types of shops available:
cashshop - use "cashshop" in place of "shop" to use the Cash Shop interface, allowing
you to buy items with special points that are stored as account variables
called  #CASHPOINTS and #KAFRAPOINTS. This type of shop will not allow you to sell
items at it, only make purchases. The layout used to define sale items still count, and
"<price>" refers to how many points will be spent purchasing the them.

"itemshop" and "pointshop" use the Shop interface, allowing you to buy items with a specific
item or special points from a variable. 'pointshop' only supports permanent character variables,
temporary character variables, permanent local account variables or permanent global account
variables. These variables must be of integer type, not string. 'discount' flag is an
optional value which makes the price at that shop become affected by discount skill.

 

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