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 2008-12-11 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 11, 2008, 08:43:28 PM *
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  
Author Topic: Need a wound-won-credit converted to xp for winning team script  (Read 102 times)
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 892




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« on: October 16, 2008, 04:27:59 PM »

hi Everybody:)

i have searched for some command and stuff, but i couldnt find any round-won(credit).
so im asking you (experienced coders) if you could make me one?

what im looking for is a script, which will turn X amount of the credits gained when a round is won, into xp for the winning team. I need it because i have turned my shopmenu off, since my players spammed it and it made my server lag, then they complaine, and just keep on spamming.

Kind regards
Rasmus:)
Logged

Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 589



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #1 on: October 17, 2008, 04:15:15 PM »

Code
GeSHi (eventscripts):
event round_start
{
   // Sets the WCS exp value to 0
   es_xset wcs_roundwon_xp 0
}
 
event round_end
{
   // Gets a random number which will be the amout of exp they will get
  es_xrand wcs_roundwon_xp 20 40
  // Gets the winning team
   if (event_var(winner) = 2) do
   {
       es_xset wcs_teamn "#t"
   }
   if (event_var(winner) = 3) do
  {
        es_xset wcs_teamn "#ct"
   }
   //Gives exp to the winning team, but not on round draw
   if (event_var(winner) > 1) then foreach player wcs_uid server_var(wcs_teamn) "es wcs_givexp server_var(wcs_uid) server_var(wcs_roundwon_xp);es_tell server_var(wcs_uid) #multi #lightgreenWinning team: #greenYour team gained server_var(wcs_roundwon_xp) XP for winning this round"
}
Logged

[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 892




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #2 on: October 18, 2008, 07:49:20 PM »

i already have that one, you havent understood what i want i can see.
Logged

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

Lithuania Lithuania

Posts: 1388



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #3 on: October 18, 2008, 08:00:25 PM »

i don't think smone will understand you.
Logged

joppeabc
Level 6 Experienced
*****
Online Online

Norway

Posts: 138




mordilikerfardin14
joppeabc

myServer 83.223.105.35:27015
(Warning: click connects through Steam)
« Reply #4 on: October 18, 2008, 09:17:00 PM »

What the fuck do you mean with round-won, credit?

Do you mean money? If so do you want the players to get xp instead of money?
Logged

[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 892




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #5 on: October 19, 2008, 03:22:56 PM »

you know that when a team wins a round they will get more money when spawning, than the losing team. ?
instead of getting money i want them to get xp from that same pot of money.

understand now?
Logged

joppeabc
Level 6 Experienced
*****
Online Online

Norway

Posts: 138




mordilikerfardin14
joppeabc

myServer 83.223.105.35:27015
(Warning: click connects through Steam)
« Reply #6 on: October 20, 2008, 07:28:26 AM »

Yeah i understand now.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 04:51:45 PM
-.-
Today at 04:44:10 PM
Today at 03:47:40 PM
the guy who made this is a fool lol
Today at 03:21:21 PM
dont you just think that these kind of webpages are too low?! http://www.johnsrevenge.com/?id=50e1a17e80fbc1a0a2944524c8059094
December 10, 2008, 07:42:00 AM
HOLLIDAY, I need your help urgently, could you take a look at my post please mate?
http://warcraft-source.com/board/index.php/topic,5809.0.html
December 10, 2008, 01:42:14 AM
I was jokin btw i havent even played on ur server haha.
December 10, 2008, 01:37:36 AM
It sux.
Recent
[Today at 07:48:29 PM]

[Today at 07:44:44 PM]

[Today at 06:04:46 PM]

[Today at 04:49:46 PM]

[Today at 04:41:01 PM]

[Today at 04:40:14 PM]

[Today at 04:27:31 PM]

[Today at 04:23:40 PM]

[Today at 03:52:53 PM]

[Today at 03:51:01 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.078 seconds with 25 queries.