Jump to content

Sparrow

Members
  • Posts

    34
  • Joined

  • Last visited

Posts posted by Sparrow

  1. Все рабочее. Забугорники говорят 620 версия имеет проблемы с этой фигней, нужно сохранить в 586 версии. Надеюсь, что там и настройка света получится, а то я в 620 не смог сделать освещение с тенями. Кое столько гайдов перерыл

  2. Не работает OnThisMobDeath. Что не правильно сделал?

    
    prt_fild08.gat,126,88,6 script Мегабосс::mega 909,{
    mes "[Мегабосс]";
    mes "Привет, путник. Я - великий и ужасный мегапоринг и я тебе сейчас покажу, что такое критическое наедалово!";
    next;
    switch(select("Дать физды:Уйти")){
    case 1: close2; sleep2 500; 
    specialeffect 37;
    sleep2 700; 
    specialeffect 42;
    sleep2 200;
    specialeffect 670;
    sleep2 200;
    disablenpc "mega";
    monster "prt_fild08",126,88,"Мегабосс",1002,1,"mega::OnThisMobDeath";
    sleep2 10000;
    enablenpc "mega";
    end;
    case 2: close; end;
    }
    OnThisMobDeath:
    announce "Эй, "+strcharinfo(0)+" одолел Мегапоринга, который всех бесил!",bc_blue|bc_all;
    announce "Его награда - 1 TCG!",bc_blue|bc_all;
    getitem 7227,1; end;
    }

  3. ---------------------------------------
    
    *setd "<имя переменной>",<значение>;
    
    Работает примерно как set, просто имя переменной идентифицируется как строка.
    Эта команда эквивалентна:
    set getd("variable name"),<value>;
    
    Пример:
    set $var$, "Поринг";
    
    setd "$var$", "Попоринг";
    mes $var$; // Будет возвращено Попоринг.
    
    setd "$" + $var$ + "123$", "Попоринг крут";
    mes $Poporing123$; // Будет возвращено Попоринг крут
    
    ---------------------------------------
    
    *getd("<variable name>")
    
    
    Возвращает ссылку в переменную, имя может быть построено динамически.
    См. раздел setd для использования.
    
    Пример:
    set getd("$varRefence"), 1;
    set @i, getd("$pikachu");
    
    ---------------------------------------
    

    Чем мне в данной ситуации может помочь эта команда, я что- то не понимаю?)

  4. #
    # Table structure for table `gm_table`
    #
    
    CREATE TABLE `gm_table` (
     `account_id` int(11) unsigned NOT NULL default '0',
     `id_effect` smallint(6) unsigned NOT NULL default '1',
     `name_effect` varchar(30) NOT NULL default '',
     `description` varchar(200) NOT NULL default '',
     PRIMARY KEY  (`account_id`)
    ) ENGINE=MyISAM;

    Как сделать обращения к базе?)

  5. Good day to all the time. Today made ​​for a pump station, which will show the effects of the queue, or from what is specified ID. And I thought, but it would be convenient if we could keep a particularly favorite effects that you can select Add to Favorites. Climbs @input$, You write name, then the description. And the NPC stores this info. Then he can choose your favorites and there in the format: ID; Title, Description of Goods stored information.

    The same can be done without creating a new table in the database?

    Here's the script:

    prt_fild08.gat,123,68,4 script Specialeffect 467,{
    mes "[specialeffect]";
    mes "Hello You want to see the effects, or see a list of favorite effects?";
    next;
    switch(select("See the effects of:Favorites:Exit")){
     case 1:
      mes "[specialeffect]";
      mes "Getting ...";
      set .circle,0;
      next;
      M_circle:
      if(.circle == 18) set .circle,20;
      if(.circle == 19) set .circle,20;
      set .circle,.circle+1;
      next;
      mes "[specialeffect]";
      mes "No. special effects:";
      mes "== == == == == == == == == == == ";
      mes "						    ^00aa00"+.circle+"^000000";
      mes "== == == == == == == == == == == ";
      specialeffect2 .circle;
      switch(select("Next:Go to...:Save:Cancel")){
       case 1: goto M_circle;
       case 2: L_inp: input @inp;
     if (@inp <1 || @inp > 700) { next; mes "[specialeffect]"; mes "You have entered ^00aa00"+@inp+"^000000. This is an incorrect number of special effects."; mes "Need to enter values ??from 1 to 700."; goto L_inp; }
     set .circle,@inp-1;
     goto M_circle;
       case 3:
     mes "[specialeffect]";
     mes "";
       case 4: close; end;
      }
     case 2:
      // ???
      // ???
      // ???
     case 3: close; end;
    } 
    }
    

×
×
  • Create New...