February 17, 2020, 03:42:36 PM

Author Topic: Need a wound-won-credit converted to xp for winning team script  (Read 2146 times)

Offline Rasmus

  • Trapped in between
  • Level 7 Expert
  • *****
  • Posts: 1503
Need a wound-won-credit converted to xp for winning team script
« on: October 16, 2008, 05: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:)
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!"

Offline Espeladden

  • Level 7 Expert
  • *****
  • Posts: 592
  • Country: 00
    • Syndicate Gamers
Re: Need a wound-won-credit converted to xp for winning team script
« Reply #1 on: October 17, 2008, 05:15:15 PM »
Code: (eventscripts) [Select]
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"
}

Offline Stinkyfax

  • I <3 WCS
  • Level 7 Expert
  • *****
  • Posts: 2113
  • Country: 00
  • WoW mod
    • World of Warcraft mod Servers
Re: Need a wound-won-credit converted to xp for winning team script
« Reply #2 on: October 18, 2008, 09:00:25 PM »
i don't think smone will understand you.



Offline joppeabc

  • Level 7 Expert
  • *****
  • Posts: 260
Re: Need a wound-won-credit converted to xp for winning team script
« Reply #3 on: October 18, 2008, 10: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?

Offline Rasmus

  • Trapped in between
  • Level 7 Expert
  • *****
  • Posts: 1503
Re: Need a wound-won-credit converted to xp for winning team script
« Reply #4 on: October 19, 2008, 04: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?
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!"

Offline joppeabc

  • Level 7 Expert
  • *****
  • Posts: 260
Re: Need a wound-won-credit converted to xp for winning team script
« Reply #5 on: October 20, 2008, 08:28:26 AM »
Yeah i understand now.