Character randomly hangs due to vending script

Alexandria

New member
Messages
341
Points
0
Location
localhost
I'm having issues with a vending script: when you start using the shop, if don't happen to "close" the first dialog windows properly when the second one (items menu) pops up (let's say you started to drag items to your purchase windows); you will end "stuck" with no more options available. But  if you @go 0 then the "ghost" window making trouble will be visible. The script is just below, thanks for your help.

My npc: http://pastebin.com/s4f818c9

You help is very appreciated. Thank you.

PD: Sorry I posted in the wrong section but now I can't move this to the "support" section; would be nice if a moderator could put this topic there, thanks.

 
Last edited by a moderator:
always ... always do a close2; then callshop then end;

never callshop then close ...

mes "happy shopping";close2;callshop "shop",0;end;like this.

.

.

.

Code:
	mes "Here you go, happy shopping !";	mes "^00FF00----------------------------^000000";	CurrencyInfo( @Currency$ );	mes "^00FF00----------------------------^000000";	close2;	npcshopattach "cshop1";	callshop "cshop1",1;	end;
correct way
 
Back
Top