Как выглядит структура и bypass динамично формирующегося html для телепорта?
Клиент делает bypass -h teleport_request
В ответ получает html с "Talking Island Village - 18 000 адены"
HTML
AI
Клиент делает bypass -h teleport_request
В ответ получает html с "Talking Island Village - 18 000 адены"
HTML
HTML:
<html><head><body>
Gatekeeper Roxxy:
<br>
Greetings. I am the Gatekeeper Roxxy, dispatched from the Ivory Tower. I am very happy to be working here in my homeland. Have you, by chance, been to Einhovant's School of Wizardry? Grand Sorcerer Gallint used to be my beloved teacher. So then, what can I do for you?
<br>
<a action="link rapunzel001t.htm">Ask about the Ivory Tower</a>
<br>
<a action="bypass -h teleport_request">Go to another village</a>
<br>
<a action="bypass -h talk_select">Quest</a>
</body></html>
AI
Код:
class teleporter : default_npc
{
parameter:
string ShopName = "";
string fnHi = "thi.htm";
string fnYouAreChaotic = "tcm.htm";
property:
TelPosList Position = {
{1010001; -84169; 244693; -3729; 100000; 0} // 1010001 - "Talking Island Village"
};
handler:
EventHandler TALKED(talker)
{
if (talker.karma > 0)
{
ShowPage(talker, fnYouAreChaotic);
}
else
{
ShowPage(talker, fnHi);
}
}
EventHandler TELEPORT_REQUESTED(talker)
{
Teleport(talker, Position, ShopName, "", "", "");
}
}