Yaziid91 Posted February 27 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 04/20/19 Last Seen: Yesterday at 07:55 PM Share Posted February 27 (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 Edited March 2 by Yaziid91 solved Quote Link to comment Share on other sites More sharing options...
0 Yaziid91 Posted March 2 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 04/20/19 Last Seen: Yesterday at 07:55 PM Author Share Posted March 2 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 Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted February 27 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 238 Joined: 02/11/17 Last Seen: 7 hours ago Share Posted February 27 From what I can see it's this part on the hunt_shop 12622:3é00 Quote Link to comment Share on other sites More sharing options...
0 Yaziid91 Posted February 27 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 66 Reputation: 0 Joined: 04/20/19 Last Seen: Yesterday at 07:55 PM Author Share Posted February 27 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. Quote Link to comment Share on other sites More sharing options...
0 Akbare-2nd Posted March 2 Group: Members Topic Count: 5 Topics Per Day: 0.01 Content Count: 59 Reputation: 3 Joined: 06/11/23 Last Seen: 12 hours ago Share Posted March 2 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 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 Quote Link to comment Share on other sites More sharing options...
Question
Yaziid91
Hello, could someone explain to me why my shop in point shows me apples and not all the items that I put?
solved
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.