Jump to content
  • 0
Sign in to follow this  
Alexandria

Character randomly hangs due to vending script

Question

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.

Edited by Alexandria

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

i got the same error also..

 

 

 

why dont u use this.. this is more optimized, this is what im using until now

 

http://upaste.me/13aa11020c806e7e3

 

u can set diff. shops / in the same time diff currency. just give it a try and u will love it..

 

this is dynamic shop by euphy.

Share this post


Link to post
Share on other sites
  • 0

always ... always do a close2; then callshop then end;

never callshop then close ...

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

.

.


.

.

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

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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