121 lines
4.8 KiB
C
121 lines
4.8 KiB
C
|
|
|
|
#pragma once
|
|
|
|
#include "SGame.h"
|
|
/// 외부 공개 스크립트
|
|
//Object
|
|
int SCRIPT_Spell ( struct lua_State *L );
|
|
int SCRIPT_Skill ( struct lua_State *L );
|
|
int SCRIPT_Attack( struct lua_State *L );
|
|
int SCRIPT_Move ( struct lua_State *L );
|
|
|
|
/// 각 Bot들의 제어
|
|
int SCRIPT_RqMove( struct lua_State *L );
|
|
int SCRIPT_RqTakeItem ( struct lua_State *L );
|
|
int SCRIPT_RqDisconnect( struct lua_State *L );
|
|
int SCRIPT_RqLogin ( struct lua_State *L );
|
|
|
|
SGame* GetActGame();
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//Game Event 관련
|
|
/// Play Sound
|
|
int SCRIPT_PlaySound( struct lua_State *L );
|
|
|
|
/// Play FX
|
|
int SCRIPT_PlayFX( struct lua_State *L );
|
|
|
|
int SCRIPT_GetItemClass( struct lua_State *L );
|
|
int SCRIPT_GetMaterial ( struct lua_State *L );
|
|
int SCRIPT_GetMovingType( struct lua_State *L );
|
|
int SCRIPT_GetGroundMaterial( struct lua_State *L );
|
|
|
|
int SCRIPT_FX( struct lua_State *L );
|
|
|
|
int SCRIPT_ATTACK_FX( struct lua_State *L );
|
|
|
|
|
|
void Noscript_PlayFX(AR_HANDLE& owner_handle, AR_HANDLE& attack_handle, AR_HANDLE& target_handle, int& nMaterial, int& nWeaponClass, bool& bIsCritical, bool& bIsBlock, int& nKeyHandleID, int& nKeyTime); // Fraun performance tweak
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 크리처 동작 관련
|
|
int SCRIPT_C_Standby( struct lua_State *L );
|
|
int SCRIPT_C_Move( struct lua_State *L );
|
|
int SCRIPT_C_Attack( struct lua_State *L );
|
|
int SCRIPT_C_Skill( struct lua_State *L );
|
|
int SCRIPT_C_Idle( struct lua_State *L );
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 상태 관련 정보 가져오기
|
|
int SCRIPT_GetHP( struct lua_State *L );
|
|
int SCRIPT_GetMP( struct lua_State *L );
|
|
int SCRIPT_GetMax_HP( struct lua_State *L );
|
|
int SCRIPT_GetMax_MP( struct lua_State *L );
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 지역 관련
|
|
int SCRIPT_LC_In( struct lua_State *L );
|
|
int SCRIPT_LC_Out( struct lua_State *L );
|
|
int SCRIPT_LC_Local( struct lua_State *L );
|
|
int SCRIPT_LC_World( struct lua_State *L );
|
|
|
|
// { [sonador]
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 날씨 관련
|
|
int SCRIPT_WEATHER_GetTheme( struct lua_State *L );
|
|
int SCRIPT_WEATHER_SetTheme( struct lua_State *L );
|
|
int SCRIPT_WEATHER_SetThunderAttribute( struct lua_State* L );
|
|
int SCRIPT_WEATHER_SetLightningAttribute( struct lua_State* L );
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 환경 관련
|
|
int SCRIPT_ENVIRONMENT_GetAttribute( struct lua_State* L );
|
|
// } [sonador]
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 게임 UIWindows AddOn 관련
|
|
int SCRIPT_UIWINDOWS_InitAddonList( struct lua_State* L );
|
|
int SCRIPT_UIWINDOWS_CreateAddOn( struct lua_State* L );
|
|
|
|
#ifdef DISTANCE_VIEW
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 스카이 박스
|
|
int SCRIPT_SKYBOX_SetTheme_sky( struct lua_State* L );
|
|
int SCRIPT_SKYBOX_SetTheme_distanceView( struct lua_State* L );
|
|
int SCRIPT_SKYBOX_load_localmodelinfo( struct lua_State* L );
|
|
#endif
|
|
|
|
#ifdef CLOUD_LUA
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
/// 구름
|
|
//int SCRIPT_CLOUD_LoadClouInfo( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadKind( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadThickness( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadThicknessGap( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadSize( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadTextureGroupByType( struct lua_State* L, int nTxrType );
|
|
int SCRIPT_CLOUD_LoadTextureGroup( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadMiddleTextureGroup( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadDarkTextureGroup( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadDistribution( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadHeightRandomGap( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadLayerGap( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadMoveDir( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadPath( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadType( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadAppearLayer( struct lua_State* L );
|
|
int SCRIPT_CLOUD_LoadLayerSet( struct lua_State* L );
|
|
#endif
|
|
|
|
#ifdef CLOUD_LUA_RELOAD
|
|
int SCRIPT_CLOUD_Reload();
|
|
#endif |