Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ________________ ______ ________
- ___ |_____ /________ /______ ___ __ \_____
- __ /| | __ /_ __ \_ __ \ _ \ __ /_/ / __ \
- _ ___ / /_/ / / /_/ / /_/ / __/ _ _, _// /_/ /
- /_/ |_\__,_/ \____//_.___/\___/ /_/ |_| \____/
- */
- sec_in02.gat,139,167,2 script Potion/Scroll#shop_based 4_F_KAFRA1,{
- doevent "healer_shop_main::OnTalk";
- }
- - shop healer_shop_npc_main -1,909:-1
- - script healer_shop_main -1,{
- OnInit:
- .shop_npc_name$ = "healer_shop_npc_main";
- npcshopdelitem(.shop_npc_name$, 909);
- npcshopadditem(.shop_npc_name$, 14516, 5000, 14593, 5000);
- npcshopadditem(.shop_npc_name$, 12220, 5000, 12219, 5000, 14517, 5000, 14519, 5000);
- npcshopadditem(.shop_npc_name$, 14520, 5000, 14518, 5000, 14589, 5000, 14588, 5000);
- npcshopadditem(.shop_npc_name$, 14590, 5000, 645, 5000, 656, 5000, 657, 5000, 14542, 5000);
- npcshopadditem(.shop_npc_name$, 14544, 5000, 12119, 5000, 12120, 5000, 12118, 5000, 12121, 5000);
- end;
- OnTalk:
- npcshopattach .shop_npc_name$, 1;
- callshop .shop_npc_name$, 1;
- end;
- OnBuyItem:
- .@size = getarraysize(@bought_nameid);
- while (.@i < .@size) {
- for (.@x = 0; .@x < @bought_quantity[.@i]; .@x++) {
- consumeitem @bought_nameid[.@i];
- if (.@x && .@x % 50 == 0)
- sleep2 1;
- }
- .@i++;
- }
- npcshopattach .npc_name$, 0;
- npctalk "Enjoy your buff.", "Healer#shop_based";
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement