Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-04-12 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: QUICK Shopmenu question/issue. Please help. =)  (Read 254 times)

Offline [?]�

  • Level 5 Trained Intermediate
  • *****
  • Posts: 100
    • [?] Corps Online Community
QUICK Shopmenu question/issue. Please help. =)
« on: July 26, 2008, 10:29:53 PM »
I'm a nub with all the coding, but I recently installed the latest WCS mod.

Whenever we press shopmenu more than once, it actually opens multiple shopmenus.

So, if someone presses shopemenu 3 times, then they must hit 0 to exit 3 times for each shopmenu.  In other servers, if you were to press shopmenu twice, then it closes the first one and reopens another one.

Is there a way to fix this issue?  Please feel free to post here or contact me via Friends List or xFire.

Thank you in advance for any assistance.  It will be greatly appreciated.




Offline Phat_Wizard

  • <WCS coder>
  • Level 7 Expert
  • *****
  • Posts: 229
Re: QUICK Shopmenu question/issue. Please help. =)
« Reply #1 on: July 26, 2008, 10:57:40 PM »
The new shopmenu in 0.77 doesn't close by by pressing 0 once because it uses popup which can "queue" multiple menus, and when I looked at the code it made perfect sense as there was nothing stopping WCS from sending the user multiple copies of the menu.

If you want you can try using the attached file in which i added a check to see if the player has the menu and if they do don't send it again.
PS: I did not test this as it was a very simple change, also always back-up your files before overwriting them.

[attachment deleted by admin - older than 200 days!]

Offline [?]�

  • Level 5 Trained Intermediate
  • *****
  • Posts: 100
    • [?] Corps Online Community
Re: QUICK Shopmenu question/issue. Please help. =)
« Reply #2 on: July 27, 2008, 12:50:56 PM »
You are the man, and I appreciate your help in this matter.  I truly do.  I will try this out, and I will reply as soon as possible.

>.>;  Spent all night/morning scrim'ing.  Gotta get some sleep, and I will try it & reply by this evening.