GuildMemberList

January 6, 2009

See also SpringNote

캐릭터가 월드에 들어가면 접속해 있는 길드원의 목록을 채팅창에 보여주는 애드온. 어차피 길드원이 몇 명 없고, 들어가면 누가 있나 확인하다보니 편하게 살자고 만들었다. 사용법은 딱히 없다. =_=;

만들면서 재미있었던 건 역시 루아 함수의 반환값들.

a, b = 1, 2

라고 하면 당연히 a는 1, b는 2가 되지만,

a, a = 1, 2

라고 하면 a의 값은 1이 된다. 관심없는 결과값을 무시하고 코드를 깔끔하게 하는 데에도 다음과 같이 사용할 수 있다는 것을 알게 되었다.

local name, _, _, _, class, zone, _, _, _, _ = GetGuildRosterInfo(i);

여기서 변수 “_”는 펄의 “$_”나 파이썬 인터프리터의 “_”하고 상관없이 그냥 루아 커뮤니티 안에서 사용하는 습관이라고 한다.

Entry Filed under: game. Tags: , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Tags

addon android Assembly batch book C++ editor excel google InstallShield lua personal physic security wow

Recent Posts

Recent Comments

지양 on Source Insight – Browse …
조프 on Source Insight – Browse …
조프 on Source Insight – Browse …
랑탕 on Google 크롬의 Crash message
지양 on n&(n-1)

Blogroll