![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
I shared before a similar code for C1moded... ok, lest go with a newer version for C4
NASC CODE Code:
class buffer_npc : default_npc {
parameter:
string fnHi = "buffer_npc001.htm";
string fnYouAreChaotic = "buffer_npc002.htm";
string fnNotEnoughAdena = "buffer_npc003.htm";
string fnWait = "buffer_npc004.htm";
int ItemBuff = 57;
int Amount = 1000;
int Delay = 500;
handler:
EventHandler CREATED() {
myself.i_ai0 = 0;
}
EventHandler TALKED(talker) {
if (talker.karma > 0) myself->ShowPage(talker,fnYouAreChaotic);
else myself->ShowPage(talker,fnHi);
}
EventHandler MENU_SELECTED(talker,ask,reply) {
if ( (ask == -201) && (myself->OwnItemCount(talker,ItemBuff) >= Amount) ) {
if( myself.i_ai0 == 0 ) {
myself.i_ai0 = 1;
myself->DeleteItem1(talker,ItemBuff,Amount);
myself->AddUseSkillDesire(talker,reply,1,1,1000000);
myself->ShowPage(talker,fnHi);
myself->AddTimerEx(1,Delay);
}
else myself->ShowPage(talker,fnWait);
}
else myself->ShowPage(talker,fnNotEnoughAdena);
}
EventHandler TIMER_FIRED_EX(timer_id) {
if( timer_id == 1 ) myself.i_ai0 = 0;
}
}
Code:
-- DELETED -- Since nobody respect credits im not going to share. Compile it yourself. Code:
-- DELETED -- Code:
-- DELETED -- Code:
<html><body> Buffer NPC:<br> <br> <a action="bypass -h menu_select?ask=-201&reply=273411">[Might]</a><br> <br><br> <font color="FF0000">Buffer NPC by FidoW</font> </body></html> UPDATE: Now version 2.0 exists with new options and new checks. New version check MP of the NPC, reuse time, selfbuff with CH buff to get more MP and best cast speed. And option to buff summons yes or not that can be enabled or disabled with a simple param. You want it ? Send a PM, but i hope you are not a leeacher. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Dec 2006
Posts: 21
|
<? $eng# THX THX THX THX THX THX !!!! VERY BIG THX !!! YOU ARE THE BEST !!! thx thx thx !!!
i want give you 10 wmz (1wmz=1$)(webmoney.ru) P.S. sorry for my very bad english ... $eng# ?> <? $rus# клевый чел ,спасибо тебе !! я б тебе дал 10 вмз ,за то что ты такой хороший !!! ааа крутой тип !! $rus# ?> |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
invisiblw13 it is for c1
or u have c1 (modded) сервер?
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Dec 2006
Posts: 21
|
не я имею с4 птс ,кароче песец я буххой изваениь те блядь
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Oct 2005
Posts: 367
|
thnx
it will bee usefull
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Sep 2005
Posts: 212
|
FidoW - how you compile this code?
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Nov 2006
Posts: 204
|
nice share.. was gonna start on my own npc buffer later tonight
from the clanhallmanger as an example.. your code will save me a whole lot of work.. nice one ^^ |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jul 2006
Posts: 81
|
thanx for the share
been working on one and havn't been able to get it to work thanx for the help |
|
|
|
|
#12 |
|
Архивный участник
Join Date: Dec 2006
Posts: 207
|
hehe
i have all wright but lol i have a rabbit Oo |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
You need to make client side.
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Or use a non used NPC like the ones that begin with [__ in npcdata.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
damn 1 hour manual compile thanks for the share and the time u spent
works great
|
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Oct 2006
Posts: 40
|
Quote:
PELIGRO!, si usas este metodo de BUFF NPC, a travez del HTML EXPLOIT podes tener BUFF CUANDO QUIERAS. |
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Dec 2006
Posts: 207
|
yes but when i used all this lines i have a rabbit .
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Jun 2006
Posts: 163
|
then mod your client... npcgrp.dat and npcname-e.dat
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Dec 2006
Posts: 207
|
yes sur but , i does with L2file edit but i can't added 14003 Buffer NPC on the file npcname-e.dat and i can't read the file npcgrp.dat .
With what program i can read ? |
|
|
|
|
#20 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
I know that if you dont have fixed html xploit, you can get any buff... but free buffs ??? when you want ? this is a local AI, not global, you only can use xploit near the npc (if is possible to do that you say i dont know how) // Spanish Y como se supone que haces eso ? Se que se puede obtener cualquier buff si no tienes el exploit html arreglado, pero obtienerlo cuando quieras ? gratis ?? (supongo que cuando decias FREE BUFF era gratis)... esta AI es local, no usa superclases, solo el default, el unico exploit que se puede usar es de html y estando junto al npc... y repito, si no tienes parcheado... que creo que todos lo tenemos. |
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
|
|
|
|
|
#22 |
|
Guest
Posts: n/a
|
npcname-e.dat:
14003 Buffer NPC 9C E8 A9 -1 npcgrp.dat: 14003 LineageNPC.a_buffer_npc_MHuman LineageNPCs.a_buffer_npc_MHuman_m00 2 LineageNPCsTex.a_buffer_npc_MHuman_m00_t00_b00 LineageNPCsTex.a_buffer_npc_MHuman_m00_t00_b01 0 1 0 1.20000005 0 3 ItemSound.fist_1 ItemSound.fist_2 ItemSound.fist_3 5 ItemSound.armor_underwear_1 ItemSound.armor_underwear_2 ItemSound.armor_underwear_3 ItemSound.armor_leather_1 ItemSound.armor_leather_3 3 ChrSound.MNpc_Old_Dmg_2 ChrSound.MNpc_Fighter_Dmg_2 ChrSound.MNpc_Fighter_Dmg_3 1 1 13 76 80 LineageEffect.p_u002_a 0 50.00000000 250.00000000 70.00000000 1 0 but i see again a rabbit (( Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 15 December 2006, 10:41. Открыть источник. |
|
|
#23 |
|
Архивный участник
Join Date: Dec 2006
Posts: 207
|
npcname-e.dat:
14003 Buffer NPC 9C E8 A9 -1 npcgrp.dat: 14003 LineageNPC.a_buffer_npc_MHuman LineageNPCs.a_buffer_npc_MHuman_m00 2 LineageNPCsTex.a_buffer_npc_MHuman_m00_t00_b00 LineageNPCsTex.a_buffer_npc_MHuman_m00_t00_b01 0 1 0 1.20000005 0 3 ItemSound.fist_1 ItemSound.fist_2 ItemSound.fist_3 5 ItemSound.armor_underwear_1 ItemSound.armor_underwear_2 ItemSound.armor_underwear_3 ItemSound.armor_leather_1 ItemSound.armor_leather_3 3 ChrSound.MNpc_Old_Dmg_2 ChrSound.MNpc_Fighter_Dmg_2 ChrSound.MNpc_Fighter_Dmg_3 1 1 13 76 80 LineageEffect.p_u002_a 0 xx.xx000000 2xx.xx000000 xx.xx000000 1 0 but i see again a rabbit (( |
|
|
|
|
#24 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Client Side:
1. First decrypt DAT files with l2encdec 2. Now decode DAT files with L2ClientDat 3. Put the code at the end of each files. 4. Recode again with L2ClientDat 5. Encrypt again with l2encdec (413 encrypt) 6. Replace both files in system dir of Lineage II npcname-e.dat Code:
npc_begin id=14003 nickcolor=default nick=[Buffer] name=[FidoW] npc_end Code:
npc_begin npc_id=14003 npc_name=[] npc_speed=1 class_name=[LineageNPC.a_traderA_FHuman] mesh_name=[LineageNPCs.a_traderA_FHuman_m00] texture_name={[LineageNPCsTex.a_traderA_FHuman_m00_t00_b00];[LineageNPCsTex.a_traderA_FHuman_m00_t00_b01];[LineageNPCsTex.a_traderA_FHuman_m00_t00_f];[LineageNPCsTex.a_traderA_FHuman_m00_t00_h]} texture_name_second={[]} collision_radius=N/A collision_height=N/A attack_sound1={[ItemSound.fist_1];[ItemSound.fist_2];[ItemSound.fist_3]} defense_sound1={[ItemSound.armor_leather_1];[ItemSound.armor_leather_3];[ItemSound.armor_leather_4];[ItemSound.armor_leather_6];[ItemSound.armor_leather_8]} damage_sound={[ChrSound.FNpc_Lady_Dmg_1];[ChrSound.FNpc_Lady_Dmg_2];[ChrSound.FNpc_Lady_Dmg_3]} sound_vol=250 sound_radius=50 sound_random=70 attack_effect=[LineageEffect.p_u002_a] quest_be=0 level_limit={0;0} class_limit={} silhouette={[]} property_list={0} social=1 c3attr=0 npc_end
|
|
|
|
|
#25 |
|
Архивный участник
Join Date: Dec 2006
Posts: 207
|
it's good , or not ?
HTML Code:
class buffer_npc : default_npc
{
parameter:
string fnHi = "buffer_npc001.htm";
string fnYouAreChaotic = "buffer_npc002.htm";
string fnNotEnoughAdena = "buffer_npc003.htm";
string fnWait = "buffer_npc004.htm";
int ItemBuff = 57;
int Amount = 20000;
int Delay = 500;
handler:
EventHandler CREATED()
{
myself.i_ai0 = 0;
}
EventHandler TALKED(talker)
{
if( talker.karma > 0 )
{
myself->ShowPage(talker,fnYouAreChaotic);
}
else
{
myself->ShowPage(talker,fnHi);
}
}
EventHandler MENU_SELECTED(talker,ask,reply)
{
if( ask == -201 && myself->OwnItemCount(talker,ItemBuff) >= Amount )
{
if( myself.i_ai0 == 0 )
{
myself.i_ai0 = 1;
myself->DeleteItem1(talker,ItemBuff,Amount);
myself->AddUseSkillDesire(talker,reply,1,1,1000000);
myself->ShowPage(talker,fnHi);
myself->AddTimerEx(1,Delay);
}
else
{
myself->ShowPage(talker,fnWait);
}
}
else
{
myself->ShowPage(talker,fnNotEnoughAdena);
}
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if( ask == -201 )
{
if( reply == 273411 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
}
else if( reply == 266243 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
}
else if( reply == 275715 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
}
else if( reply == 308226 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
}
else if( reply == 317443 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
}
else if( reply == 278275 )
{
myself->ShowPage(talker,"buffer_npc001.htm");
myself.i_ai0 = 0;
}
}
}
|
|
|
|
|