Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 02.05.2007, 16:03   #1
forsage
Архивный участник
 
Join Date: Oct 2006
Posts: 17
Default

Quote:
Originally Posted by FidoW View Post
The NASC syntax looks like C1... isnt using objects (myself, gg) but in the compiled code is using C4 ids, and in some functions use objects and others not... looks like he was trying to do a mix or whatever...

For those who try to learn... here the correct code..
Thank you very much
Tell me please, where I can found information about objects ?
I understand, for example, what mean myself and attacker, but what mean gg ?

Another question.
Can I use my own vars in nasc code ?

For example :
Code:
class warrior_flee : warrior {

handler:
  EventHandler NO_DESIRE() {
    myself->AddMoveAroundDesire(40,20);
  }

  EventHandler ATTACKED(attacker,damage) {
    
    my var1 = gg->Rand(3);
    if (var1 == 1) {
       myself->Say("Text1");
    }else if (var1 == 2) {
       myself->Say("Text2");
    }else{
       myself->Say("Text3");
    }

    myself->AddFleeDesire(attacker,30);
  }

}
forsage is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:31.