Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 15.07.2006, 12:04   #16
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

Quote:
Originally Posted by Miafan
Can anyone decompile a few classes for me, pleaseee
[php:1:e4e87fd5f6]class summon_c3 : default_npc {

parameter:

float SummonLifeTime = xx.xx0000;
int CrystalMeat = 1458;
int CrystalAmountMeat = 1;
int CrystalMeatReuse = 900000;

handler:

EventHandler CREATED() {
AddPetDefaultDesire_Follow(SummonLifeTime);
AddTimerEx(100020, CrystalMeatReuse);
}
// 2 functions called (2+0)


EventHandler NO_DESIRE() {
AddPetDefaultDesire_Follow(SummonLifeTime);
AddTimerEx(100020, CrystalMeatReuse);
}
// 2 functions called (2+0)


EventHandler TIMER_FIRED_EX(myself, timer_id) {
if (timer_id == 100020) {
if (myself.master.alive == 0) {
Despawn();
}
AddTimerEx(100020, CrystalMeatReuse);
if (OwnItemCount(myself.master, CrystalMeat) >= CrystalAmountMeat) {
DeleteItem1(myself.master, CrystalMeat, CrystalAmountMeat);
}
else {
Despawn();
}
}
}
// 5 functions called (4+1)


EventHandler MY_DYING(c0, c1, myself) {
c0 = GetLastAttacker();
if (c0.npc_class_id == 1005103) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress3))) {
GiveItem1(c1, @crystal_of_defeat3, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress3, OwnItemCount(c1, @crystal_of_inprogress3));
DeleteItem1(c1, @crystal_of_starting3, OwnItemCount(c1, @crystal_of_starting3));
}
}
}
else {
if (c0.npc_class_id == 1005102) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress1))) {
GiveItem1(c1, @crystal_of_defeat1, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress1, OwnItemCount(c1, @crystal_of_inprogress1));
DeleteItem1(c1, @crystal_of_starting1, OwnItemCount(c1, @crystal_of_starting1));
}
}
}
else {
if (c0.npc_class_id == 1005105) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress2))) {
GiveItem1(c1, @crystal_of_defeat2, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress2, OwnItemCount(c1, @crystal_of_inprogress2));
DeleteItem1(c1, @crystal_of_starting2, OwnItemCount(c1, @crystal_of_starting2));
}
}
}
else {
if (c0.npc_class_id == 1005106) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress4))) {
GiveItem1(c1, @crystal_of_defeat4, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress4, OwnItemCount(c1, @crystal_of_inprogress4));
DeleteItem1(c1, @crystal_of_starting4, OwnItemCount(c1, @crystal_of_starting4));
}
}
}
else {
if (c0.npc_class_id == 1005107) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress6))) {
GiveItem1(c1, @crystal_of_defeat6, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress6, OwnItemCount(c1, @crystal_of_inprogress6));
DeleteItem1(c1, @crystal_of_starting6, OwnItemCount(c1, @crystal_of_starting6));
}
}
}
else {
if (c0.npc_class_id == 1005104) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress5))) {
GiveItem1(c1, @crystal_of_defeat5, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress5, OwnItemCount(c1, @crystal_of_inprogress5));
DeleteItem1(c1, @crystal_of_starting5, OwnItemCount(c1, @crystal_of_starting5));
}
}
}
}
}
}
}
}
super;
}
// 49 functions called (24+25)

}

class summon_c3_warrior : summon_c3 {

parameter:

int DDMagic = 769;

handler:

EventHandler MENU_SELECTED(ask, c0, i0, myself, reply) {
i0 = myself.master.target_index;
if (i0 <= 0) {
return;
}
c0 = GetCreatureFromIndex(i0);
if (c0) {
if ((Skill_GetConsumeMP(DDMagic) < myself.sm.mp) && (Skill_GetConsumeHP(DDMagic) < myself.sm.hp) && (Skill_InReuseDelay(DDMagic) == 0)) {
AddUseSkillDesireEx(myself.master.target_id, DDMagic, 0, reply, ask, 1000000);
}
}
}
// 5 functions called (1+4)

}

class summon_c3_support : summon_c3 {

parameter:

int DDMagic = 258817;

handler:

EventHandler MENU_SELECTED(myself) {
if ((Skill_GetConsumeMP(DDMagic) < myself.sm.mp) && (Skill_GetConsumeHP(DDMagic) < myself.sm.hp) && (Skill_InReuseDelay(DDMagic) == 0)) {
if ((Skill_GetConsumeMP(DDMagic) < myself.sm.mp) && (Skill_GetConsumeHP(DDMagic) < myself.sm.hp) && (Skill_InReuseDelay(DDMagic) == 0)) {
AddUseSkillDesire(myself.master, DDMagic, 1, 1, 1000000);
}
}
return;
}
// 7 functions called (1+6)

}


class summon_magicalattack : default_npc {

parameter:

int DDMagic;
float SummonLifeTime;

handler:

EventHandler CREATED() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler NO_DESIRE() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler MENU_SELECTED(ask, c0, i0, myself, reply) {
i0 = myself.master.target_index;
if (i0 <= 0) {
return;
}
c0 = GetCreatureFromIndex(i0);
if (c0) {
if ((Skill_GetConsumeMP(DDMagic) < myself.sm.mp) && (Skill_GetConsumeHP(DDMagic) < myself.sm.hp) && (Skill_InReuseDelay(DDMagic) == 0)) {
AddUseSkillDesireEx(myself.master.target_id, DDMagic, 0, reply, ask, 1000000);
}
}
}
// 5 functions called (1+4)


EventHandler MY_DYING(c0, c1, myself) {
c0 = GetLastAttacker();
if (c0.npc_class_id == 1005103) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress3))) {
GiveItem1(c1, @crystal_of_defeat3, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress3, OwnItemCount(c1, @crystal_of_inprogress3));
DeleteItem1(c1, @crystal_of_starting3, OwnItemCount(c1, @crystal_of_starting3));
Despawn();
}
}
}
else {
if (c0.npc_class_id == 1005102) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress1))) {
GiveItem1(c1, @crystal_of_defeat1, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress1, OwnItemCount(c1, @crystal_of_inprogress1));
DeleteItem1(c1, @crystal_of_starting1, OwnItemCount(c1, @crystal_of_starting1));
Despawn();
}
}
}
else {
if (c0.npc_class_id == 1005105) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress2))) {
GiveItem1(c1, @crystal_of_defeat2, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress2, OwnItemCount(c1, @crystal_of_inprogress2));
DeleteItem1(c1, @crystal_of_starting2, OwnItemCount(c1, @crystal_of_starting2));
Despawn();
}
}
}
else {
if (c0.npc_class_id == 1005106) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress4))) {
GiveItem1(c1, @crystal_of_defeat4, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress4, OwnItemCount(c1, @crystal_of_inprogress4));
DeleteItem1(c1, @crystal_of_starting4, OwnItemCount(c1, @crystal_of_starting4));
Despawn();
}
}
}
else {
if (c0.npc_class_id == 1005107) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress6))) {
GiveItem1(c1, @crystal_of_defeat6, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress6, OwnItemCount(c1, @crystal_of_inprogress6));
DeleteItem1(c1, @crystal_of_starting6, OwnItemCount(c1, @crystal_of_starting6));
Despawn();
}
}
}
else {
if (c0.npc_class_id == 1005104) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress5))) {
GiveItem1(c1, @crystal_of_defeat5, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress5, OwnItemCount(c1, @crystal_of_inprogress5));
DeleteItem1(c1, @crystal_of_starting5, OwnItemCount(c1, @crystal_of_starting5));
Despawn();
}
}
}
}
}
}
}
}
super;
}
// 55 functions called (30+25)

}

class summon_physicalattack : default_npc {

parameter:

float SummonLifeTime;

handler:

EventHandler CREATED() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler NO_DESIRE() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler MENU_SELECTED(ask) {
if (ask == 1) {
}
}
// 0 functions called (0+0)


EventHandler MY_DYING(c0, c1, myself) {
c0 = GetLastAttacker();
if (c0.npc_class_id == 1005103) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress3))) {
GiveItem1(c1, @crystal_of_defeat3, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress3, OwnItemCount(c1, @crystal_of_inprogress3));
DeleteItem1(c1, @crystal_of_starting3, OwnItemCount(c1, @crystal_of_starting3));
}
}
}
else {
if (c0.npc_class_id == 1005102) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress1))) {
GiveItem1(c1, @crystal_of_defeat1, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress1, OwnItemCount(c1, @crystal_of_inprogress1));
DeleteItem1(c1, @crystal_of_starting1, OwnItemCount(c1, @crystal_of_starting1));
}
}
}
else {
if (c0.npc_class_id == 1005105) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress2))) {
GiveItem1(c1, @crystal_of_defeat2, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress2, OwnItemCount(c1, @crystal_of_inprogress2));
DeleteItem1(c1, @crystal_of_starting2, OwnItemCount(c1, @crystal_of_starting2));
}
}
}
else {
if (c0.npc_class_id == 1005106) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress4))) {
GiveItem1(c1, @crystal_of_defeat4, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress4, OwnItemCount(c1, @crystal_of_inprogress4));
DeleteItem1(c1, @crystal_of_starting4, OwnItemCount(c1, @crystal_of_starting4));
}
}
}
else {
if (c0.npc_class_id == 1005107) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress6))) {
GiveItem1(c1, @crystal_of_defeat6, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress6, OwnItemCount(c1, @crystal_of_inprogress6));
DeleteItem1(c1, @crystal_of_starting6, OwnItemCount(c1, @crystal_of_starting6));
}
}
}
else {
if (c0.npc_class_id == 1005104) {
if (myself.sm.master) {
c1 = myself.sm.master;
if ((HaveMemo(c1, @test_of_summoner) && OwnItemCount(c1, @crystal_of_inprogress5))) {
GiveItem1(c1, @crystal_of_defeat5, 1);
SoundEffect(c1, "ItemSound.quest_itemget");
DeleteItem1(c1, @crystal_of_inprogress5, OwnItemCount(c1, @crystal_of_inprogress5));
DeleteItem1(c1, @crystal_of_starting5, OwnItemCount(c1, @crystal_of_starting5));
}
}
}
}
}
}
}
}
super;
}
// 49 functions called (24+25)

}

class big_boom : default_npc {

parameter:

int DDMagic;
float SummonLifeTime;

handler:

EventHandler CREATED() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler NO_DESIRE() {
AddPetDefaultDesire_Follow(SummonLifeTime);
}
// 1 functions called (1+0)


EventHandler MENU_SELECTED(ask, c0, i0, myself, reply) {
i0 = myself.master.target_index;
if (i0 <= 0) {
return;
}
c0 = GetCreatureFromIndex(i0);
if (c0) {
if ((Skill_GetConsumeMP(DDMagic) < myself.sm.mp) && (Skill_GetConsumeHP(DDMagic) < myself.sm.hp) && (Skill_InReuseDelay(DDMagic) == 0)) {
AddUseSkillDesireEx(myself.master.target_id, DDMagic, 0, reply, ask, 1000000);
AddTimerEx(100021, 10000);
}
}
}
// 6 functions called (2+4)


EventHandler USE_SKILL_FINISHED() {
Despawn();
}
// 1 functions called (1+0)


EventHandler DECAYING_INTERRUPTED() {
AddTimerEx(100021, 1200000);
}
// 1 functions called (1+0)


EventHandler TIMER_FIRED_EX(timer_id) {
if (timer_id == 100021) {
Despawn();
}
}
// 1 functions called (1+0)

}

class summon_siege_golem : default_npc {

handler:

EventHandler CREATED() {
AddPetDefaultDesire_Follow(xx.xx0000);
AddTimerEx(100020, 1000);
AddTimerEx(100021, (1000*60));
}
// 3 functions called (3+0)


EventHandler NO_DESIRE() {
AddPetDefaultDesire_Follow(xx.xx0000);
}
// 1 functions called (1+0)


EventHandler MENU_SELECTED(ask, i0, myself, reply) {
i0 = myself.master.target_id;
if ((Skill_GetConsumeMP(@s_siege_hammer1) < myself.sm.mp) && (Skill_GetConsumeHP(@s_siege_hammer1) < myself.sm.hp) && (Skill_InReuseDelay(@s_siege_hammer1) == 0)) {
AddUseSkillDesireEx(i0, 1044225, 0, reply, ask, 1000000);
}
}
// 4 functions called (1+3)


EventHandler TIMER_FIRED_EX(myself, timer_id) {
if (timer_id == 100020) {
if (myself.master.alive == 0) {
Despawn();
}
AddTimerEx(100020, 1000);
}
if (timer_id == 100021) {
if ((OwnItemCount(myself.master, @gemstone_c) < 140) && (OwnItemCount(myself.master, @gemstone_c) >= 70)) {
Say(MakeFString(1000169, "", "", "", "", ""));
}
if (OwnItemCount(myself.master, @gemstone_c) >= 70) {
DeleteItem1(myself.master, @gemstone_c, 70);
}
else {
Despawn();
}
AddTimerEx(100021, (1000*60));
}
}
// 10 functions called (6+4)

}
[/php:1:e4e87fd5f6]

Here you go
TheOrder 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 00:56.