![]() |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2007
Posts: 7
|
hi guys , i wold like some help, i wold like create a NPC shop whith any itens ( quest itens etcc..) i dont have idea how i do this.
and i have some problems when i summon any NPC , becouse its dont stay agressive ,,, just atack when are atacked ... and i need put in agressive mod... thx and sory my english ... |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jun 2005
Posts: 242
|
warrior -> citizen
undying=0 -> undying=1 attacked = 1 -> can_be_attacked=0 |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
Agrresiveness is in npcdata as err... hate_points? or something
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
I think it's a AI problem, you'd have to take out the "is in myterritory" check to let them attack outside their territory
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Nov 2005
Posts: 146
|
omfg
just set ai to citizen, fnHi to your html and other parameters in npcdata.txt like other traders have. just copy-paste any trader and change npc_id
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2007
Posts: 7
|
thx guys ,, the problem is : i did : //summon karik 1 , and wait be atacked for him , but nothing happened ... se just atack if i did fist .
and abaout NPC special shop , i just summon ? becouse i looking for command to put the quest itens to sell in npc luxury or in special NPC. how ? |
|
|
|
|
#7 | |
|
Архивный участник
Join Date: May 2007
Posts: 17
|
Quote:
|
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 113
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
IF you want shop with quest item, this is best way:
1. edit your multisell.txt file and paste at end this code Code:
MultiSell_begin [quest_items] 553
is_dutyfree = 1
selllist={
{{{[khavatari_totem];1}};{{[adena];10000}}};
{{{[mark_of_raider];1}};{{[adena];10000}}};
{{{[medallion_of_warrior];1}};{{[adena];10000}}};
{{{[sword_of_ritual];1}};{{[adena];10000}}};
{{{[beziques_recommendation];1}};{{[adena];10000}}};
{{{[bead_of_season];1}};{{[adena];10000}}};
{{{[eternity_diamond];1}};{{[adena];10000}}};
{{{[mark_of_faith];1}};{{[adena];10000}}};
{{{[leaf_of_oracle];1}};{{[adena];10000}}};
{{{[elven_knight_brooch];1}};{{[adena];10000}}};
{{{[reoria_recommendation];1}};{{[adena];10000}}};
{{{[pass_final];1}};{{[adena];10000}}};
{{{[ring_of_raven];1}};{{[adena];10000}}};
{{{[gaze_of_abyss];1}};{{[adena];10000}}};
{{{[jewel_of_darkness];1}};{{[adena];10000}}};
{{{[iron_heart];1}};{{[adena];10000}}};
{{{[mask_of_medium];1}};{{[adena];10000}}};
{{{[orb_of_abyss];1}};{{[adena];10000}}};
{{{[mark_of_seeker];1}};{{[adena];50000}}};
{{{[mark_of_fate];1}};{{[adena];50000}}};
{{{[mark_of_searcher];1}};{{[adena];50000}}};
{{{[mark_of_duty];1}};{{[adena];50000}}};
{{{[mark_of_trust];1}};{{[adena];50000}}};
{{{[mark_of_healer];1}};{{[adena];50000}}};
{{{[mark_of_witchcraft];1}};{{[adena];50000}}};
{{{[mark_of_challenger];1}};{{[adena];50000}}};
{{{[mark_of_life];1}};{{[adena];50000}}};
{{{[mark_of_sagittarius];1}};{{[adena];50000}}};
{{{[mark_of_scholar];1}};{{[adena];50000}}};
{{{[mark_of_magus];1}};{{[adena];50000}}};
{{{[mark_of_summoner];1}};{{[adena];50000}}};
{{{[mark_of_duelist];1}};{{[adena];50000}}};
{{{[mark_of_pilgrim];1}};{{[adena];50000}}};
{{{[mark_of_reformer];1}};{{[adena];50000}}};
{{{[mark_of_guildsman];1}};{{[adena];50000}}};
{{{[mark_of_prosperity];1}};{{[adena];50000}}};
{{{[mark_of_maestro];1}};{{[adena];50000}}};
{{{[mark_of_champion];1}};{{[adena];50000}}};
{{{[mark_of_lord];1}};{{[adena];50000}}};
{{{[mark_of_warspirit];1}};{{[adena];50000}}};
{{{[mark_of_glory];1}};{{[adena];50000}}}
}
MultiSell_end
NOW - find npc in npcdata.txt where you want sell this marks. Its good to set your gatekeeper in giran to sell this marks. So how to do it? 1. gatekepeer in giran have ID clavier in npcdata so find in npcdata name clavier. 2. on line with clavier find npc_ai= and you will see which html file clavier use (npc_ai={[clavier];{[fnHi]=[clavier001.htm]) its clavier001.htm 3. now open folder html and find file clavier001.htm and edit it. Now you will see some plain html text looks like this: Code:
<html><head><body> Gatekeeper Clarissa:<br> We Gatekeepers use the will of the Gods to open the doors to time and space and teleport others. Which door would you like to open?<br><a action="bypass -h teleport_request"> Teleport</a><br><a action="bypass -h menu_select?ask=-303&reply=518"> Exchange with the Dimension Diamond</a><br><a action="bypass -h menu_select?ask=-19&reply=0"> [Noblesse Only] teleport</a><br><a action="bypass -h menu_select?ask=255&reply=4" msg="811;Monster Derby Track"> Move to Monster Derby Track (Free of Charge)</a><br><a action="bypass -h talk_select">Quest </a></body></html> Best choice will be put it at end of dialog = you need to put it BEFORE </body> ok? so put it Quest</a><--- here ---></body> And what to put there? This code - which is link to multisell section 553 where we are selling mark items. <a action="bypass -h menu_select?ask=-303&reply=553">CLICK HERE AND YOU WILL SEE MARK ITEMS FOR SALE</a> You see? code command ask=-303 is link to multisell.txt and &reply=553 is link to 553 section inside multisell.txt where we set to sell quest items.. rest is basic html.. so whole gateekeeper html file will be now looks like this: Code:
<html><head><body> Gatekeeper Clarissa:<br> We Gatekeepers use the will of the Gods to open the doors to time and space and teleport others. Which door would you like to open?<br><a action="bypass -h teleport_request"> Teleport</a><br><a action="bypass -h menu_select?ask=-303&reply=518"> Exchange with the Dimension Diamond</a><br><a action="bypass -h menu_select?ask=-19&reply=0"> [Noblesse Only] teleport</a><br><a action="bypass -h menu_select?ask=255&reply=4" msg="811;Monster Derby Track"> Move to Monster Derby Track (Free of Charge)</a><br><a action="bypass -h talk_select">Quest </a><a action="bypass -h menu_select?ask=-303&reply=553">CLICK HERE AND YOU WILL SEE MARK ITEMS FOR SALE</a></body></html> Gatekeeper in Giran will have new menu called "CLICK HERE AND YOU WILL SEE MARK ITEMS FOR SALE" and if anyone click, big window open and marks there will be for sale. multisell.txt is used for events and for npcs that sell items for crystal in luxury. Its the easyest way how to setup something for sell. If you want sell more thing, just add line .. but remember.. last line is without ; You can make donate shop via this way.. |
|
|
|
|
#10 | |
|
Архивный участник
Join Date: Apr 2007
Posts: 7
|
Quote:
|
|
|
|
|
|