PDA

View Full Version : How does the server know?


Kenster
12.09.2005, 19:33
Hello again,

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


<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!

rodier
12.09.2005, 19:50
multisell = look into multisell.txt ?id=2 = look in section "2"


MultiSell_begin [blackmerchant_armor] 2

rodier
12.09.2005, 19:51
I dont understand this

<a action="bypass -h menu_select?ask=-201&reply=2">Close the Coliseum Gates</a>


how npc know what to do? AI is empty..

Metalmurphy
12.09.2005, 20:35
lol if it is empty then it wont do anything.

Kenster
12.09.2005, 20:57
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.

Enishi
12.09.2005, 21:00
Cuz in npcdata its set to FnHi = alexandria001t.htm which means thats the first html it when open when talked to.

Professor F
12.09.2005, 21:36
<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...

Aikeleer
12.09.2005, 22:10
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=colles eum_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. :)

Kenster
13.09.2005, 03:01
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!

Enishi
13.09.2005, 04:53
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

Kenster
13.09.2005, 06:26
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!

Flamestrike
13.09.2005, 17:52
What are you trying to do anyways? Make some concrete questions so we can understand :P