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 2009-12-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 15, 2009, 09:04:30 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2 3   Go Down
  Print  
Author Topic: [shop] Shopitem and shopinfo howto *updated*  (Read 3028 times)
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« on: March 07, 2007, 03:30:27 PM »

Here is a short howto for the shopmenu and shopinfo.

Shopmenu: wcs/WCSshop/es_WCSshop_db.txt

you'll find there a template for new shopitems:

Code:
//  Format:
//  "number"                   // unique ID *New: can be a unique name without spaces!
//  {
//    "name"        "Name"     // The name of the item, keep it short
//    "description" "text"     // Description of the item
//    "category"    "number"   // number is 1-5, sorts the item in the category enhancements, powerup, attack, defense, specials
//    "cost"        "cost"     // The cost of the item
//    "level"       "number"   // Required level to buy/use this item, default is 0
//    "dab"         "0/1/2"    // Player must to be dead (0), alive (1) or both (2) to buy
//    "duration"    "number"   // only this round (0) or until death (1), doesn't work with player_buy
//    "itemconfig"  "type"     // Valid types are: player_buy (default), player_death,
//                             // player_attacker, player_victim, player_spawn, player_say, player_bomb, player_defuse
//                             // the cmd is executed on this event
//    "cmdbuy"      "code"     // The command is run on purchase
//    "cmdactivate" "code"     // The command is run when item is activated, not used with player_buy
//  }
// in CS:S maximum HP is 511, maximum armor is 127, higher values will start at 0 again

Notice: category is new in v0.70, and also multilanguage support !

Shopmenu: wcs/WCSshop/es_WCSshop_cat_db.txt
You can create up to NINE shop categories, with each max. NINE items
Code:
"WCSshop_cat"
{
  "1"
  {
    "name" "wcs_lng_s_cenh"
    "descr" "wcs_lng_s_cenhd"
  }
 
  "2"
  {
    "name" "new category name"
    "descr" "don't know whats in it"
  }
}


I give you the example of "Periapt of Health" and show you how it works
Code:
"4"
  {
  "name"        "wcs_lng_s_periapthp"
  "description" "wcs_lng_s_periapthpd"
  "category"    "2"
  "cost"        "6500"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "itemconfig"  "player_spawn"
  "cmdbuy"      "es est_Health event_var(userid) + 50"
  "cmdactivate" "es est_Health event_var(userid) + 50"

name & description
You could still write here "Periapt of Health" or whatever, but with the new multilanguage support, you can just edit the "wcs/WCSlanguage/es_WCSlanguage_db.txt" and create a new entry "wcs_lng_s_periapthp" "Periapt of Health" and the same for the language of your choice.

category
Since v0.70, there are 5 categorys to get fast to the item you want to buy:
enhancements, powerup, attack, defense, specials
Give here the number of the category, each can keep up to 9 items, and you CAN create a new category, see es_WCSshop.txt for details. But if you're not experienced with ES, you should stick to this 5 categories.
The Periapt is an powerup item.
* Since 0.76+, you can create your own categories.

cost
How much money ? Counts same as credits in DOD:S
The Periapt costs $6500, its not cheap, but it should give you every round +50HP

level
Minimum level (current race level !), 0 unlocks for all players

dab
allow buy on Death=0, Alive=1, or Both=2
The Periapt can be bought only if the player is alive ! (1)

duration
You can define if the player can hold the item over the round. If you set this to 1, the player has this item until death. If this is 1, cmdactivate should not be empty !
The Periapt will be a "permanent" item, until the player dies, so value is 1

itemconfig
When should the code be executed ?
player_attacker, player_victim, player_spawn, player_say, player_bomb, player_defuse
The Periapt gives health, so player_spawn is the correct choice.

cmdbuy & cmdactivate
cmdbuy is executed when the player BUYS the item
cmdactivate is executed on the ITEMCONFIG event
In most cases, cmdactivate is empty or equal to cmdbuy.
For the Periapt, we want to give the player +50HP, so the code is:
es est_Health event_var(userid) + 50
For cmdactivate, its the same code !

Update:
With v0.76+, you can also restrict single items or even whole categories for a race, check the screenshot, there you see that Boots of Speed is restricted for Undead. (marked with (R))

Here some screenshots:

[attachment deleted by admin - older than 200 days!]
« Last Edit: September 02, 2007, 04:43:02 PM by kryptonite » Logged
 
Sonny½
Level 3 Trained Apprentice
***
Offline Offline

Posts: 75



« Reply #1 on: March 07, 2007, 05:06:23 PM »

Wow, Nice New Options!!

I cant wait for the next release!!!!!!
Logged

D?m????
Level 4 Intermediate
****
Offline Offline

Finland

Posts: 93


WC3 Player(master)


WWW
« Reply #2 on: March 07, 2007, 06:49:38 PM »

Very nice i like it! :lol:
Logged

Wc3 Supporter Cheesy
Real_Wolf
Level 7 Expert
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #3 on: March 07, 2007, 07:00:04 PM »

Very nice, should improve the shopmenu alot.

Especially with the descriptions IN the shopmenu.

Remember to put in Lead Boots (orw hatever you want to call em), that put your gravity back to normal
Logged

=|[K|T]|= Real Wolf

danny_and_2
Level 2 Apprentice
**
Offline Offline

Posts: 43



« Reply #4 on: March 07, 2007, 08:01:44 PM »

Nice^^
Logged
bobbobagan
Level 7 Expert
*****
Offline Offline

New Zealand New Zealand

Posts: 210

Server Mechanic


WWW
« Reply #5 on: March 25, 2007, 01:56:22 AM »

What does it mean by stackable? Does this mean, you can buy the item again and it will give you 4 HP every 2 seconds?

***EDIT*** Refering to the last picture
Logged



P/M me if you need help with your server for any matters Wink
SkiLLz
Level 6 Experienced
*****
Offline Offline

Norway

Posts: 148




stigden92
stig92
« Reply #6 on: March 25, 2007, 02:21:22 AM »

i don't have the ring of regeneration :S where can I get it?
Logged
Real_Wolf
Level 7 Expert
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #7 on: March 25, 2007, 07:05:12 AM »

skillz: These are for the New release, not yet out. Be patient.

Rogue: All items are stackable, you can have at most 2? of one type
Logged

=|[K|T]|= Real Wolf

bobbobagan
Level 7 Expert
*****
Offline Offline

New Zealand New Zealand

Posts: 210

Server Mechanic


WWW
« Reply #8 on: March 25, 2007, 08:51:42 AM »

What does stackable mean though?
Logged



P/M me if you need help with your server for any matters Wink
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #9 on: March 25, 2007, 12:01:55 PM »

yes, you can get max 2 items, which will stay until death. You can also setup a limit for like "Tome of Health" to be bought only once Smiley

Stackable means you can buy two of it, eg. speed or health, and have the double effect
Boots of speed gives you +30%, if you buy two, you have +60% speed. (ok, +60% is max for this item !)
Logged
Bellic
Level 0 Beginner

Offline Offline

Posts: 18


« Reply #10 on: April 05, 2007, 08:19:34 AM »

Whenever I custom make items, they're named 0; any way to change that?
Logged
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #11 on: September 02, 2007, 04:48:00 PM »

updated!

almost the whole shopmenu has been recoded in v0.76+, so we use the flexible popup function of ES 1.5!
It runs now better than before. Here are the changes:

  • faster and more stable
  • shopmenu and shopinfo linked
  • new custom shop categories (see the screenshot)
  • ability to restrict shopitems/categories for races! (see screenshot)

you can restrict single items or a whole category for a race, eg. the Gloves (giving 4 HE grenades) for Orc (because of Crit HE skill) or forbid Ahnk of reincarnation for a race which has already a respawn skill. Read the race section for how to restrict that shopitems.

A big THANKS goes out to Phat_Wizard who gave me the idea and template for the custom categories stuff  :mrgreen:

[attachment deleted by admin - older than 200 days!]
« Last Edit: September 02, 2007, 04:56:47 PM by kryptonite » Logged
Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1902



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #12 on: September 02, 2007, 05:20:58 PM »

Very nice, now i can move to *trash* all my works on restriction items and reconvert races using it.  :cry:
Logged



kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1109



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #13 on: September 02, 2007, 06:28:13 PM »

do you have a good idea for a new shopitem?

But don't say "tome of xp 200, tome of xp 500, tome of hp 100, tome of hp 150...." Tongue
Logged
Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1902



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #14 on: September 02, 2007, 06:55:26 PM »

extra ability buy, there is already one.
Backstab item (increase your damage by 15%) if you hit in back. Can recode my skill to item  Wink
Evade item (simple, but why not as defensive?)

Logged



Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 14, 2009, 12:19:42 PM
he means that counterstrike.com purchased servers have a protection so you can't upload any .dll files, so you have to do what chuck or darkshadow said below
December 13, 2009, 11:09:03 AM
what do you mean with "not accepting the dll"?
December 12, 2009, 11:02:12 PM
liljoe it happen to me..you just have to stop the server.... darkshadow he should do himself so he will know how to do it...
December 12, 2009, 09:22:31 PM
if you have counter-strike.com server, open a support ticket and ask if they can install wcsmod for you. Unlike other gameserver companies they will install it for you
December 12, 2009, 08:35:34 PM
I want to add wcs to my server but i need es_tools and mattiescrps...when i try uploading them to my counter_strike.com bought server its not accepting es_tools.dll and mattiescrips.dll
December 12, 2009, 07:40:46 PM
With what mate?
December 12, 2009, 06:47:43 PM
guys i need help
Recent
[Today at 08:40:09 AM]

[Today at 03:02:46 AM]

[Today at 03:01:15 AM]

[Today at 02:07:35 AM]

[Today at 02:06:15 AM]

[Today at 01:48:14 AM]

[Today at 01:11:52 AM]

[December 14, 2009, 11:53:27 PM]

[December 14, 2009, 11:52:16 PM]

[December 14, 2009, 11:49:31 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.175 seconds with 24 queries.