Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20.04.2006, 01:32   #2
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default Re: [HELP] NASC Compiler

Quote:
Originally Posted by max_rain
Нашел код, для примера

Code:
class rabbit 
{
handler:
   EventHandler MY_DYING(c1)
   {
      c1 = GetLastAttacker();

      if (OwnItemCount(c1, @red_soul_crystal_0) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_0, 1);
         GiveItem1(c1, @red_soul_crystal_1,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_1) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_1, 1);
         GiveItem1(c1, @red_soul_crystal_2,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_2) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_2, 1);
         GiveItem1(c1, @red_soul_crystal_3,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_3) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_3, 1);
         GiveItem1(c1, @red_soul_crystal_4,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_4) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_4, 1);
         GiveItem1(c1, @red_soul_crystal_5,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_5) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_5, 1);
         GiveItem1(c1, @red_soul_crystal_6,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_6) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_6, 1);
         GiveItem1(c1, @red_soul_crystal_7,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_7) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_7, 1);
         GiveItem1(c1, @red_soul_crystal_8,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_8) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_8, 1);
         GiveItem1(c1, @red_soul_crystal_9,1);
      }
      else if (OwnItemCount(c1, @red_soul_crystal_9) >= 1) {
         DeleteItem1(c1, @red_soul_crystal_9, 1);
         GiveItem1(c1, @red_soul_crystal_10,1);
      }
   }
}
Положил Nasc.exe в папку Scripts, сохранил скрипт в 1.txt.
Набираю nasc.exe 1.txt, на что выдается окно success, но файл ai.obj следующего содержания:

Quote:
SharedFactoryVersion 294
NPCHVersion 177
NASCVersion 105
NPCEventHVersion 76
Debug 0
Более вероятно старая версия NASC, но по поиску найти не смог, а l2tools скачиваются битыми(новые)
I don't understand nothing about russ but I guess that u need save ur source in unicode =P and try again.

bb
RipperX 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 16:44.