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-02-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
February 01, 2010, 12:54:39 PM *
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]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: [Shop-Items] Bag Of XP Books - XP Book Of Death  (Read 713 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: September 23, 2007, 10:47:06 AM »

I have made 2 new XP items. Both are diffrent from the Tome Of XP.

Bag Of XP Books
Costs : 7500
Last Till : Lasts till you die
Max Amount : Only 1 at a time
Required LvL : No Need for lvls
What item does:
When you buy the item you will 75 XP
When you survive a round whit item you get 30 XP next round

Code:
  ""
  {
  "name"        "Bag Of XP Books"
  "description" "Get 75 XP when buying item and 30 XP for every round you survive whit the item"
  "category"    "5"
  "cost"        "7500"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_spawn"
  "cmdbuy"      "es wcs_givexp event_var(userid) 75 0 1;es es_xtell event_var(userid) #multi #greenGained 75 XP"
  "cmdactivate" "es wcs_givexp event_var(userid) 30 0 1;es es_xtell event_var(userid) #multi #greenSurvived a Round #lightgreenAnd Gained #green30 XP"
  }

And now to the last item

XP Book Of Death
Costs : 6000
Last Till : Lasts till you die
Max Amount : Only 1 at a time
Required LvL : No Need for lvls
What item does:
When you kill one you get 20 XP more
Code:
  ""
  {
  "name"        "XP Book Of Death"
  "description" "Get 20 XP Extra for killing enemy whit this item"
  "category"    "5"
  "cost"        "6000"
  "level"       "0"
  "dab"         "1"
  "duration"    "1"
  "maxamount"   "1"
  "itemconfig"  "player_attacker"
  "cmdbuy"      "0"
  "shopalias_xp""es wcs_givexp event_var(attacker) 20 0 1;es es_xtell event_var(attacker) #multi #greenGained 20 Extra XP for a Kill"
  "cmdactivate" "es est_gethealth wcs_hp event_var(userid);es es_xif (server_var(wcs_hp) < 10) then shopalias_xp"
  }
« Last Edit: September 23, 2007, 01:36:55 PM by NovaKiller » 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 #1 on: September 23, 2007, 01:21:58 PM »

please don't use yellow color  :Huh:
and here is the common mistake:
"es wcs_givexp event_var(userid) 75 0 1;es es_xtell event_var(userid) #multi #greenGained 150 XP"
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 #2 on: September 23, 2007, 01:36:25 PM »

Oh yeah. I forgot that. The item was first made for a server where xp was high befor you get a lvl so i forgot that.
Logged

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

Germany Germany

Posts: 1110



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #3 on: September 23, 2007, 02:41:21 PM »

yea nice ideas!!
But I think the items are too expensive....

They can be added to the next package, if you want!
And remind me to change for Book of Death the itemconfig to "player_kill" (v0.76+)
You wrote a little workaround for this Smiley
Logged
n0Life
Part-time Admin
Watchdogs
Level 7 Expert
*****
Offline Offline

Finland

Posts: 805


WCS Moderator: WCS.com WCS.net WCSP.net


WWW
4ngry4ngel

myServer 85.190.14.35:27015
(Warning: click connects through Steam)
« Reply #4 on: September 23, 2007, 03:19:57 PM »

gotta admit, lovely items
i'd like to use them on our servers ^^
Logged

Quote
yay! found a way how to enlarge this!
not meaning my penis
meaning the the script window

chrishot
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 164




chrishot
« Reply #5 on: September 23, 2007, 03:23:33 PM »

1 thing i not sure if this is much but it says dis activates on death but you have set it to not work if r health is under 10

Code:
es est_gethealth wcs_hp event_var(userid);es es_xif (server_var(wcs_hp) < 10) then shopalias_xp
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: September 23, 2007, 04:38:47 PM »

They can be added to the next package, if you want!

And remind me to change for Book of Death the itemconfig to "player_kill" (v0.76+)
Yes i would be glad to have them in the next package.
And i will remind you of it most be player_kill in next version
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:40:20 AM
whats est_freeze syntax?

January 31, 2010, 06:00:01 PM
asap :p
January 31, 2010, 05:59:47 PM
ok berett no offense but we need to talk.
January 30, 2010, 08:48:38 PM
wcs_alpha is used for effects to determine how visible/bright/see-through an effect is.
January 30, 2010, 05:44:23 PM
Has nothing to do with the speed. wcs_alpha is just a variable which can be used anywhere.
January 30, 2010, 05:40:44 PM
oh and thank you ^.^
January 30, 2010, 05:40:32 PM
ohh... but it shouldnt be with the settings of speed right?
Recent
[Today at 09:54:21 AM]

by amiq
[Today at 09:33:18 AM]

by amiq
[Today at 09:33:07 AM]

[Today at 09:32:25 AM]

[Today at 12:58:25 AM]

[Today at 12:55:11 AM]

[January 31, 2010, 09:30:44 PM]

[January 31, 2010, 09:30:04 PM]

[January 31, 2010, 09:29:04 PM]

[January 31, 2010, 09:27:48 PM]
Theme switch

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