!!!Wroking code!!! I'm add some lines
AI
Code:
class ascetics_necropolis_entry : teleporter {
parameter:
string fnHi = "ascetics_necropolis.htm";
string fnNoItem = "ziggurat_no_way.htm";
handler:
EventHandler MENU_SELECTED(ask, i0, reply, talker) {
if (ask == -9000) {
if (reply == 1) {
if ((OwnItemCount(talker, 9961) == 1) || (OwnItemCount(talker, 9960) == 1) || (OwnItemCount(talker, 9962) == 1)) {
InstantTeleport(talker, -52297, 79109, -4739);
}
else {
ShowPage(talker, fnNoItem);
}
if (reply == 2) {
InstantTeleport(talker, -55245, 79142, -3016);
}
return;
}
}
}
}
html
Code:
<a action="bypass -h menu_select?ask=-9000&reply=1">"I want to Enter"</a>
<a action="bypass -h menu_select?ask=-9000&reply=2">"I want to Exit"</a>