Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12.04.2007, 18:32   #2
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Only one man help me. But good man. Results for free share no good I sure.
Current status of developing very good... ~20-40% code analysed and decoding w/o errors.
2 days of works.

Code:
//---------------------------------------------------
//        L2ScriptMaker AI Decompiler Project        
//---------------------------------------------------
// Decompiling: xx.xx.2007 0:23:42
// Decompiler build is: 1.0.0.0
//---------------------------------------------------


class 1 party_private : party_private_param
{
parameter_define_begin
	int DDMagic = 1;
parameter_define_end
	
	handler NO_DESIRE ()
	{
		if (myself.boss.alive)
		{
			myself->AddFollowDesire(myself.boss, 5);
		}
		else
		{
			myself->AddMoveAroundDesire(5, 5);
		}
	}
	
	handler CREATED ()
	{
		myself->AddTimerEx(1005, 120 * 1000);
		myself->AddTimerEx(1006, 20000);
		super;
	}
	
	handler TIMER_FIRED_EX (timer_id)
	{
		if (timer_id == 1005)
		{
			if (myself->InMyTerritory(myself.sm) == 0 && myself.boss.alive != 0 && myself.p_state != 3)
			{
				myself->InstantTeleport(myself.sm, myself->FloatToInt(myself.boss.x), myself->FloatToInt(myself.boss.y), myself->FloatToInt(myself.boss.z));
			}
			myself->AddTimerEx(1005, 120 * 1000);
		}
		if (myself.p_state != 3 && myself.p_state != 10)
		{
		}
	}
	myself->AddTimerEx(1006, 20000);
}
super;
	}
	
..

class 1 monster_parameter : default_npc
{
parameter_define_begin
	int AttackLowLevel = 0;
	int CreviceOfDiminsion = 0;
parameter_define_end
	
	handler ATTACK_FINISHED (target)
	{
		if (target.alive == 0 && target.is_pc == 0)
		{
			if (myself->IsInCategory(11, target.npc_class_id) != 0)
			{
				myself->AddAttackDesire(target.master, 1, 500);
			}
		}
	}
}

class 1 default_npc : (null)
{
parameter_define_begin
	int residence_id = 0;
	int DesirePqSize = 50;
	float EffectAction_BoostValue = 0.000000;
	float MoveToTarget_BoostValue = 0.000000;
parameter_define_end
	
	handler NO_DESIRE ()
	{
	}
	
	handler TALK_SELECTED (talker)
	{
		myself->ShowPage(talker, "noquest.htm");
	}
}
HF 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 21:34.