Chasewalk Posted January 11, 2021 Group: Members Topic Count: 27 Topics Per Day: 0.02 Content Count: 94 Reputation: 0 Joined: 10/17/20 Last Seen: March 8, 2021 Share Posted January 11, 2021 (edited) Hello i'm here again! the script is working fine but items not displayed in the shop thanks again switch(select("I want to check shop:I'm good thank you..")) { case 1: callshop "woe_shop",4; end; // Shop items: <ID>,<point cost> setarray .Shop, 4001,1, 4004,1, 4033,1, 4196,1, 4197,25, 4054,50, 4174,75, 4047,100; npcshopdelitem "woe_shop",909; for(.@i=0; .@i<getarraysize(.Shop); .@i+=2) npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1]; case 2: mes "Thats good to hear!"; close; } } - pointshop woe_shop -1,#WOEPOINTS,909:-1 Edited January 13, 2021 by Chasewalk Quote Link to comment Share on other sites More sharing options...
0 Chasewalk Posted January 13, 2021 Group: Members Topic Count: 27 Topics Per Day: 0.02 Content Count: 94 Reputation: 0 Joined: 10/17/20 Last Seen: March 8, 2021 Author Share Posted January 13, 2021 (edited) problem solved~ Edited January 13, 2021 by Chasewalk Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 15, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 15, 2021 prontera,155,181,5 script Sample 757,{ switch(select("I want to check shop", "I'm good thank you..")) { case 1: callshop "woe_shop",4; end; case 2: mes "Thats good to hear!"; break; } close; OnInit: // Shop items: <ID>,<point cost> setarray .Shop, 4001,1, 4004,1, 4033,1, 4196,1, 4197,25, 4054,50, 4174,75, 4047,100; npcshopdelitem "woe_shop",909; for(.@i=0; .@i<getarraysize(.Shop); .@i+=2) npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1]; end; } - pointshop woe_shop -1,#WOEPOINTS,909:-1 Quote Link to comment Share on other sites More sharing options...
Question
Chasewalk
Hello i'm here again! the script is working fine but items not displayed in the shop thanks again
switch(select("I want to check shop:I'm good thank you..")) {
case 1:
callshop "woe_shop",4;
end;
// Shop items: <ID>,<point cost>
setarray .Shop,
4001,1,
4004,1,
4033,1,
4196,1,
4197,25,
4054,50,
4174,75,
4047,100;
npcshopdelitem "woe_shop",909;
for(.@i=0; .@i<getarraysize(.Shop); .@i+=2)
npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1];
case 2:
mes "Thats good to hear!";
close;
}
}
- pointshop woe_shop -1,#WOEPOINTS,909:-1

Edited by ChasewalkLink to comment
Share on other sites
2 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.