Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 23.05.2007, 14:57   #1
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default [share] old C1 stuff: hdaie DEC v1x.xx

coz ppl still askin for...

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
hdaie_DEC_v1000.rar — 367909 байт
humordwarf is offline  
Old 23.05.2007, 15:05   #2
smeli
Архивный участник
 
Join Date: Apr 2006
Posts: 181
Default

this is real proof of god existence!
thank you HD for share

<rus>
bog uslyshal moi molitvy.
spasibo HD
</rus>
smeli is offline  
Old 23.05.2007, 15:16   #3
smeli
Архивный участник
 
Join Date: Apr 2006
Posts: 181
Default

strange decompilation, class for PP1.0 pack

class summon_range_golem : default_npc {

handler:

EventHandler UNKNOWN_13() {
ERROR: unknown function - func_call 14 // func[AddPetDefaultDesire_Follow]
// 0 functions called (0+0)


EventHandler UNKNOWN_0() {
ERROR: unknown function - func_call 14 // func[AddPetDefaultDesire_Follow]
// 0 functions called (0+0)


EventHandler UNKNOWN_32(event[192], event[28]) {
event[192] = ((event[28]+2404)+388);
ERROR: unknown function - func_call 155 // func[Skill_GetConsumeMP]
// 0 functions called (0+0)


EventHandler UNKNOWN_12(event[176], event[28]) {
if (event[176] == 100020) {
if (((event[28]+2404)+112) == 0) {
ERROR: unknown function - func_call 175 // func[Despawn]
// 0 functions called (0+0)

}
smeli is offline  
Old 23.05.2007, 15:22   #4
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

Quote:
Originally Posted by smeli View Post
EventHandler UNKNOWN_13() {
ERROR: unknown function - func_call 14 //
oops...
forgot some txt files... =)
will reupload right now
humordwarf is offline  
Old 23.05.2007, 15:39   #5
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

just tested
Code:
class warrior : default_npc {

  parameter:

  float Attack_DecayRatio = 6.600000;
  float UseSkill_DecayRatio = 660xx.xx0000;
  float Attack_BoostValue = 3xx.xx0000;
  float UseSkill_BoostValue = 1000xx.xx0000;
  int MoveAroundSocial = 0;
  int ShoutMsg1 = 0;
  int ShoutMsg2 = 0;
  int ShoutMsg3 = 0;
  int ShoutMsg4 = 0;

  handler:

  EventHandler NO_DESIRE() {
    AddMoveAroundDesire(5, 5);
  }
  // 1 functions called (1+0)


  EventHandler CREATED() {
    if (ShoutMsg1 > 0) {
      Shout(MakeFString(ShoutMsg1, "", "", "", "", ""));
    }
    if ((MoveAroundSocial > 0)  ||  (ShoutMsg2 > 0)  ||  (ShoutMsg3 > 0)) {
      AddTimerEx(1001, 10000);
    }
  }
  // 3 functions called (2+1)


  EventHandler TIMER_FIRED_EX(myself, timer_id) {
    if (timer_id == 1001) {
      if ((myself.p_state == 1)  ||  (myself.p_state == 2)  ||  (myself.p_state == 9)) {
        if ((MoveAroundSocial > 0)  &&  (Rand(100) < 20)) {
          AddEffectActionDesire(myself.sm, 1, ((MoveAroundSocial*1000)/30), 50);
        }
        if ((ShoutMsg2 > 0)  &&  (Rand(1000) < 17)) {
          Shout(MakeFString(ShoutMsg2, "", "", "", "", ""));
        }
      }
      else {
        if (myself.p_state == 3) {
          if ((ShoutMsg3 > 0)  &&  (Rand(100) < 10)) {
            Shout(MakeFString(ShoutMsg3, "", "", "", "", ""));
          }
        }
      }
      AddTimerEx(1001, 10000);
    }
    super;
  }
  // 9 functions called (4+5)


  EventHandler ATTACKED(attacker, damage, myself) {
    if ((attacker.is_pc != 0)  ||  IsInCategory(9, attacker.npc_class_id)) {
      AddAttackDesire(attacker, 1, (((damage/myself.sm.max_hp)/0.050000)*100));
    }
  }
  // 2 functions called (1+1)


  EventHandler CLAN_ATTACKED(attacker, damage, myself) {
    if (GetLifeTime() > 7) {
      if ((attacker.is_pc != 0)  ||  IsInCategory(9, attacker.npc_class_id)) {
        AddAttackDesire(attacker, 1, (((damage/myself.sm.max_hp)/0.050000)*30));
      }
    }
  }
  // 3 functions called (1+2)


  EventHandler SEE_SPELL(myself, skill_name_id, speller) {
    if (Skill_GetEffectPoint(skill_name_id) > 0) {
      AddAttackDesire(speller, 1, (((Skill_GetEffectPoint(skill_name_id)/myself.sm.max_hp)/0.050000)*150));
    }
  }
  // 3 functions called (1+2)


  EventHandler DESIRE_MANIPULATION(desire, speller) {
    MakeAttackEvent(speller, desire, 0);
  }
  // 1 functions called (1+0)


  EventHandler MY_DYING() {
    if ((ShoutMsg4 > 0)  &&  (Rand(100) < 30)) {
      Shout(MakeFString(ShoutMsg4, "", "", "", "", ""));
    }
  }
  // 3 functions called (1+2)

}
humordwarf is offline  
Old 23.05.2007, 17:46   #6
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

Big thanks HD

/rus Пасиб хд, я долго ждал этого дня
Forcer is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:24.