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

Author Topic: Max Level  (Read 167 times)

Offline GirlieBalls

  • Level 0 Beginner
  • Posts: 7
Max Level
« on: September 15, 2009, 05:18:44 AM »
I was wondering if there was a way to set a max level for each race or a way to stop people leveling after they have reach a certain level with a race. Like for example the first race Undead has 4 skills with 8 levels. That would be a top level of 32. Now when the person gets to the next level nothing happens. So they could get that race to level 50 but only 32 of them count towards the total to unlock more races. I tried searching for this but Im not exactly sure what to search for. If there is nothing out there to do this then im ok with that. Thanks

Offline n0Life

  • Part-time Admin
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 843
  • WCS Moderator: WCS.com WCS.net WCSP.net
    • Original WCS
Re: Max Level
« Reply #1 on: September 15, 2009, 09:08:23 AM »
You mean the total player level does not raise if Race has reached max level?
Quote
yay! found a way how to enlarge this!
not meaning my penis
meaning the the script window



Offline GirlieBalls

  • Level 0 Beginner
  • Posts: 7
Re: Max Level
« Reply #2 on: September 15, 2009, 06:49:47 PM »
Yeah exactly. I have a bunch of kids that come in every now and then and just play one race the whole time and everyone else complains about it because they rush spawn and kill them all.

Offline Koshy

  • Level 7 Expert
  • *****
  • Posts: 568
    • Mirai Max
Re: Max Level
« Reply #3 on: September 15, 2009, 09:24:12 PM »
Yeah exactly. I have a bunch of kids that come in every now and then and just play one race the whole time and everyone else complains about it because they rush spawn and kill them all.


Correct me if I am wrong but doesn't es_WCSraces_db have a field for "maxlevel"???

<-- WCS Mod Server 100 Tick

Offline n0Life

  • Part-time Admin
  • Watchdogs
  • Level 7 Expert
  • *****
  • Posts: 843
  • WCS Moderator: WCS.com WCS.net WCSP.net
    • Original WCS
Re: Max Level
« Reply #4 on: September 15, 2009, 09:35:24 PM »
But even if the player wouldn't get any useful level ups, they still can plat that race.

Or are you gonna make it that it's unplayable after max level is reached?
Quote
yay! found a way how to enlarge this!
not meaning my penis
meaning the the script window



Offline GirlieBalls

  • Level 0 Beginner
  • Posts: 7
Re: Max Level
« Reply #5 on: September 15, 2009, 10:52:30 PM »
The max level section in the races file doesnt make it so the levels dont count anymore. It makes it so that the race is no longer playable after that set level. So if i set it to max level to 35 once i get to level 36 i cant play that race anymore. I want people to be able to play any race that they want at anytime but limit them getting levels past a the top level of that race.

Offline Koshy

  • Level 7 Expert
  • *****
  • Posts: 568
    • Mirai Max
Re: Max Level
« Reply #6 on: September 16, 2009, 03:59:26 AM »
The max level section in the races file doesnt make it so the levels dont count anymore. It makes it so that the race is no longer playable after that set level. So if i set it to max level to 35 once i get to level 36 i cant play that race anymore. I want people to be able to play any race that they want at anytime but limit them getting levels past a the top level of that race.


So my suggestion would be to change how the block works :) Just make it so you can play but you cannot level any higher ;)

Thanks,
- Koshy

<-- WCS Mod Server 100 Tick

Offline Yiyas

  • Level 7 Expert
  • *****
  • Posts: 290
  • The name's Bugger. De-Bugger.
Re: Max Level
« Reply #7 on: September 16, 2009, 04:14:53 AM »
Find where it gets the player's level in race slots. Then add something to get how many skills that race has, and how many levels. Then multiply them out. Then do if totallvl > skills*levels then set skills*levels.

Offline GirlieBalls

  • Level 0 Beginner
  • Posts: 7
Re: Max Level
« Reply #8 on: September 16, 2009, 05:59:10 PM »
Ok how would I go about that. Im not that great with coding.