Jump to content
  • 0

SOLVED : Error apple pointshop


Question

Posted (edited)

Hello, could someone explain to me why my shop in point shows me apples and not all the items that I put?

ro_prontera,122,247,5    script    Hunting Point Shop    861,{
    mes "[Points Hunting]";
    mes "Vous avez ^0000FF" + #HUNT_Q_POINTS + "^000000 points.";
    next;
    callshop "hunt_shop",1;
    end;
OnInit:
    waitingroom "Points Hunting",0;
    end;
}
pointshop    hunt_shop    -1,6232:30,50005:80,12922:100,510108:200,50000:200,12240:250,12622:3é00,60016:1000,7776:50

image.png?ex=67c1bf8e&is=67c06e0e&hm=ee6a5f2650be23db09346ab2d47922b46a888c0f49684159d59e76159409dd20&=

Edited by Yaziid91
solved

4 answers to this question

Recommended Posts

  • 0
Posted
3 hours ago, Akbare-2nd said:

try 

 

-	pointshop    hunt_shop    -1,##HUNT_Q_POINTS,6232:30,50005:80,12922:100,510108:200,50000:200,12240:250,12622:3000,60016:1000,7776:50

 

Thanks for your reply but it still doesn't work but I used another method everything works

SOLVED

 

// Boutique Hunting
ro_prontera,122,247,5	script	Hunting Point Shop	861,{
    mes "[Points Hunting]";
    mes "Vous avez ^0000FF" + #HUNT_Q_POINTS + "^000000 points.";
    next;
    
    if(select("Acheter:Annuler") == 2) {
        mes "[Points Hunting]";
        mes "Revenez quand vous voudrez dépenser vos points!";
        close;
    }
    
    mes "[Points Hunting]";
    mes "Ouverture de la boutique...";
    close2;
    
    // Appel de la boutique personnalisée
    callshop "hunt_shop", 1;
    npcshopattach "hunt_shop";
    end;

OnBuyItem:
    // Trouver le prix de l'objet
    for (set .@i, 0; .@i < getarraysize(.shop_items); .@i++) {
        if (.shop_items[.@i] == @bought_nameid) {
            set .@price, .shop_costs[.@i];
            break;
        }
    }
    
    // Calculer le coût total
    set .@total_cost, .@price * @bought_quantity;
    
    // Vérifier si le joueur a assez de points
    if (#HUNT_Q_POINTS < .@total_cost) {
        dispbottom "Vous n'avez pas assez de points de chasse!";
        end;
    }
    
    // Vérifier le poids de l'inventaire
    if (checkweight(@bought_nameid, @bought_quantity) == 0) {
        dispbottom "Votre inventaire est trop plein!";
        end;
    }
    
    // Effectuer l'achat
    set #HUNT_Q_POINTS, #HUNT_Q_POINTS - .@total_cost;
    getitem @bought_nameid, @bought_quantity;
    dispbottom "Achat effectué! Vous avez dépensé " + .@total_cost + " points. Il vous reste " + #HUNT_Q_POINTS + " points.";
    end;

OnInit:
    // Définir les articles et leurs coûts
    setarray .shop_items[0], 6232, 50005, 12922, 510108, 50000, 12240, 12622, 60016, 7776;
    setarray .shop_costs[0], 30, 80, 100, 200, 200, 250, 300, 1000, 50;
    
    // Créer la boutique
    npcshopdelitem "hunt_shop", 512;  // Effacer tout article existant
    
    // Ajouter chaque article avec son prix (en zeny, mais sera converti en points)
    for (set .@i, 0; .@i < getarraysize(.shop_items); .@i++) {
        npcshopadditem "hunt_shop", .shop_items[.@i], .shop_costs[.@i];
    }
    waitingroom "Points Hunting",0;
    end;
}

// Définition de la boutique
-	shop	hunt_shop	-1,512:-1
  • 0
Posted
4 hours ago, crazyarashi said:

From what I can see it's this part on the hunt_shop

 

12622:3é00

 

I have corrected this part; I hadn't seen it before, thanks. But I still have the same problem, and I just noticed that the NPC starts directly with ID 50005:80, skipping the first one.

  • 0
Posted
On 2/27/2025 at 8:57 PM, Yaziid91 said:

Hello, could someone explain to me why my shop in point shows me apples and not all the items that I put?

ro_prontera,122,247,5    script    Hunting Point Shop    861,{
    mes "[Points Hunting]";
    mes "Vous avez ^0000FF" + #HUNT_Q_POINTS + "^000000 points.";
    next;
    callshop "hunt_shop",1;
    end;
OnInit:
    waitingroom "Points Hunting",0;
    end;
}
pointshop    hunt_shop    -1,6232:30,50005:80,12922:100,510108:200,50000:200,12240:250,12622:3é00,60016:1000,7776:50

image.png?ex=67c1bf8e&is=67c06e0e&hm=ee6a5f2650be23db09346ab2d47922b46a888c0f49684159d59e76159409dd20&=

try 

 

-	pointshop    hunt_shop    -1,##HUNT_Q_POINTS,6232:30,50005:80,12922:100,510108:200,50000:200,12240:250,12622:3000,60016:1000,7776:50

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...