Jump to content
  • 0
Sign in to follow this  
Chasewalk

not showing item shop

Question

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([email protected]=0; [email protected]<getarraysize(.Shop); [email protected]+=2)
        npcshopadditem "woe_shop",.Shop[[email protected]],.Shop[[email protected]+1];

    case 2: 
        mes "Thats good to hear!";
        close;
        }
}
-    pointshop    woe_shop    -1,#WOEPOINTS,909:-1

shop.png

shop.png.40567ebad376acc8127f125587c948f4_1.jpg

Edited by Chasewalk

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

problem solved~

Edited by Chasewalk

Share this post


Link to post
Share on other sites
  • 0
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([email protected]=0; [email protected]<getarraysize(.Shop); [email protected]+=2)
		npcshopadditem "woe_shop",.Shop[[email protected]],.Shop[[email protected]+1];
	end;
}

-	pointshop	woe_shop	-1,#WOEPOINTS,909:-1

 

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.