Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   need some help whith NPC shop and summoning mobs (https://postpacific.loc-online.com/showthread.php?t=7513)

Carlos 08.05.2007 01:06

need some help whith NPC shop and summoning mobs
 
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 ...

superkent 08.05.2007 01:20

warrior -> citizen
undying=0 -> undying=1
attacked = 1 -> can_be_attacked=0

mcrabben7 08.05.2007 02:00

Agrresiveness is in npcdata as err... hate_points? or something

m4rk 08.05.2007 06:02

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

zcold 08.05.2007 06:43

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 :)

Carlos 08.05.2007 11:46

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 ?

kikuchi 08.05.2007 12:11

Quote:

Originally Posted by Carlos (Post 85610)
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 ?

how did u manage to setup a server?

Guaresnay 08.05.2007 12:23

Quote:

Originally Posted by Carlos (Post 85610)
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 ?

Take a trader from ur ai as zcold told u, then make a html in unicode, then make a multisell fot it and finally add ur NPC to ur npcpos. If u don't know how to do these things then u have to read the whole postpacific :)

rodier 10.05.2007 11:05

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

You can change the adena & amount for anything you want (for example instead of adena, put medal and ppl need 50,000 medal to buy 1 quest item..)

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>

Ok, so we need to put in to this html dialog link to multisell.txt and to section where we selling marks (section is number 553).
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>

bold is what we added now save it. save multisell file and its done.
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..

Carlos 15.05.2007 20:59

thx
 
Quote:

Originally Posted by rodier (Post 85759)
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

You can change the adena & amount for anything you want (for example instead of adena, put medal and ppl need 50,000 medal to buy 1 quest item..)

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>

Ok, so we need to put in to this html dialog link to multisell.txt and to section where we selling marks (section is number 553).
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>

bold is what we added now save it. save multisell file and its done.
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..

Thx a lot !!!!!!!


All times are GMT. The time now is 15:49.