Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.05.2006, 12:05   #1
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default Ziggurat teleport

Where is my mistake? Ziggurat can't teleport me
AI
Code:
class ascetics_necropolis_entry : teleporter {

  parameter:

  string fnHi = "ziggurat001.htm";
  string fnNoItem = "ziggurat_no_way.htm";

  handler:

  EventHandler MENU_SELECTED(ask, talker) {
    if (ask == -6) {
      if ((OwnItemCount(talker, 9961) == 1)  ||  (OwnItemCount(talker, 9960) == 1)  ||  (OwnItemCount(talker, 9962) == 1)) {
        InstantTeleport(talker, -52297, 79109, -4739);
      }
      else {
        ShowPage(talker, fnNoItem);
      }
    }
  }
}
htm
Code:
<html><head><body>
<font color="LEVEL">Ziggurat Gatekeeper</font>:



Welcome to Ascetics Necropolis

This place is for level 58-69 players, and i recommend a strong party.



Do you wish to enter necropolis?



<a action="bypass -h menu_select?ask=-6">"I want to Enter"</a>


</body></html>
Plz, help me
Zil is offline  
Old 06.05.2006, 21:06   #2
divine
Архивный участник
 
Join Date: Oct 2005
Posts: 115
Default

Code:
EventHandler MENU_SELECTED(ask, talker) {
      if (ask == -6) { 
      if ((OwnItemCount(talker, 9961) == 1)  ||  (OwnItemCount(talker, 9960) == 1)  ||  (OwnItemCount(talker, 9962) == 1)) { 
        InstantTeleport(talker, -52297, 79109, -4739); 
      } 
      else {
        ShowPage(talker, fnNoItem);
      }
      return;
    }
  }
should work
divine is offline  
Old 09.05.2006, 10:31   #3
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

Nope..It doesn't work

/rus все равно не пашет, падлец. Не хочет телепортать
Zil is offline  
Old 10.05.2006, 16:14   #4
Larson
Архивный участник
 
Join Date: Mar 2006
Posts: 43
Default

how about to use "reply" parm?
Larson is offline  
Old 10.05.2006, 16:21   #5
Amanda
Архивный участник
 
Join Date: May 2006
Posts: 13
Default

It doesn't work for me.. ;_;
Amanda is offline  
Old 18.05.2006, 16:25   #6
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

!!!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>
Zil 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 19:15.