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-03-29 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
March 29, 2009, 05:16:05 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame - Designer
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Shop Weapon Upgrade  (Read 731 times)
max42
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« on: March 06, 2008, 05:38:06 PM »

Hi Guys

Here Are A Few Of The Weapons Upgrades I Have On My Server


Deagle Of Dispair This Weapon Will Deal Extra 100 Dmg Per Hit But Will Stip You Of Other Weapons And Sets Health To 75hp
Code:
//1
 "weapon1"
  {
  "name"        "Deagle Of Dispair"
  "description" "This Weapon Will Deal Extra 100 Dmg Per Hit \nBut Will Stip You Of Other Weapons \nAnd Sets Health To 75hp"
  "category"    "8"
  "cost"        "10000"
  "level"       "10"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "0"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "es_delayed 0.1 est_removeweapon event_var(userid) 3;es_delayed 0.1 est_removeweapon event_var(userid) 2;es_delayed 0.1 est_removeweapon event_var(userid) 1;es_delayed 0.2 est_RestrictAll event_var(userid);es_delayed 0.3 est_unrestrict event_var(userid) weapon_deagle;es_delayed 0.4 es_give event_var(userid) weapon_deagle;es_delayed 0.4 es est_SetAmmo event_var(userid) weapon_deagle 1000;es est_sethealth event_var(userid) 75"
  "cmdactivate" "es wcs_dealdamage event_var(attacker) event_var(userid) 100"
  }


Nade Of Plenty This Item Will Give You 5 HEGrenades
Code:
//2
 "weapon2"
  {
  "name"        "Nade Of Plenty"
  "description" "This Item Will Give You 5 HEGrenades"
  "category"    "8"
  "cost"        "11000"
  "level"       "10"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es_delayed 0.2 es_give event_var(userid) weapon_hegrenade;es_delayed 0.2 es est_SetAmmo event_var(userid) weapon_hegrenade 5"
  "cmdactivate" "0"
  }


Mask Of Blindness This Item Will Give You 4 Smoke Grenades
Code:
//3
 "weapon3"
  {
  "name"        "Mask Of Blindness"
  "description" "This Item Will Give You 4 Smoke Grenades"
  "category"    "8"
  "cost"        "11000"
  "level"       "10"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es_delayed 0.2 es_give event_var(userid) weapon_smokegrenade;es_delayed 0.2 es est_SetAmmo event_var(userid) weapon_smokegrenade 4"
  "cmdactivate" "0"
  }


Mask Of Confusion This Item Will Give You 5 Flashbang's
Code:
//4
 "weapon4"
  {
  "name"        "Mask Of Confusion"
  "description" "This Item Will Give You 5 Flashbang's"
  "category"    "8"
  "cost"        "11000"
  "level"       "10"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es_delayed 0.2 es_give event_var(userid) weapon_flashbang;es_delayed 0.2 es est_SetAmmo event_var(userid) weapon_flashbang 5"
  "cmdactivate" "0"
  }


Critical Grenade With This Grenade You Will Deal 100 Extra Damage
Code:
//5
"weapon5"
  {
  "name"        "Critical Grenade"
  "description" "With This Grenade You Will Deal 100 Extra Damage"
  "category"    "8"
  "cost"        "12000"
  "level"       "10"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "0"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "es_give event_var(userid) weapon_hegrenade"
  "cmdactivate" "es es_xif (event_var(weapon) in server_var(wcs_wpn_grenades)) then es wcs_dealdamage event_var(attacker) event_var(userid) 100"
  }


Gnomish Assault Rifle This Item Will Give You The G3SG1 With 20 Bullets And 1000 Clip
Code:
//8
 "weapon8"
  {
  "name"        "Gnomish Assault Rifle"
  "description" "This Item Will Give You The G3SG1 \nWith 20 Bullets And 1000 Clip"
  "category"    "8"
  "cost"        "16000"
  "level"       "45"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es_delayed 0.3 est_removeweapon event_var(userid) 1;es_delayed 0.4 es_give event_var(userid) weapon_g3sg1;es_delayed 0.4 es est_SetAmmo event_var(userid) 1 1000"
  "cmdactivate" "0"
  }


Gurubashi Dwarf Destroyer This Item Will Give You The AWP With 10 Bullets And 1000 Clips
Code:
//9
 "weapon9"
  {
  "name"        "Gurubashi Dwarf Destroyer"
  "description" "This Item Will Give You The AWP \nWith 10 Bullets And 1000 Clips"
  "category"    "8"
  "cost"        "16000"
  "level"       "60"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "1"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es_delayed 0.3 est_removeweapon event_var(userid) 1;es_delayed 0.4 es_give event_var(userid) weapon_awp;es_delayed 0.4 es est_SetAmmo event_var(userid) 1 1000"
  "cmdactivate" "0"
  }







Logged

HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2055



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: March 06, 2008, 06:11:00 PM »

you cant set ammo for grenades, you can only hold one at a time

there are a few ways to do this
you could make a simple script to give grenades in event hegrenade_detonate, grenade_bounce, or weapon_fire (weapon_fire requires noisy)

or give one grenade and es_delay so many seconds and give another one ...ect


or use the existing shopmenu item

Code:
  "21"
  {
  "name"        "wcs_lng_s_gloves"
  "description" "wcs_lng_s_glovesd"
  "category"    "5"
  "cost"        "2500"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "2"
  "itemconfig"  "player_buy"
  "shopalias_glv" "es es_xdelayed 3 wcs_giveitem event_var(userid) server_var(wcs_grenade);es es_xdelayed 13 wcs_giveitem event_var(userid) server_var(wcs_grenade);es es_xdelayed 23 wcs_giveitem event_var(userid) server_var(wcs_grenade);es es_xdelayed 33 wcs_giveitem event_var(userid) server_var(wcs_grenade)"
  "cmdbuy"      "es_xsetinfo wcs_grenade 0;es es_xif (server_var(wcs_game) = server_var(wcs_game_css)) then es_xsetinfo wcs_grenade weapon_hegrenade;es es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (event_var(es_userteam) = 2) then es_xsetinfo wcs_grenade frag_us;es es_xif (server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (event_var(es_userteam) = 3) then es_xsetinfo wcs_grenade frag_ger;shopalias_glv"
  "cmdactivate" "0"
  }
Logged


max42
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« Reply #2 on: March 06, 2008, 06:15:43 PM »

yes you can set the ammo for the grenades using est_SetAmmo event_var(userid) weapon_hegrenade 5 cmd

the reason you can is your setting your ammo not your clip
your clip is what you hold
the ammo is what you have in reserve

you can see this working perfectly on my game server

217.163.24.219:27015

all the above scrip[ts have been tested and work perfectly you can see them working on my server!
« Last Edit: March 06, 2008, 06:19:56 PM by max42 » Logged

HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2055



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #3 on: March 06, 2008, 06:30:43 PM »

possibly, your giving your self 5 grenades, standing in the same spot when firing..lol
1 in your hand 4 on the ground that you pic up one by one after throwing them
Logged


max42
Level 1 Trained Beginner
*
Offline Offline

Posts: 20



« Reply #4 on: March 06, 2008, 06:41:25 PM »

ok dood hate to say this but your wrong here is a screenshot i just took off my server


by the statement u make i would have 1 grenade and 4 on floor well here it is 5 in my ammo

by all means check it out urself


« Last Edit: March 08, 2008, 07:00:37 PM by max42 » Logged

lTeam Andresl
The Nicest Admin =D
ServerAdmins
Level 0 Beginner
*****
Offline Offline

United Kingdom

Posts: 9




geoff999
geoff999
« Reply #5 on: March 07, 2008, 01:35:50 PM »

Yea this is all fine , so if someone could move it to the finished section please =D

As i am not currently a forum mod, tho ive been asked so ill say yes..
Logged
WCA | Rasmus [DK]
wcs coder (part of new wcs dev team)
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1401




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #6 on: March 08, 2008, 03:24:38 PM »

To holliday
It IS possible to have more than one HE grenade as ammo at once!
i have made a race that, when you pushes ultimate it strips you for all weapons BUT gives you 100 usable grenades for X amount of time, then it sets the ammo to 5 grenades and gives you weapons!!
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"

D3vil
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 398



wisnios14
1spot1noob1
« Reply #7 on: March 08, 2008, 09:36:42 PM »

nice skills
is it possible to turn those skills into rpg skills?
Logged

Buy Me A Bear ^^
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 583



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #8 on: March 08, 2008, 10:52:19 PM »

Do u mean for the mod rpg?
And if the mod ur talking about is in eventscripts, just fix up the codes a little(If they run wcs commands) then yeah

- Noobzard
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 03:28:44 AM
Yea ramon TC had made some coding mistakes that were crashing it at least that is how it appears, I delt with it.
Today at 12:02:21 AM
koshy server crash!! twice last 2 hours
March 28, 2009, 11:47:27 PM
Anybody want to help me out on a skill Im stuck on?
March 28, 2009, 09:35:48 PM
Hi... Not Much
March 28, 2009, 07:18:40 PM
Hi all, whats up?
March 28, 2009, 06:37:18 PM
March 28, 2009, 04:56:09 PM
I looked your topic, you sure you don't have 0 on the prices? Grin
Recent
by Doku
[Today at 04:51:09 AM]

by Doku
[Today at 04:39:38 AM]

[Today at 04:29:03 AM]

[Today at 03:50:48 AM]

[Today at 01:52:27 AM]

[Today at 01:27:52 AM]

[Today at 01:15:22 AM]

[Today at 01:14:54 AM]

[Today at 12:13:20 AM]

[March 28, 2009, 11:50:42 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 26 queries.