Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2013-01-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

Author Topic: War3Source shoop request  (Read 1294 times)

fantek

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
War3Source shoop request
« on: December 01, 2012, 10:11:01 AM »
Hi. I have a question orRequests.Is it possible when someone buys a item in stock and  hi is in possession of it until  of the change it?
For example: I buy boots of speed and I dont wan't buy him every time when I die. I want to set price item about 150 gold and when someon buy it have it forever. Is this possible? (In Team Fortress 2)


Sorry for my poor English

Remy Lebeau

  • Sr. Member
  • ****
  • Posts: 488
    • View Profile
    • Seven Sins Gaming
Re: War3Source shoop request
« Reply #1 on: December 01, 2012, 02:57:58 PM »
If you remove the line from ondeath, wouldn't the player only keep it until map change?  It seems to me that the request is that you keep it long term, which presumably would require writing the item purchase to the war3source database...
STEAM PROFILE

NEW CS:GO SERVER:

Revan

  • Hero Member
  • *****
  • Posts: 503
    • View Profile
Re: War3Source shoop request
« Reply #2 on: December 01, 2012, 05:57:17 PM »
shopmenu2 items, don't they last until mapchange?
« Last Edit: December 01, 2012, 06:18:42 PM by Revan »
#war3source on gamesurge

fantek

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: War3Source shoop request
« Reply #3 on: December 02, 2012, 05:29:55 AM »
Remy Lebeau you hit in the heart of the matter. "presumably would require writing the item purchase to the war3source database..." that was it.

So it is possible to someon add this to war3source?

DustinH

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: War3Source shoop request
« Reply #4 on: November 12, 2014, 10:14:49 PM »
For anyone else looking into this issue, I was able to modify my items to persist through death and only reset on map change by modifying War3Source_ShopItems.sp

For example, to change the HE gloves to not dropable change...

iShopitem[ITEM_GLOVES] = War3_CreateShopItemT("glove", 5);

to

iShopitem[ITEM_GLOVES] = War3_CreateShopItemT("glove", 5, false);