Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 12.09.2005, 19:33   #1
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default How does the server know?

Hello again,

I was wondering how in lets say.. The luxury shop, In alexandria001.htm

Code:
<a action="bypass -h multisell?id=2">Buy Armor</a>
How does it know that he "2" know to go to the "alexandria001t.htm" file?

I don't understand how the server knows to forward there. So if I were to add another list to her, what would the .htm have to be named? I am sorry to ask such a basic question. I am learning. I did search and read all posts reguarding "how to add an item" and "luxury shop". Thank you again!
Kenster is offline  
Old 12.09.2005, 19:50   #2
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

multisell = look into multisell.txt ?id=2 = look in section "2"

Code:
MultiSell_begin	[blackmerchant_armor]	2
rodier is offline  
Old 12.09.2005, 19:51   #3
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

I dont understand this
Code:
<a action="bypass -h menu_select?ask=-201&reply=2">Close the Coliseum Gates</a>
how npc know what to do? AI is empty..
rodier is offline  
Old 12.09.2005, 20:35   #4
Metalmurphy
Архивный участник
 
Join Date: Feb 2005
Posts: 766
Default

lol if it is empty then it wont do anything.
Metalmurphy is offline  
Old 12.09.2005, 20:57   #5
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

That doesn't answer my question. So its

MultiSell_begin [blackmerchant_armor] 2

Why does it choose the text file "alexandria001t.htm". Why not "alexandria001QRSTUV.htm"? Thanks.
Kenster is offline  
Old 12.09.2005, 21:00   #6
Enishi
Архивный участник
 
Join Date: Apr 2005
Posts: 354
Default

Cuz in npcdata its set to FnHi = alexandria001t.htm which means thats the first html it when open when talked to.
Enishi is offline  
Old 12.09.2005, 21:36   #7
Professor F
Архивный участник
 
Join Date: Jul 2005
Posts: 136
Default

Code:
<a action="bypass -h menu_select?ask=-201&reply=2">Close the Coliseum Gates</a>
for npc this says nothig, i think, but client changes this into "npc's friendly form" and sends this to server, which commands npc what to do...
Professor F is offline  
Old 12.09.2005, 22:10   #8
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

In the ai you can see that this npc has a certain ai. In example the doorkepers ai. If you look through the ai you can check out that in the AI there's written that this question should be awnsered by opening/closing a certain door. This door is a variable set in the npcdata; at the AI party you probably see "FnHi=doorkeeper_colleseum001.htm;fnDoorName=colle seum_door" in example. It might sound a bit complicated, but just look it through. AI isn't really that hard if you try writing some.
Aikeleer is offline  
Old 13.09.2005, 03:01   #9
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

So, If I wanted to another list to her. I would need to put

[code]MultiSell_begin [blackmerchant_armor] 50[code]

and

HTML would be : ?

Sorry, I just don't understand. I could say, Ohh OK!, but I wouldn't understand and this thread I made would be a complete use. Plus I am sure other people are wondering also. Thank you guys! So much!
Kenster is offline  
Old 13.09.2005, 04:53   #10
Enishi
Архивный участник
 
Join Date: Apr 2005
Posts: 354
Default

If you wanted to add another list to her through multisell simply :


<a action="bypass -h multisell?id=50">Buy Whatever</a>

Understand?
action= Tells the server what action (duh) to perform
bypass -h multisell? tells it to read your multisell file
id=# Is whatever multisell list you want to show up.
Buy/Sell/Unseal armor w/e is just so you can make it look nice :P

Hope this helps
Enishi is offline  
Old 13.09.2005, 06:26   #11
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

But I notice there is a .htm that alexandria001t.htm works with the "armor" as the first option. Do you need a .htm for it to work, or is it automattic? Thanks!
Kenster is offline  
Old 13.09.2005, 17:52   #12
Flamestrike
Архивный участник
 
Join Date: Aug 2005
Posts: 434
Default

What are you trying to do anyways? Make some concrete questions so we can understand :P
Flamestrike is offline  
 


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 18:06.