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-10-21 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Approved~ [Addon] Round EXP  (Read 614 times)

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1035
Approved~ [Addon] Round EXP
« on: July 14, 2010, 02:25:40 AM »
Code type: Python Eventscript
Name: Round Xp
Compatible: WCS 1.75 ES 2.X
Dependency: None
Description: Gives the winning team xp
What is Custom: The Script

Just put the folder under your eventscripts folder then add to your autoexec "es_load roundxp" without the quotes.
Then you can config how much xp a team would get by opening the python file in a editor example would be notepad then find this.

Code: [Select]
xpconfig = {
   min:{
      'minxp':'1',
   },
   max:{
      'maxxp':'666',
   },
   }
Then change the min and max xp rates of the round xp.
The xp the team gets is randomized between or is the min and max rates.

Also to make it team only to one team just find this.
Code: [Select]
winners = {
2:{
'name':'Terrorist',
'target':'#t',
},
3:{
'name':'Counter-Terrorist',
'target':'#ct',
},
}
And remove one of the teams.
Like to make it CT only do this.
Code: [Select]
winners = {
3:{
'name':'Counter-Terrorist',
'target':'#ct',
},
}

[SideNote]
Hurray my first released python script :)
This is my second python script.

[Special Thanks]
Satoon - For helping me fix mistakes :)

[Try It Out Server]
[SDD] Coding Community Warcraft:OrangeBox - 216.6.224.214:27015

NOTE - BEFORE POSTING THIS HAS BEEN TESTED ON WCS 1.75!
« Last Edit: July 31, 2010, 12:58:44 PM by Shidobu »

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

[Oddity]TeacherCreature

  • Moderator
  • Level 7 Expert
  • Posts: 1722
Re: Round EXP
« Reply #1 on: July 14, 2010, 02:33:55 AM »
u jerk i was gonna add that to my next release lol but not in python hahah

good job

I had to loop through each player lol

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1035
Re: Round EXP
« Reply #2 on: July 14, 2010, 02:35:57 AM »
I already made this few months back.
It would be a great idea tho to add this to your wcs addons folder of wcs because a python version of this would be way better because its much faster and ='s no lag.
:P

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1035
Re: Round EXP
« Reply #3 on: July 14, 2010, 05:18:07 PM »
Here a version nothing different other then it handles both minxp and maxxp being the same so you can have it giving players one constant amount of xp.
After I test this later today I'll put it in the first post.

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

^[Psycho]^

  • Level 7 Expert
  • Posts: 299
  • ~~~~~~~~
Re: Round EXP
« Reply #4 on: July 14, 2010, 09:01:42 PM »
great script, love it <3

MiB

  • Custom Coder
  • Level 7 Expert
  • Posts: 1035
Re: Round EXP
« Reply #5 on: July 16, 2010, 01:10:45 PM »
So since this is stickied does that mean it is approved?
If so can it be moved to approved section?

~The Sig Changes Each Time~
~The Sigs Them Selfs Are By Hybrid Click The Sigs To See His Other Sigs~

Joshyboy

  • Level 2 Apprentice
  • Posts: 51
Re: Approved~ [Addon] Round EXP
« Reply #6 on: August 01, 2010, 03:09:00 PM »
I've always wanted smething like this. A Little extra reward for winning :D
Death-Josh

"I Iz Watching You'z"

Warcraft-Source.com

« on: »