View Single Post
Old 13.05.2008, 17:52   #9
FidoW
Guest
 
Posts: n/a
Default [HELP]C6 champions

I dont know if i get the idea what champion mob is, but come to my mind 2 differents ways.

Both will have a percent of convert to champion, and a max and min level.

Something like...

Code:

Code:
class 1 champion : null {

parameter:
  int ChampionFrequency = 10;
  int ChampionMinLevel = 20;
  int ChampionMaxLevel = 80;

handler:
  EventHandler CREATED() {
    if (gg::rand(100) < ChampionFrequency) {
      if ( (myself.sm.level >= ChampionMinLevel) && (myself.sm.level <= ChampionMaxLevel) ) {
    
        // Code to transform into a champion
      
      }
    }
  }

}
In this case i do it with CREATED handler but with ATTACKED will be also another option.

After that... we have 2 ways

1) We change mob params, incrementing CON, MEN, INT, etc throught IncrementParam func. This is probably a bad way since will need to add the "new drops" in AI, exp and SP same problem but we can calculate how much to add depending of champion level and HP maybe...

2) Like some mobs do transform, they are unsummoned and a new one appaer in their place, the problem of this way is we need to add client side mod (adding to npcname-e and npcgrp) but also we need to do each single champion case in server side, too much work...

First will require less work, second will be much more accurate.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (1 Day Ago); точное время не сохранилось. Открыть источник.