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-10-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
October 01, 2009, 04:11:51 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
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: Some items _/Beacon Fixed\_  (Read 748 times)
NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« on: August 10, 2007, 03:46:09 AM »

Ok i was a bit boring. So i decided to make some items for shop. Ok. First one is beacon. Next is a warden item, Only use for Seprent wardens users. Last one is my favorite. You know my RPG race. I made the icestab skill into a item.

Edit: So i have set the fixed Beacon Item on top so you dont need to go all way down.
But one error i dont can fix ( havent tested 0.76 version yet to see if its fixed ) but its when you buy a item you know it stops working.
I have edit the cost to items to lower. And also changed the beacons chance to activate.
Code:
  ""
  {
  "name"        "Beacon (25% chance)"
  "description" "Buying this item allows you to beacon enemy whit 25% chance"
  "category"    "3"
  "cost"        "5000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "0"
  "shopalias_beacon""es ma_beacon event_var(userid) 1;es es_xtell event_var(userid) #multi #Green Beaconed;es es_xtell event_var(attacker) #mutli #Green Beacon Activated"
  "cmdactivate" "es es_xif (server_var(wcs_dice) <= 25) then shopalias_beacon"
  }

Code:
""
  {
  "name"        "Extra Warden (Only for warden users)"
  "description" "Gain an extra warden for some money, max 3"
  "category"    "3"
  "cost"        "4000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "3"
  "itemconfig"  "player_spawn"
  "cmdbuy"      "es_xset wcs_count 0;es es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xmath wcs_count + 1;es es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  "cmdactivate" "es_xset wcs_count 0;es es_xdelayed 0.5 es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xdelayed 0.6 es_xmath wcs_count + 1;es es_xdelayed 1 es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  }

Code:
""
  {
  "name"        "IceStab ( 1 sec freeze )"
  "description" "Gain a freeze effect whit your knife. Freeze for 1 sec"
  "category"    "3"
  "cost"        "5000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "0"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "0"
  "cmdactivate" "es es_xif (event_var(weapon) in server_var(wcs_wpn_knives)) then est_freeze event_var(useird) 1;es es_xdelayed 1 es_xif (event_var(weapon) in server_var(wcs_wpn_knives)) then wcs_removefx freeze event_var(userid)"
  }

Tell what you think about these 3 items.
« Last Edit: October 21, 2007, 10:05:18 AM by NovaKiller » Logged

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

Posts: 2253



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: August 10, 2007, 05:06:52 AM »

lol....so if you have no more abilitiy points you can buy another one...Nice
i made an ultimate one time that gave you an extra point. i wanted it to cost money, but i dont think i ever made it work...just forgot about that one...
like the bacon.. i think if your going to use beacon the only good way to do it is with shopmenu
Logged

Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1885



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #2 on: August 10, 2007, 06:56:43 AM »

I love the idea of extra ability item, actually i have tones of heroes with "ability" so i'll a bit edit name and description for my server.. And thx for nice item  :-D
Ya, there is player_spawn but should be player_buy for less operatiosn but same effect for extra ability item
I edited it if smbody play with my races, i advice to use this code too, but if you want  :-D
""
  {
  "name"        "Extra ability"
  "description" "Gain an extra ability count for your race"
  "category"    "5"
  "cost"        "1800"
  "level"       "0"
  "dab"         "1"
  "duration"    "0"
  "maxamount"   "2"
  "itemconfig"  "player_buy"
  "cmdbuy"      "es es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xmath wcs_count + 1;es es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  "cmdactivate" "0"
  }
« Last Edit: August 10, 2007, 07:05:53 AM by Stinkyfax » Logged



NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #3 on: August 10, 2007, 03:00:26 PM »

Oh yes.
Logged

NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #4 on: August 10, 2007, 03:02:08 PM »

Sry for double post but here is the second one.
Code:
""
  {
  "name"        "Extra Warden (Only for warden users)"
  "description" "Gain an extra warden for some money, max 3"
  "category"    "3"
  "cost"        "6000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "3"
  "itemconfig"  "player_spawn"
  "cmdbuy"      "es es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xmath wcs_count + 1;es es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  "cmdactivate" "es es_xdelayed 0.5 es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xdelayed 0.6 es_xmath wcs_count + 1;es es_xdelayed 1 es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  }
Dont you mean so stinky?
« Last Edit: August 10, 2007, 05:07:19 PM by NovaKiller » Logged

Stinkyfax
I <3 WCS
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 1885



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #5 on: August 10, 2007, 04:47:10 PM »

my post:
Quote
and make duration "1"
Logged



NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #6 on: October 18, 2007, 01:51:28 PM »

Oh well long time ago with those items. Anyway i found a anoying bug or better sayed mistake by me. I forgot just one singel " in the beacon item.
So this is the fixed item with the ohters

Code:
  ""
  {
  "name"        "Beacon (15% chance)"
  "description" "Buying this item allows you to beacon enemy whit 15% chance"
  "category"    "3"
  "cost"        "10000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "0"
  "shopalias_beacon""es ma_beacon event_var(userid) 1;es es_xtell event_var(userid) #multi #Green Beaconed;es es_xtell event_var(attacker) #mutli #Green Beacon Activated"
  "cmdactivate" "es es_xif (server_var(wcs_dice) <= 15) then shopalias_beacon"
  }

""
  {
  "name"        "Extra Warden (Only for warden users)"
  "description" "Gain an extra warden for some money, max 3"
  "category"    "3"
  "cost"        "6000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "3"
  "itemconfig"  "player_spawn"
  "cmdbuy"      "es es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xmath wcs_count + 1;es es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  "cmdactivate" "es es_xdelayed 0.5 es_xkeygetvalue wcs_count WCSuserdata event_var(userid) ability_count;es es_xdelayed 0.6 es_xmath wcs_count + 1;es es_xdelayed 1 es_xkeysetvalue WCSuserdata event_var(userid) ability_count server_var(wcs_count)"
  }

""
  {
  "name"        "IceStab ( 1 sec freeze )"
  "description" "Gain a freeze effect whit your knife. Freeze for 1 sec"
  "category"    "3"
  "cost"        "7500"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "0"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "0"
  "cmdactivate" "es es_xif (event_var(weapon) in server_var(wcs_wpn_knives)) then est_freeze event_var(useird) 1;es es_xdelayed 1 es_xif (event_var(weapon) in server_var(wcs_wpn_knives)) then wcs_removefx freeze event_var(userid)"
  }
« Last Edit: October 18, 2007, 01:53:15 PM by NovaKiller » Logged

UV.Fox.Bios
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 41




inhis20s
iaapistols
« Reply #7 on: October 20, 2007, 09:12:34 PM »

Hey Nova,

I couldn't get the beacon working. I'll try out that bottom one, see if that flies.
Logged
NovaKiller
<WCS coder>
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 783

Loves WCS. Loves to make races. Loves to play WCS


WWW
PlaxGunner
« Reply #8 on: October 21, 2007, 09:59:36 AM »

and i can tell you why the old didnt work.

It looked like this:
Code:
"shopalias_beacon"es ma_beacon event_var(userid) 1;es es_xtell event_var(userid) #multi #Green Beaconed;es es_xtell event_var(attacker) #mutli #Green Beacon Activated"
What i missed was to add another " cause there were only one to shopalias_beacon not to both Tongue

So this is how it looks now:
Code:
"shopalias_beacon""es ma_beacon event_var(userid) 1;es es_xtell event_var(userid) #multi #Green Beaconed;es es_xtell event_var(attacker) #mutli #Green Beacon Activated"
Logged

UV.Fox.Bios
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 41




inhis20s
iaapistols
« Reply #9 on: October 23, 2007, 08:52:37 PM »

Still can't get it working. It says it is being activated on the screen but nothing happens.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 02:51:27 AM
lol tenxo did you get that from tmu site...
September 30, 2009, 11:52:11 PM
lol @ the link
September 30, 2009, 09:58:44 PM
cool eh?
September 30, 2009, 09:21:33 PM
September 30, 2009, 07:55:53 PM
None
September 30, 2009, 05:15:29 PM
I been working since I got out of high school, and I genuinely prefer to work. xD
September 30, 2009, 01:52:25 PM
wait till n0life has Alife
Recent
[Today at 01:34:12 AM]

[Today at 01:32:28 AM]

[Today at 12:06:54 AM]

by ALDi
[September 30, 2009, 11:35:43 PM]

[September 30, 2009, 11:32:42 PM]

[September 30, 2009, 10:54:08 PM]

by X510
[September 30, 2009, 09:22:24 PM]

[September 30, 2009, 08:15:25 PM]

[September 30, 2009, 08:10:24 PM]

[September 30, 2009, 05:18:32 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.108 seconds with 25 queries.