View Full Version : [SHARE] Buffer NPC C4
I shared before a similar code for C1moded... ok, lest go with a newer version for C4 :p
NASC 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;
}
}
COMPILED CODE
-- DELETED --
Since nobody respect credits im not going to share.
Compile it yourself.
NPCDATA
-- DELETED --
NPC_PCH
-- DELETED --
buffer_npc001.html
<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.
invisible13
13.12.2006, 08:04
<? $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# ?>
Domzelan
13.12.2006, 08:31
invisiblw13 it is for c1 :) or u have c1 (modded) сервер?:)
invisiblw13 it is for c1 :) or u have c1 (modded) сервер?:)
It is for C4.
invisible13
13.12.2006, 10:03
не я имею с4 птс ,кароче песец я буххой изваениь те блядь
thnx ;) it will bee usefull
FidoW - how you compile this code?
i spend like 1 hour compiling that
With his bare hands :)
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 ^^
Domzelan
13.12.2006, 14:10
It is for C4.
Sorry, my bad.
DevilsAssociate
13.12.2006, 14:42
thanx for the share
been working on one and havn't been able to get it to work
thanx for the help
hehe
i have all wright but lol i have a rabbit Oo
You need to make client side.
Or use a non used NPC like the ones that begin with [__ in npcdata.
damn 1 hour manual compile thanks for the share and the time u spent :) works great
jhoni1234
15.12.2006, 04:28
I shared before a similar code for C1moded... ok, lest go with a newer version for C4 :p
NASC 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;
}
}
COMPILED CODE
class 1 buffer_npc : default_npc
parameter_define_begin
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
parameter_define_end
handler 13 11 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 0
assign4
shift_sp -1
handler_end
handler 3 38 // TALKED
variable_begin
"talker"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // talker
push_const 40
add
fetch_i // karma
push_const 468
add
fetch_i4
push_const 0
greater
branch_false L2
L1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnYouAreChaotic
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
jump L3
L2
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L3
handler_end
handler 32 134 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // ask
push_const 160
add
fetch_i4
push_const 201
negate
equal
push_reg_sp
fetch_i
branch_false L4
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter ItemBuff
func_call 184680579 // func[OwnItemCount]
shift_sp -2
push_parameter Amount
greater_equal
and
L4
branch_false L5
L6
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
fetch_i4
push_const 0
equal
branch_false L8
L7
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 1
assign4
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter ItemBuff
push_parameter Amount
func_call 184746114 // func[DeleteItem1]
shift_sp -3
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i
push_const 1
push_const 1
push_const 1000000
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_const 1
push_parameter Delay
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
jump L9
L8
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnWait
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L9
jump L10
L5
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnNotEnoughAdena
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L10
handler_end
handler 12 20 // TIMER_FIRED_EX
variable_begin
"timer_id"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // timer_id
push_const 236
add
fetch_i4
push_const 1
equal
branch_false L12
L11
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 0
assign4
shift_sp -1
L12
handler_end
class_end
NPCDATA
npc_begin citizen 14003 [buffer_npc] level=70 acquire_exp_rate=0 acquire_sp=0 unsowing=1 clan={} ignore_clan_list={} clan_help_range=300 slot_chest=[] slot_rhand=[] slot_lhand=[] shield_defense_rate=0 shield_defense=0 skill_list={@s_race_undead;@s_npc_weakness_holy3;@ s_evil_attack;@s_npc_weakness_fire1} npc_ai={[buffer_npc];{[fnHi]=[buffer_npc001.htm]}} category={} race=human sex=female undying=1 can_be_attacked=0 corpse_time=1 no_sleep_mode=0 agro_range=0 ground_high={120;0;0} ground_low={50;0;0} exp=429634528 org_hp=2444.5 org_hp_regen=7.5 org_mp=10000 org_mp_regen=200 collision_radius={8;8} collision_height={24;24} str=60 int=90 dex=50 wit=90 con=60 men=40 base_attack_type=sword base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 base_physical_attack=6xx.xx373 base_critical=4 physical_hit_modify=4.75 base_attack_speed=253 base_reuse_delay=0 base_magic_attack=470.4 base_defend=2xx.xx base_magic_defend=2xx.xx physical_avoid_modify=0 soulshot_count=0 spiritshot_count=0 hit_time_factor=0.6 item_make_list={} corpse_make_list={} additional_make_list={} additional_make_multi_list={} hp_increase=0 mp_increase=0 safe_height=100 npc_end
NPC_PCH
[buffer_npc] = 1014003
buffer_npc001.html
<html><body>
Buffer NPC:<br>
Por solo <font color="LEVEL">1000 adenas</font> te podemos dar auras! Elije aquellas que prefieras!<br>
<table><tr><td width=80>
<a action="bypass -h menu_select?ask=-201&reply=273411">[Might]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=266243">[Shield]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=275715">[Focus]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=308226">[Windwalk]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=317443">[Guidance]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=278275">[Agility]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=265218">[Magic Barrier]</a>
</td><td width=100>
<a action="bypass -h menu_select?ask=-201&reply=277763">[Acumen]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=271107">[Empower]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=268294">[Bless the Soul]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=271874">[Berserker Spirit]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=267009">[Holy Weapon]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=264964">[Mental Shield]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=275974">[Concrentrarion]</a>
</td><td width=100>
<a action="bypass -h menu_select?ask=-201&reply=267267">[Regeneration]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=316931">[Freezing Skin]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=267526">[Bless the Body]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=318214">[Bless the Shield]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=278018">[Haste]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=317955">[Death Wisper]</a><br>
<a action="bypass -h menu_select?ask=-201&reply=274690">[Kiss Of Eva]</a>
</td></tr></table>
<br><br><br>
<font color="FF0000">Buffer NPC by FidoW</font>
</body></html>
You need to do other html files... isnt too hard...
If someone have a C4 compiler will be interesting because i spend like 1 hour compiling that -.- maybe the next time it will be faster, but is the first time I try to code a enterly AI code from NASC.
Tip: SauDecompiler can help you to code you own AI, i do that, thanks to Sauron.
WARNING!, IF YOU USE THIS NPC YOU CAN USE THE HTML EXPLOIT TO HAVE FREE BUFFS.
PELIGRO!, si usas este metodo de BUFF NPC, a travez del HTML EXPLOIT podes tener BUFF CUANDO QUIERAS.
yes but when i used all this lines i have a rabbit .
AsterisKSM
15.12.2006, 05:54
then mod your client... npcgrp.dat and npcname-e.dat
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 ?
WARNING!, IF YOU USE THIS NPC YOU CAN USE THE HTML EXPLOIT TO HAVE FREE BUFFS.
PELIGRO!, si usas este metodo de BUFF NPC, a travez del HTML EXPLOIT podes tener BUFF CUANDO QUIERAS.
And how exactly you do that ?
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.
WARNING!, IF YOU USE THIS NPC YOU CAN USE THE HTML EXPLOIT TO HAVE FREE BUFFS.
PELIGRO!, si usas este metodo de BUFF NPC, a travez del HTML EXPLOIT podes tener BUFF CUANDO QUIERAS.
How to protect and how that exploit will work?
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 ((
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
npc_begin id=14003 nickcolor=default nick=[Buffer] name=[FidoW] npc_end
npcgrp.dat
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
it's good , or not ?
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;
}
}
}
LOL, what are you doing man ?
ismael66
15.12.2006, 20:39
it's good , or not ?
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;
}
}
}
I suggest you start with l2j
loool i don't know but explain me lol .
can you wright some lines for exemple ?
Thx,will be useful in future ;)
it's not cool ((( :p
plz help me
i can pay a guy for create 1 npc buffer for me .
i have a little problem... why when i click on the buffer npc , the window open but nothing on ...
The link it's good i see ===> buffer_npc001.htm
can you explain me , plz ?
uhm most of the time its cause the htm isnt saved in unicode..
Damm, the fucking same questions that has been answered 2 hundred times in this forum, Genes2, use search, read the forum ,spent some days learning by yourself, and later, when you have some problem and isnt in the forum, ok, start making questions, but for now.. stop spamming the forum and specially my thread, the code works good, the HTMLs are OK, i think, your problem is like dirkr say... you dont save HTML in UNICODE but.. thats the first thing you need to learn before do anything with L2OFF because ALL FILES are in UNICODE format.
so ......
thx for you explain . i have resolve my problem very very big thx ^^
scrap512
20.12.2006, 14:28
lol thats what happens when people dont read the topic
Fileburner
09.01.2007, 23:25
thanx fidow for sharing ^^
just a little question is it possible to be made for dances and songs or whatever buff ?
Guaresnay
10.01.2007, 00:30
thanx fidow for sharing ^^
just a little question is it possible to be made for dances and songs or whatever buff ?
look at htmls...
boys I have done all what surrender beside me not чево was not got help send me who that
ai html npcdata pls
zip
tavakalov@mail.ru
boys I have done all what surrender beside me not what was not got help send me who that
zip
tavakalov@mail.ru
sty me eng (
Namenlos
12.01.2007, 01:36
Dear tera, you are MyDak!
Wrong forum ban him!
Aikeleer
12.01.2007, 06:48
Wow, didn't know so many people don't have a clue about how the server works. Thanks FidoW, manually compiling AI code is really shitty work, I know.
Dear tera, you are MyDak!
Wrong forum ban him!
ti eto sledi za slovami
kto daval prova tebe govarit takie slova
esli y neznau kak eto delat ne daey yebe pravo banit menya i obzivat
ludwe pomagi mne
ppc. sorry ppl from my english, but, tera, DoLpAeB :D
ppc. sorry ppl from my english, but, tera, DoLpAeB :D
you mather ok ?)))
yes steep fun you has said I so long laughed it is necessary you
FidoW big senks
all good work
respect you
too Lirix - A nas4et dalbaebov dalbaet ti kupi o4ki novie sebe ))))
woot, thanks for sharing this , realy needed that.
btw is there anyway to fix that html exploit mentioned before on this thread?
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
sample.rar — 4270 байт
HyperViper©
18.02.2007, 18:01
Is changing this buffers race and sex all client side? For ex if I wanted to make a stationary imp as the NPC.
Hey FiddoW.
You dont happen to have the old source somewere on the computer ;)
For the C1 modded servers :D
Thats my code for the old C1, htmls are the same.
Is NASC code so, you need to compile it.
class citizen { }
class buffer_npc : citizen {
parameter:
string fnHi = "buffer_npc001.htm";
string fnYouAreChaotic = "buffer_npc002.htm";
string fnNotEnoughAdena = "buffer_npc003.htm";
string fnWait = "buffer_npc004.htm";
int Precio = 1000;
int Delay = 250;
handler:
EventHandler TALKED(talker)
{
if (talker.karma > 0) ShowPage(talker, fnYouAreChaotic);
else ShowPage(talker, fnHi);
super;
}
EventHandler CREATED() {
myself.i_ai0 = 0;
}
EventHandler MENU_SELECTED(ask, reply, talker) {
if ( (ask == -201) && (OwnItemCount(talker, @adena) >= Precio) ) {
if (myself.i_ai0 == 0) {
myself.i_ai0 = 1;
DeleteItem1(talker, @adena, Precio);
AddUseSkillDesire(talker, reply, 0, 1, 1000000);
ShowPage(talker, fnHi);
AddTimerEx(1, Delay);
}
else ShowPage(talker, fnWait);
}
else ShowPage(talker, fnNotEnoughAdena);
}
EventHandler TIMER_FIRED_EX(timer_id) {
if (timer_id == 1) myself.i_ai0 = 0;
}
}
estebanceb
24.02.2007, 15:44
i have this error
http://img300.imageshack.us/img300/5959/shot00005mr9.th.png (http://img300.imageshack.us/my.php?image=shot00005mr9.png)
thx
Save html files in UNICODE format.
estebanceb
24.02.2007, 16:37
Nice :D
thank you very much FiDoW
darkarax
02.03.2007, 16:37
do we need client modding for the npc buffer ????
Dedends if you use an already existing NPC or a new one.
Some Unused NPCs
122 nick=[Out of Use] name=[Arachne]
123 nick=[Out of Use] name=[Bloody Pixy]
124 nick=[Out of Use] name=[Dark Pan]
125 nick=[Out of Use] name=[Pan]
126 nick=[Out of Use] name=[Pixy]
127 nick=[Out of Use] name=[Red Arachne]
128 nick=[Out of Use] name=[Blight Treant]
129 nick=[Out of Use] name=[Treant]
178 nick=[Out of Use] name=[Skeleton Knight]
179 nick=[Out of Use] name=[Lichking Nassen]
180 nick=[Out of Use] name=[Greater Stone Golem]
181 nick=[Out of Use] name=[Grace Unicorn]
182 nick=[Out of Use] name=[Grace Dryad]
183 nick=[Out of Use] name=[Hellfire Salamander]
184 nick=[Out of Use] name=[Clearwind Sylph]
185 nick=[Out of Use] name=[Maelstrom Undine]
186 nick=[Out of Use] name=[Greater Dre Vanul]
187 nick=[Out of Use] name=[Voiceless Knight]
188 nick=[Out of Use] name=[Sting Spider]
195 nick=[Out of Use] name=[Pixy Murika]
196 nick=[Out of Use] name=[Treant Bremec]
247 nick=[Out of Use] name=[Bloody Queen]
262 nick=[Out of Use] name=[Out of Use]
263 nick=[Out of Use] name=[Ol Mahum Novice]
264 nick=[Out of Use] name=[Dark Succubus]
278 nick=[Out of Use] name=[Bloody Queen]
288 nick=[Out of Use] name=[Cat's Eye Bandit]
289 nick=[Out of Use] name=[Ol Mahum Novice]
290 nick=[Out of Use] name=[Dark Succubus]
306 nick=[Out of Use] name=[Out of Use]
315 nick=[Out of Use] name=[Out of Use]
332 nick=[Out of Use] name=[Out of Use]
339 nick=[Out of Use] name=[Out of Use]
344 nick=[Out of Use] name=[Out of Use]
355 nick=[Out of Use] name=[Out of Use]
366 nick=[Out of Use] name=[Out of Use]
384 nick=[Out of Use] name=[Out of Use]
395 nick=[Out of Use] name=[Out of Use]
396 nick=[Out of Use] name=[Out of Use]
397 nick=[Out of Use] name=[Out of Use]
408 nick=[Out of Use] name=[Sharuk's Henchmen]
409 nick=[Out of Use] name=[Soul Scavenger]
413 nick=[Out of Use] name=[Out of Use]
414 nick=[Out of Use] name=[Sukar Wererat Chief]
417 nick=[Out of Use] name=[Sirocco Gargoyle]
430 nick=[Out of Use] name=[Abyss Flyer]
434 nick=[Out of Use] name=[Yellow Hornet]
452 nick=[Out of Use] name=[Kaysha Herald Of Ikaros]
459 nick=[Out of Use] name=[Zombie Lord Farakelsus]
467 nick=[Out of Use] name=[Tracker Sharuk]
482 nick=[Out of Use] name=[Corpse Scavenger]
484 nick=[Out of Use] name=[Follower Of Kuroboros]
485 nick=[Out of Use] name=[Priest Of Kuroboros]
486 nick=[Out of Use] name=[Soldier Of Kuroboros]
493 nick=[Out of Use] name=[Tiger Hornet]
503 nick=[Out of Use] name=[Farakelsus Zombie]
523 nick=[Out of Use] name=[Wasteland Basilisk]
687 nick=[Out of Use] name=[Revenant of Sir Calibus]
688 nick=[Out of Use] name=[Squire of Calibus]
689 nick=[Out of Use] name=[Demon Tempest]
690 nick=[Out of Use] name=[Revenant of The Executed]
691 nick=[Out of Use] name=[Trakia]
692 nick=[Out of Use] name=[Red Eye Guards]
693 nick=[Out of Use] name=[Nurka's Messenger]
694 nick=[Out of Use] name=[Messenger Escort]
695 nick=[Out of Use] name=[Captain of Queen's Royal Guard]
696 nick=[Out of Use] name=[Marsh Stakato Noble]
697 nick=[Out of Use] name=[Premo Prime]
698 nick=[Out of Use] name=[Titan's Creation, Bemos]
699 nick=[Out of Use] name=[Archon Susceptor]
700 nick=[Out of Use] name=[Gustos Susceptor]
701 nick=[Out of Use] name=[Eye of Beleth]
702 nick=[Out of Use] name=[Follower of The Eye]
703 nick=[Out of Use] name=[Skyla]
704 nick=[Out of Use] name=[Skyla's Retainer]
705 nick=[Out of Use] name=[Corsair Captain Kylon]
706 nick=[Out of Use] name=[Kylon's Pirate]
707 nick=[Out of Use] name=[Lord Ishka]
708 nick=[Out of Use] name=[Cave Servant General]
709 nick=[Out of Use] name=[Rinoket]
710 nick=[Out of Use] name=[Rinoket's Henchman]
711 nick=[Out of Use] name=[Necrosentinel Guard]
712 nick=[Out of Use] name=[Necrosentinel Archer]
713 nick=[Out of Use] name=[Nakondas]
714 nick=[Out of Use] name=[Nakonda's Slave]
715 nick=[Out of Use] name=[Dread Avenger Kraven]
716 nick=[Out of Use] name=[Dread Panther]
717 nick=[Out of Use] name=[Handmaiden of Orfen]
718 nick=[Out of Use] name=[Trisalim Escort]
719 nick=[Out of Use] name=[Fairy Queen Timiniel]
720 nick=[Out of Use] name=[Timiniel's Escort]
721 nick=[Out of Use] name=[Out of Use]
722 nick=[Out of Use] name=[Out of Use]
723 nick=[Out of Use] name=[Centaurus]
724 nick=[Out of Use] name=[Crimson Bear]
725 nick=[Out of Use] name=[Devastator]
726 nick=[Out of Use] name=[Saber Toothed Tiger]
727 nick=[Out of Use] name=[Liviona]
728 nick=[Out of Use] name=[Heltor Silenos]
729 nick=[Out of Use] name=[Heltor Silenos Chieftain]
730 nick=[Out of Use] name=[Heltor Silenos Hunter]
731 nick=[Out of Use] name=[Heltor Silenos Shaman]
732 nick=[Out of Use] name=[Heltor Silenos Warrior]
733 nick=[Out of Use] name=[Ketra Orc]
734 nick=[Out of Use] name=[Ketra Orc Archer]
735 nick=[Out of Use] name=[Ketra Orc Overload]
736 nick=[Out of Use] name=[Ketra Orc Shaman]
737 nick=[Out of Use] name=[Ketra Orc Warrior]
740 nick=[Out of Use] name=[Leader Talloth]
741 nick=[Out of Use] name=[Rampage Golem]
863 nick=[Out of Use] name=[Magic Golem Gonhirim]
864 nick=[Out of Use] name=[Gonhirim's Magic Golem]
865 nick=[Out of Use] name=[Gonhirim's Golem]
866 nick=[Out of Use] name=[Bandit Leader Barda]
867 nick=[Out of Use] name=[Barda's Bandit]
868 nick=[Out of Use] name=[Timak Orc Gosmos]
869 nick=[Out of Use] name=[Gosmos's Inferiors]
870 nick=[Out of Use] name=[Thief Kelbar]
871 nick=[Out of Use] name=[Kelbar's Inferiors]
872 nick=[Out of Use] name=[Evil Creature Cyrion]
873 nick=[Out of Use] name=[Evil Creatures of Forest]
874 nick=[Out of Use] name=[Enmity Ghost Ramdal]
875 nick=[Out of Use] name=[Enmity Ghosts]
876 nick=[Out of Use] name=[Immortal Savior Mardil]
877 nick=[Out of Use] name=[Immortal Savior]
878 nick=[Out of Use] name=[Cherub Galaxia]
879 nick=[Out of Use] name=[Galaxia's Escort]
880 nick=[Out of Use] name=[Cherub's Messenger]
881 nick=[Out of Use] name=[Meanas Anor]
882 nick=[Out of Use] name=[Marsh's Wyvern]
883 nick=[Out of Use] name=[Oblivion's Mirror]
884 nick=[Out of Use] name=[Deprived Men]
885 nick=[Out of Use] name=[Deprived Men]
886 nick=[Out of Use] name=[Deprived Men]
887 nick=[Out of Use] name=[Deadman Ereve]
888 nick=[Out of Use] name=[Ereve's Knight]
889 nick=[Out of Use] name=[Ereve's Follower]
890 nick=[Out of Use] name=[Harit Guardian Garangky]
891 nick=[Out of Use] name=[Garangky's Guard Leader]
892 nick=[Out of Use] name=[Garangky's Guard Shaman]
893 nick=[Out of Use] name=[Garangky's Guard]
894 nick=[Out of Use] name=[Gorgolos]
895 nick=[Out of Use] name=[Cursed Souls]
896 nick=[Out of Use] name=[Last Titan Utenus]
897 nick=[Out of Use] name=[Utenus' Guard]
898 nick=[Out of Use] name=[Grave Robber Kim]
899 nick=[Out of Use] name=[Kim's Gang]
900 nick=[Out of Use] name=[Ghost Knight Kabed]
901 nick=[Out of Use] name=[Kabed's Soldiers]
902 nick=[Out of Use] name=[Priest of Shilen, Hisilrome]
903 nick=[Out of Use] name=[Hisilrome's Servitor]
904 nick=[Out of Use] name=[Magician Kenishee]
905 nick=[Out of Use] name=[Kenishee's Servitor]
906 nick=[Out of Use] name=[Zaken's Chief Mate Tillion]
907 nick=[Out of Use] name=[Tilion's Inferiors]
908 nick=[Out of Use] name=[Tilion's Bat]
909 nick=[Out of Use] name=[Water Spirit Lian]
910 nick=[Out of Use] name=[Lian's Water Spirit]
911 nick=[Out of Use] name=[Gwindorr]
912 nick=[Out of Use] name=[Gwindorr's Snake]
913 nick=[Out of Use] name=[Eva's Spirit Niniel]
914 nick=[Out of Use] name=[Niniel's Spirits]
915 nick=[Out of Use] name=[Pingolpin]
916 nick=[Out of Use] name=[Fafurion's Envoy]
917 nick=[Out of Use] name=[Istary]
918 nick=[Out of Use] name=[Istary's Alligators]
1027 nick=[Out of Use] name=[Bear Prince Malcolm]
1028 nick=[Out of Use] name=[Succubus Handmaiden]
1029 nick=[Out of Use] name=[Goblin Servant]
1030 nick=[Out of Use] name=[Julie The Ripper ]
1031 nick=[Out of Use] name=[Lesser Noble Ant]
1032 nick=[Out of Use] name=[Blueback Alligator]
1033 nick=[Out of Use] name=[Jewel Alligator]
1041 nick=[Out of Use] name=[Kusion Suscepter]
1042 nick=[Out of Use] name=[Treasure Chest]
1043 nick=[Out of Use] name=[Treasure Chest]
1044 nick=[Out of Use] name=[Treasure Chest]
1045 nick=[Out of Use] name=[Treasure Chest]
1046 nick=[Out of Use] name=[Treasure Chest]
1047 nick=[Out of Use] name=[Treasure Chest]
1048 nick=[Out of Use] name=[Treasure Chest]
1049 nick=[Out of Use] name=[Treasure Chest]
1050 nick=[Out of Use] name=[Treasure Chest]
1051 nick=[Out of Use] name=[Treasure Chest]
1052 nick=[Out of Use] name=[Treasure Chest]
1053 nick=[Out of Use] name=[Treasure Chest]
1054 nick=[Out of Use] name=[Treasure Chest]
1055 nick=[Out of Use] name=[Treasure Chest]
1056 nick=[Out of Use] name=[Treasure Chest]
1057 nick=[Out of Use] name=[Treasure Chest]
5010 nick=[Out of Use] name=[Fallen Knight Saythus]
5011 nick=[Out of Use] name=[Fallen Knight Trayer]
5012 nick=[Out of Use] name=[Fallen Knight Falimar]
5013 nick=[Out of Use] name=[Garuuk Blackskull]
5014 nick=[Out of Use] name=[Madclaw Takuttaku]
5015 nick=[Out of Use] name=[Rakanos Viperheart]
5023 nick=[Out of Use] name=[Out of Use]
5025 nick=[Out of Use] name=[Ol Mahum cat's eye]
5026 nick=[Out of Use] name=[Ol Mahum eagle eye]
5027 nick=[Out of Use] name=[Ol Mahum fox eye]
5028 nick=[Out of Use] name=[Ol Mahum wolf eye]
More...
5039 nick=[Out of Use] name=[Out of Use]
5040 nick=[Out of Use] name=[Out of Use]
5057 nick=[Out of Use] name=[Out of Use]
5071 nick=[Out of Use] name=[Out of Use]
5072 nick=[Out of Use] name=[Out of Use]
5073 nick=[Out of Use] name=[Out of Use]
5074 nick=[Out of Use] name=[Out of Use]
5075 nick=[Out of Use] name=[Out of Use]
5076 nick=[Out of Use] name=[Out of Use]
5084 nick=[Out of Use] name=[Out of Use]
5085 nick=[Out of Use] name=[Out of Use]
5087 nick=[Out of Use] name=[Out of Use]
5091 nick=[Out of Use] name=[Out of Use]
7011 nick=[] name=[Trash]
7012 nick=[] name=[Trash]
7023 nick=[] name=[Trash]
7024 nick=[] name=[Trash]
7025 nick=[] name=[Trash]
7038 nick=[] name=[Trash]
7052 nick=[] name=[trash]
7053 nick=[] name=[trash]
7056 nick=[] name=[Trash]
7077 nick=[] name=[trash]
7089 nick=[] name=[trash]
7096 nick=[] name=[trash]
7099 nick=[] name=[trash]
7100 nick=[] name=[trash]
7101 nick=[] name=[trash]
7102 nick=[] name=[trash]
7127 nick=[] name=[trash]
7142 nick=[] name=[trash]
7159 nick=[] name=[trash]
7160 nick=[] name=[trash]
7161 nick=[] name=[trash]
7167 nick=[] name=[trash]
7168 nick=[] name=[trash]
7172 nick=[] name=[trash]
7173 nick=[] name=[trash]
7202 nick=[] name=[trash]
7203 nick=[] name=[trash]
7204 nick=[] name=[trash]
7205 nick=[] name=[trash]
7206 nick=[] name=[trash]
7211 nick=[] name=[trash]
7212 nick=[] name=[trash]
7213 nick=[] name=[trash]
7214 nick=[] name=[trash]
7215 nick=[] name=[trash]
7225 nick=[] name=[trash]
7226 nick=[] name=[trash]
7227 nick=[] name=[trash]
7228 nick=[] name=[trash]
7229 nick=[] name=[trash]
7234 nick=[] name=[trash]
7235 nick=[] name=[trash]
7236 nick=[] name=[trash]
7237 nick=[] name=[trash]
7238 nick=[] name=[trash]
7239 nick=[] name=[trash]
7240 nick=[] name=[trash]
7241 nick=[] name=[trash]
7242 nick=[] name=[trash]
7243 nick=[] name=[trash]
7244 nick=[] name=[trash]
7245 nick=[] name=[trash]
7246 nick=[] name=[trash]
7247 nick=[] name=[trash]
7248 nick=[] name=[trash]
7249 nick=[] name=[trash]
7251 nick=[] name=[trash]
7252 nick=[] name=[trash]
7257 nick=[] name=[trash]
7258 nick=[] name=[trash]
7259 nick=[] name=[trash]
7260 nick=[] name=[trash]
7261 nick=[] name=[trash]
7262 nick=[] name=[trash]
7263 nick=[] name=[trash]
7264 nick=[] name=[trash]
7265 nick=[] name=[trash]
7266 nick=[] name=[trash]
7267 nick=[] name=[trash]
7268 nick=[] name=[trash]
7269 nick=[] name=[trash]
7270 nick=[] name=[trash]
7271 nick=[] name=[trash]
7272 nick=[] name=[trash]
7273 nick=[] name=[trash]
7274 nick=[] name=[trash]
7275 nick=[] name=[trash]
7276 nick=[] name=[trash]
7277 nick=[] name=[trash]
7278 nick=[] name=[trash]
7279 nick=[] name=[trash]
7280 nick=[] name=[trash]
7281 nick=[] name=[trash]
7282 nick=[] name=[trash]
7286 nick=[] name=[trash]
7287 nick=[] name=[trash]
7292 nick=[] name=[trash]
7295 nick=[] name=[trash]
7296 nick=[] name=[trash]
7299 nick=[] name=[trash]
7302 nick=[] name=[trash]
7303 nick=[] name=[trash]
7304 nick=[] name=[trash]
7306 nick=[] name=[trash]
7308 nick=[] name=[trash]
7309 nick=[] name=[trash]
7310 nick=[] name=[trash]
7318 nick=[] name=[trash]
7319 nick=[] name=[trash]
7323 nick=[] name=[trash]
7324 nick=[] name=[trash]
7339 nick=[] name=[trash]
7340 nick=[] name=[trash]
7341 nick=[] name=[trash]
7364 nick=[] name=[trash]
7365 nick=[] name=[trash]
7366 nick=[] name=[trash]
7367 nick=[] name=[trash]
7372 nick=[] name=[trash]
7388 nick=[] name=[trash]
7389 nick=[] name=[trash]
7390 nick=[] name=[trash]
7392 nick=[] name=[trash]
7393 nick=[] name=[trash]
7394 nick=[] name=[trash]
7395 nick=[] name=[trash]
7396 nick=[] name=[trash]
7397 nick=[] name=[trash]
7398 nick=[] name=[trash]
7399 nick=[] name=[trash]
7438 nick=[] name=[trash]
7439 nick=[] name=[trash]
7440 nick=[] name=[trash]
7441 nick=[] name=[trash]
7442 nick=[] name=[trash]
7443 nick=[] name=[trash]
7446 nick=[] name=[trash]
7447 nick=[] name=[trash]
7448 nick=[] name=[trash]
7449 nick=[] name=[trash]
7450 nick=[] name=[trash]
7451 nick=[] name=[trash]
7453 nick=[] name=[trash]
7454 nick=[] name=[trash]
7455 nick=[] name=[trash]
7456 nick=[] name=[trash]
7457 nick=[] name=[trash]
7467 nick=[] name=[trash]
7468 nick=[] name=[trash]
7470 nick=[] name=[trash]
7479 nick=[] name=[trash]
7480 nick=[] name=[trash]
7481 nick=[] name=[trash]
7482 nick=[] name=[trash]
7574 nick=[] name=[Trash]
7603 nick=[] name=[trash]
7604 nick=[] name=[trash]
7606 nick=[] name=[trash]
7607 nick=[] name=[trash]
10195 nick=[Out of Use] name=[Out of Use]
10196 nick=[Out of Use] name=[Out of Use]
10197 nick=[Out of Use] name=[Out of Use]
12076 nick=[Out of Use] name=[Hatchling]
12197 nick=[Out of Use] name=[Life Cubic]
12198 nick=[Out of Use] name=[Life Cubic]
12199 nick=[Out of Use] name=[Life Cubic]
12200 nick=[Out of Use] name=[Storm Cubic]
12201 nick=[Out of Use] name=[Storm Cubic]
12202 nick=[Out of Use] name=[Storm Cubic]
12203 nick=[Out of Use] name=[Vampiric Cubic]
12204 nick=[Out of Use] name=[Vampiric Cubic]
12205 nick=[Out of Use] name=[Vampiric Cubic]
12206 nick=[Out of Use] name=[Phantom Cubic]
12207 nick=[Out of Use] name=[Phantom Cubic]
12208 nick=[Out of Use] name=[Phantom Cubic]
12209 nick=[Out of Use] name=[Viper Cubic]
12210 nick=[Out of Use] name=[Viper Cubic]
12325 nick=[Out of Use] name=[Gatekeeper]
12326 nick=[Out of Use] name=[Gatekeeper]
12327 nick=[Out of Use] name=[Gatekeeper]
12328 nick=[Out of Use] name=[Gatekeeper]
12329 nick=[Out of Use] name=[Gatekeeper]
12330 nick=[Out of Use] name=[Gatekeeper]
12331 nick=[Out of Use] name=[Gatekeeper]
12332 nick=[Out of Use] name=[Gatekeeper]
12333 nick=[Out of Use] name=[Gatekeeper]
12334 nick=[Out of Use] name=[Gatekeeper]
12335 nick=[Out of Use] name=[Gatekeeper]
12336 nick=[Out of Use] name=[Gatekeeper]
12337 nick=[Out of Use] name=[Gatekeeper]
12338 nick=[Out of Use] name=[Gatekeeper]
12339 nick=[Out of Use] name=[Gatekeeper]
12340 nick=[Out of Use] name=[Gatekeeper]
12341 nick=[Out of Use] name=[Gatekeeper]
12378 nick=[Out of Use] name=[Ancient Treasure Chest]
12379 nick=[Out of Use] name=[Ancient Treasure Chest]
12380 nick=[Out of Use] name=[Ancient Treasure Chest]
12381 nick=[Out of Use] name=[Ancient Treasure Chest]
12382 nick=[Out of Use] name=[Ancient Treasure Chest]
12383 nick=[Out of Use] name=[Ancient Treasure Chest]
12384 nick=[Out of Use] name=[Ancient Treasure Chest]
12385 nick=[Out of Use] name=[Ancient Treasure Chest]
12386 nick=[Out of Use] name=[Ancient Treasure Chest]
12387 nick=[Out of Use] name=[Ancient Treasure Chest]
12388 nick=[Out of Use] name=[Ancient Treasure Chest]
12389 nick=[Out of Use] name=[Ancient Treasure Chest]
12390 nick=[Out of Use] name=[Ancient Treasure Chest]
12391 nick=[Out of Use] name=[Ancient Treasure Chest]
12392 nick=[Out of Use] name=[Ancient Treasure Chest]
12393 nick=[Out of Use] name=[Ancient Treasure Chest]
12394 nick=[Out of Use] name=[Ancient Treasure Chest]
12395 nick=[Out of Use] name=[Ancient Treasure Chest]
12396 nick=[Out of Use] name=[Ancient Treasure Chest]
12397 nick=[Out of Use] name=[Ancient Treasure Chest]
12398 nick=[Out of Use] name=[Ancient Treasure Chest]
12399 nick=[Out of Use] name=[Ancient Treasure Chest]
12400 nick=[Out of Use] name=[Ancient Treasure Chest]
12401 nick=[Out of Use] name=[Ancient Treasure Chest]
12402 nick=[Out of Use] name=[Ancient Treasure Chest]
12403 nick=[Out of Use] name=[Ancient Treasure Chest]
12404 nick=[Out of Use] name=[Ancient Treasure Chest]
12405 nick=[Out of Use] name=[Ancient Treasure Chest]
12406 nick=[Out of Use] name=[Ancient Treasure Chest]
12407 nick=[Out of Use] name=[Ancient Treasure Chest]
12408 nick=[Out of Use] name=[Ancient Treasure Chest]
12409 nick=[Out of Use] name=[Ancient Treasure Chest]
12516 nick=[Out of Use] name=[__Big Boom]
12529 nick=[Out of Use] name=[__Kai the Cat]
12530 nick=[Out of Use] name=[__Unicorn Merrow]
12531 nick=[Out of Use] name=[__Soulless]
12546 nick=[Out of Use] name=[Guard]
12547 nick=[Out of Use] name=[Sentinel]
12548 nick=[Out of Use] name=[Sentry]
12549 nick=[Out of Use] name=[Defender]
12550 nick=[Out of Use] name=[Centurion]
12610 nick=[Out of Use] name=[Gatekeeper]
12611 nick=[Out of Use] name=[Gatekeeper]
12612 nick=[Out of Use] name=[Gatekeeper]
And this is how looks some of them.
http://img116.imageshack.us/img116/6303/unusednpcsjg2.th.jpg (http://img116.imageshack.us/img116/6303/unusednpcsjg2.jpg)
You can use anyone of this npcs for the buffer... or create a new one.
I have this problem: When i speak to the NPC Buffer and i choose a buff it takes the adena and he don't do the buffs. What i can do?
Obviuslly you are making something wrong... or htmls are wrong.. or i dont know ...
Look when i speak to the npc, he show me the buffs but when i choose a buff then take my adena and he don't do the buff.
Anyway i will reistall it.
Regrats
kanziguy
07.05.2007, 04:10
i guess add another buff to buffer_npc
buff code ? (ex:vampiric rage)
Guaresnay
07.05.2007, 04:52
check codes from skill_pch
kanziguy
09.05.2007, 15:29
hellow every one
i guess add song and dance buff.
tell me please
Look when i speak to the npc, he show me the buffs but when i choose a buff then take my adena and he don't do the buff.
Anyway i will reistall it.
Regrats
make sure that you aren't invisible when you talk to the buffer :D
make sure that you aren't invisible when you talk to the buffer :D
It doesnt matter, npc buff you even if you are hide
First... please! use code tags!
Second... your version ? damm, looks very similar to mine except for the thing you delete the adena in ALL cases, if npc dont buff... he delete your adena... and if buff too. You dont initialize i_ai0, so im not sure but most probably npc never is going to give buffs and you set a default DELAY of 10 SECONDS between buffs, WTF!?
It doesnt matter, npc buff you even if you are hide
Intresting my NPC Server gives a error
Cannot find Target id "3"
shit modifications :P
small modified original version work good buff and take adena
sorr bad end.
good work for me.
i don`t understand else buffer don`t work for you
set mob param in npcdata int 99 wit 99
and pc_parametr :
INT attribute_99 = 282000
WIT attribute_99 = 282000
class 1 buffer_npc : teleporter
parameter_define_begin
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 25000
int Delay 1000
parameter_define_end
handler 5 25 // SEE_CREATURE
variable_begin
"creature"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // creature
push_const 112
add
fetch_i // karma
push_const 468
add
fetch_i4
push_const 0
greater
branch_false L196
L195
push_event // myself
push_const 704
add
fetch_i
push_event // creature
push_const 112
add
fetch_i
push_const 1
push_const 1500
func_call 184745993 // func[AddAttackDesire]
shift_sp -3
shift_sp -1
L196
handler_end
handler 1 28 // ATTACKED
variable_begin
"attacker"
"damage"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // gg
push_const 632
add
fetch_i
push_const 100
func_call 218169344 // func[Rand]
shift_sp -1
push_const 99
less
branch_false L4829800
L4829001
push_event // myself
push_const 704
add
fetch_i
push_event // attacker
push_const 48
add
fetch_i
push_const 1155841
push_const 0
push_const 1
push_const 1000000
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
L4829800
call_super
handler_end
handler 13 11 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 0
assign4
shift_sp -1
handler_end
handler 3 38 // TALKED
variable_begin
"talker"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // talker
push_const 40
add
fetch_i // karma
push_const 468
add
fetch_i4
push_const 0
greater
branch_false L2
L1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_const 0
push_const 1000000
negate
func_call 184746219 // func[IncrementParam]
shift_sp -3
shift_sp -1
jump L3
L2
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnHi
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
jump L50
L3
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnYouAreChaotic
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L50
handler_end
handler 32 134 // MENU_SELECTED
variable_begin
"talker"
"ask"
"reply"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // ask
push_const 160
add
fetch_i4
push_const 201
negate
equal
push_reg_sp
fetch_i
branch_false L4
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter ItemBuff
func_call 184680579 // func[OwnItemCount]
shift_sp -2
push_parameter Amount
greater_equal
and
L4
branch_false L5
L6
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
fetch_i4
push_const 0
equal
branch_false L8
L7
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 1
assign4
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_event // reply
push_const 164
add
fetch_i
push_const 1
push_const 1
push_const 1000000
func_call 184877074 // func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event // myself
push_const 704
add
fetch_i
push_const 1
push_const 10000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
jump L9
L8
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnWait
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
jump L10
L9
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter ItemBuff
push_parameter Amount
func_call 184746114 // func[DeleteItem1]
shift_sp -3
shift_sp -1
jump L10
L5
shift_sp 1
push_event // myself
push_const 704
add
fetch_i
push_event // talker
push_const 40
add
fetch_i
push_parameter fnNotEnoughAdena
func_call 184680516 // func[ShowPage]
shift_sp -2
shift_sp -1
L10
handler_end
handler 12 20 // TIMER_FIRED_EX
variable_begin
"timer_id"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // timer_id
push_const 236
add
fetch_i4
push_const 1
equal
branch_false L12
L11
push_event // myself
push_const 704
add
fetch_i // i_ai0
push_const 308
add
push_reg_sp
fetch_i
push_const 0
assign4
shift_sp -1
L12
handler_end
class_end
sorr what is tags?
[ C O D E ]
[ / C O D E ]
Fidow i want to help me... I use the StormServer pack... what serverpack you use?
Fidow i want to help me... I use the StormServer pack... what serverpack you use?
My own.... my own work since the first bugged release.
My own.... my own work since the first bugged release.
Look, i use the storm server pack. I make all as exatcly as you said and my buffer when i speak to him and choose a buff takes my money and he didn't buff me.... What i can do?
- Regrats
[ C O D E ]
[ / C O D E ]
big senk. post edited
Problem Fixed! I had some errors in htms...
qu1ksilver
27.05.2007, 22:08
hmm, very weird. I use a different npc buffer, but the issue might be the same, I've created a new skill - like a song you can cast upon a target without having it in party - it works, because I can give it to myself and cast upon others. But when I give it to my npc buffer, she would use it - the animation happens - money disappears - but she just doesnt target me and I get no buff.
Hum.
What the...
hmm, very weird. I use a different npc buffer, but the issue might be the same, I've created a new skill - like a song you can cast upon a target without having it in party - it works, because I can give it to myself and cast upon others. But when I give it to my npc buffer, she would use it - the animation happens - money disappears - but she just doesnt target me and I get no buff.
Hum.
What the...
If you are using a different buffer (i dont think so) your problem can be whatever...
And would be interesing if you show what skill you use...
qu1ksilver
28.05.2007, 13:03
Thats why I posted here, the buffer didnt come from you (wasnt made by you) but its really similar, maybe the same (dont think there are many other ways of making a buffer)
so, the buffer links to following skill
skilldata, here im not really sure about the affect_object value, its set to "friend" maybe I should set it to "target" or something?
maybe there is conflict with magic_level and ismagic = 0 ? not really sure
skill_begin skill_name = [s_song_of_hunter_npc] /* [송 오브 헌터] */ skill_id = 12000 level = 1 operate_type = A2 magic_level = 49 effect = {{p_critical_rate;100;per}} is_magic = 0 mp_consume2 = 0 cast_range = 400 effective_range = 400 skill_hit_time = 0.5 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 0.01 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 3600 abnormal_lv = 1 abnormal_type = song_of_hunter attribute = attr_none effect_point = 467 target_type = target affect_scope = single affect_range = 1000 affect_object = friend affect_limit = {0;0} next_action = none debuff = 0 ride_state = {@ride_none} skill_end
skilldata_pch
[s_song_of_hunter_npc] = 3072001
skilldata_pch2
3072001 -1 0 60 0 523 34 64 1 3 8 0 -12345
see anything wrong you l2 gurus =))?
target_type = target affect_scope = single affect_range = 1000 affect_object = friend
target_type target.... affect_scope single... ok! but... if is target type why use affect range ? and affect object ?
And yes, there more ways to do a buffer, if your buffer have parameters for money, item type, and use skill_pch in html most probably is a copy of my buffer... in fact... you can code a buffer with a select case for example... or a buffer that give buffs auto or... a buffer that each buff is a different ask reply... there are tons of possible versions.
qu1ksilver
28.05.2007, 13:19
hmm, imma try to delete these parameters then. It is really weird, she DOES cast it when I click the button, but I get nothing...she just doesnt target me >.<
dance and song real do?;)
nice
That about Bladedancer and SwordSinger?
Thats why I posted here, the buffer didnt come from you (wasnt made by you) but its really similar, maybe the same (dont think there are many other ways of making a buffer)
so, the buffer links to following skill
skilldata, here im not really sure about the affect_object value, its set to "friend" maybe I should set it to "target" or something?
maybe there is conflict with magic_level and ismagic = 0 ? not really sure
skill_begin skill_name = [s_song_of_hunter_npc] /* [송 오브 헌터] */ skill_id = 12000 level = 1 operate_type = A2 magic_level = 49 effect = {{p_critical_rate;100;per}} is_magic = 0 mp_consume2 = 0 cast_range = 400 effective_range = 400 skill_hit_time = 0.5 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 0.01 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 3600 abnormal_lv = 1 abnormal_type = song_of_hunter attribute = attr_none effect_point = 467 target_type = target affect_scope = single affect_range = 1000 affect_object = friend affect_limit = {0;0} next_action = none debuff = 0 ride_state = {@ride_none} skill_end
skilldata_pch
[s_song_of_hunter_npc] = 3072001
skilldata_pch2
3072001 -1 0 60 0 523 34 64 1 3 8 0 -12345
see anything wrong you l2 gurus =))?
yes but there is a problem in your theory... if a player took this dance from the npc and from a swordsinger... he will have two same songs... except if the system regonise only one buff per "abnormal_type"
this is the code which i use and i have not results...:
skill_begin skill_name = [s_song_of_earth] /* [송 오브 어스] */ skill_id = 264 level = 1 operate_type = A2 magic_level = 55 effect = {{p_physical_defence;{all};25;per}} is_magic = 0 mp_consume2 = 1 cast_range = 400 effective_range = 400 skill_hit_time = 0.5 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 0.01 activate_rate = -1 lv_bonus_rate = 0 basic_property = none abnormal_time = 7200 abnormal_lv = 1 abnormal_type = song_of_earth attribute = attr_none effect_point = 523 target_type = target affect_scope = single affect_limit = {0;0} next_action = none debuff = 0 ride_state = {@ride_none} skill_end
any help??
PS: and FidoW i have recognise my mistake ... i mustn't change the credits in my server. i apologise to you :)