Starting a discussion and would be great if everyone who works with scripts etc will join it and fill some unknown data given here by his own experiences.
So discussion is about commands that is used by GS 8.1 and could be run from console/LUA/chat etc.
All the commands i have not found any info about i've marked as unknown so if someone experienced using that commands, please describe as much info as possible and i'll update a thread.
Some commands are marked as unknown because i have no full info about that commands and it need to be tested before explaination, hope will fix that or even someone will give a full explaination earlier.
If you need to correct something, please send a full info about a command which is need to be corrected. Please don't send such messages: "This command means this but i don't know its parameters/returnig values".
See spoilers below.
Currently found GS commands: 294.
Currently explained in the list: 223 (75.8%).
clear_inventory
set_scheduled_command_manager_priority unknown
set_event_area_enter_count
get_event_area_enter_count
set_huntaholic_point
show_huntaholic_lobby_window
cancel_auction_by_seller
show_auction_window
set_remain_title_time
update_title_condition
set_sub_title
get_sub_title
set_main_title
get_main_title
achieve_title
open_title
nurse_summon unknown
regain_summon unknown
farm_summon unknown
get_summon_rate
get_farmed_summon_level unknown
get_farmed_summon_value unknown
get_farmed_summon_count unknown
get_farmed_summon_list unknown
get_summon_list unknown
show_creature_farm_window
reset_summon_skill
creature_name_change_box
get_creature_name_id
set_continuous_play_time unknown
set_pcbang_user unknown
show_donation_prop
update_gold_chaos
get_local_info
open_popup_and_set_size
open_popup
open_url
clear_auto_account unknown
set_auto_account unknown
set_auto_user
find_npc unknown
get_server_category
warp_to_revive_position
recall_feather
set_way_point_speed unknown
set_way_point_type unknown
add_way_point unknown
draw_tax_chaos
draw_tax
get_tax_chaos_amount
get_tax_amount
set_tax_rate
get_tax_rate
get_dungeon_relation
get_own_guild_name
get_guild_block_time
set_guild_block_time
is_guild_leader
update_guild_banner_info unknown
update_guild_info unknown
show_channel_set
equip_summon_card
get_summon_name_id unknown
get_layer_of_channel unknown
get_user_count_in_channel unknown
get_max_channel_num unknown
get_min_channel_num unknown
get_proper_channel_num unknown
creature_learn_skill
call_lc_In unknown
creature_enhance unknown
creature_evolution
get_npc_handle
get_npc_id
check_valid_alliance_name
destroy_alliance
create_alliance
check_valid_guild_name
force_promote_guild_leader
force_change_guild_name
show_alliance_create
show_guild_create
destroy_guild
create_guild
get_user_count_near unknown
open_storage
get_creature_handle
get_string unknown
del_global_variable
get_global_variable
set_global_variable
get_env
set_env
cast_world_state
get_event_state_list
clear_event_state
remove_event_state
add_event_state
remove_cstate
add_cstate
remove_state
get_state_level
add_state
is_changeable_job unknown
message
sconv
show_creature_dialog
get_base_skill_level
set_race
reset_job unknown
set_job unknown
reset_skill
learn_creature_all_skill
learn_all_skill
learn_skill
refresh
gametime
open_market
force_monster_proc_dead unknown
db_trace_dump
get_monster_id
set_next_attackable_time
set_monster_skill_target_position unknown
get_monster_skill_target_position unknown
monster_skill_cast
respawn_near_monster
save
delete_block_account unknown
shutdown
saveall
setspeed
get_siege_dungeon_id
get_own_dungeon_id
clear_dungeon_core_guardian unknown
change_dungeon_owner
drop_dungeon_owner_ship
warp_to_stored_position
enter_dungeon
get_battle_arena_team_no
set_battle_arena_next_penalty_dec_time unknown
get_battle_arena_next_penalty_dec_time unknown
set_battle_arena_penalty_count unknown
get_battle_arena_penalty_count unknown
set_battle_arena_block_time
get_battle_arena_block_time
do_each_player_in_battle_arena_team
do_each_player_in_battle_arena_instance
get_battle_arena_instance_flag unknown
set_battle_arena_instance_flag unknown
activate_battle_arena_prop unknown
broadcast_mission_objective_progress
broadcast_mission_objective
broadcast_mission_reward
broadcast_mission_title
send_mission_objective_progress
send_mission_objective
send_mission_reward
send_mission_title
do_each_player_in_instance_dungeon
get_alive_instance_respawn_group_monster_count
get_instance_dungeon_flag
set_instance_dungeon_flag
get_instance_dungeon_type_id
get_instance_dungeon_id
quit_instance_dungeon
leave_instance_dungeon
enter_other_instance_dungeon
enter_instance_dungeon
enter_secret_dungeon
cancel_dungeon_raid unknown
request_dungeon_raid unknown
change_tactical_position_owner unknown
show_dungeon_stone
respawn_guardian_object unknown
is_in_siege_dungeon unknown
recall_player
whisper
announce
private_notice
get_os_date
get_os_time
kill_target
add_random_monster_group unknown
add_random_monster
add_random_area
set_random_respawn
raid_respawn_rare_mob unknown
raid_respawn unknown
respawn_roaming_mob unknown
respawn_rare_mob
respawn_environmental_guardian
respawn_guardian
respawn
add_field_prop
add_npc_to_world
add_npc
env
force_unregister_account unknown
kick
dlg_special
dlg_general
reset_finished_quest
get_last_accept_quest
set_quest_status
get_quest_status
get_quest_progress
show_quest_info_without_npc unknown
quest_info
drop_quest
end_quest
add_pending_quest unknown
force_start_quest
start_quest unknown
dlg_text_without_quest_menu
quest_text_without_quest_menu unknown
dlg_show
dlg_menu
dlg_text
dlg_title
get_max_alliance_member_count unknown
increase_max_alliance_member_count unknown
is_alliance_leader unknown
set_pk_mode
del_flag
set_flag
get_flag
emcv
gmcv
gcv
smcv
scv
change_creature_name
get_creature_value
set_creature_value
get_all_value
ev
sv
av
gv
echo_value
set_value
add_exp_jp
add_value
get_value
gtv
get_target_value
supply_event_item unknown
stop_event_supply unknown
start_event_supply unknown
refresh_event_supply unknown
event_supply unknown
stop_event_drop
start_event_drop
refresh_event_drop
event_drop unknown
show_soulstone_repair_window
get_max_item_soulstone_endurance unknown
get_item_soulstone_endurance unknown
show_soulstone_craft_window
get_max_item_ethereal_durability
set_item_ethereal_durability
get_item_ethereal_durability
delete_awaken
insert_awaken unknown
set_item_appearance_code
get_item_appearance_code
replace_with unknown
get_wear_item_handle
get_item_name_id
get_item_name_by_code
set_socket_info
get_socket_info
set_item_endurance
get_item_endurance
get_item_price
get_item_rank
get_item_grade
get_item_enhance
set_item_enhance
set_item_level
get_item_level
get_item_code
get_item_name
get_item_handle_list
get_item_handle
has_item
insert_gold
drop_gold
drop_item
find_item
is_erasable_item
delete_item
insert_item
and a function that is not stored in functions list category of a GS:
stat
Parameters: none.
Usage: clears an inventory from all items that is nut used as equipped.
Used only on a function caller.
Returns nil
Thanks to BlackCat for info.
Usage: clears an inventory from all items that is nut used as equipped.
Used only on a function caller.
Returns nil
Thanks to BlackCat for info.
set_scheduled_command_manager_priority unknown
set_event_area_enter_count
Parameters: (event_area_id, count).
Usage: sets an enter count for an event area event_area_id.
Returns nil.
Usage: sets an enter count for an event area event_area_id.
Returns nil.
get_event_area_enter_count
Parameters: (event_area_id).
Usage: gets an enter count for event area.
Returns enter count.
Usage: gets an enter count for event area.
Returns enter count.
set_huntaholic_point
Parameters: (count [, charname])
Usage: sets a huntaholic points count for a character.
If charname parameter is not given, sets a value for a character that calls a function.
Function don't ADD a value but SET it.
Returns nil.
Usage: sets a huntaholic points count for a character.
If charname parameter is not given, sets a value for a character that calls a function.
Function don't ADD a value but SET it.
Returns nil.
show_huntaholic_lobby_window
Parameters: ([charname]).
Usage: shows huntaholic lobby window for a character, which name is given in parameter.
If parameter is not given, shows a window to a function calling character.
Returns nil.
Usage: shows huntaholic lobby window for a character, which name is given in parameter.
If parameter is not given, shows a window to a function calling character.
Returns nil.
cancel_auction_by_seller
Parameters: (character ID)
Usage: Cancel all auction selling lots of a player.
Returns: ???
Thanks to Gangor for an info
Usage: Cancel all auction selling lots of a player.
Returns: ???
Thanks to Gangor for an info
show_auction_window
Parameters: ([charname]).
Usage: Shows an auction window for a character, which name is given in parameter or to a function caller character if parameter is not given.
Returns nil.
Usage: Shows an auction window for a character, which name is given in parameter or to a function caller character if parameter is not given.
Returns nil.
set_remain_title_time
Parameters: (time in milisec)
Usage: update the remain time so you can change the main title.
Returns nil.
Thanks to pprfds for an info
Usage: update the remain time so you can change the main title.
Returns nil.
Thanks to pprfds for an info
update_title_condition
Parameters: (condition_id, value [, charname]).
Usage: sets a value for a title condition for character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
Tip: condition_id is representer as condition_type_id of a title in TitleConditionResource table.
Usage: sets a value for a title condition for character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
Tip: condition_id is representer as condition_type_id of a title in TitleConditionResource table.
set_sub_title
Parameters: (slot,title_id [,charname])
Usage: update the sub title id
the title must be in the achieved title list so u can use it
the slot begins with 0.
Returns (???)
Thanks to pprfds for an info
Usage: update the sub title id
the title must be in the achieved title list so u can use it
the slot begins with 0.
Returns (???)
Thanks to pprfds for an info
get_sub_title
Parameters: (slot [, charname])
Usage: get the sub title id.
Doesnt print a value as itself.
Returns title ID number value.
Thanks to pprfds for an info
Usage: get the sub title id.
Doesnt print a value as itself.
Returns title ID number value.
Thanks to pprfds for an info
set_main_title
Parameters: (title_id [, charname])
Usage: sets a specified title as a main title.
Returns nil.
Thanks to pprfds for an info
Usage: sets a specified title as a main title.
Returns nil.
Thanks to pprfds for an info
get_main_title
Parameters: ([charname])
Usage: gets the main title ID.
Doesnt print a value as itself.
Returns title ID or 0 if there is no title set as main.
Thanks to pprfds for an info
Usage: gets the main title ID.
Doesnt print a value as itself.
Returns title ID or 0 if there is no title set as main.
Thanks to pprfds for an info
achieve_title
Parameters: (title_id [, charname]).
Usage: compltes all requires to achieve a title and gives a title to a character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
Usage: compltes all requires to achieve a title and gives a title to a character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
open_title
Parameters: (title_id [, charname]).
Usage: opens all requires to ahieve a title, but do not achieve a title for character which name is given in parameter charname or to function caller character if parameter is nil.
Returns nil.
Usage: opens all requires to ahieve a title, but do not achieve a title for character which name is given in parameter charname or to function caller character if parameter is nil.
Returns nil.
nurse_summon unknown
regain_summon unknown
farm_summon unknown
get_summon_rate
Parameters: (summon ID)
Usage: returns rate of a summon got from SummonResource with specified ID in SummonResource
Thanks to Zhekan for an info
Usage: returns rate of a summon got from SummonResource with specified ID in SummonResource
Thanks to Zhekan for an info
get_farmed_summon_level unknown
get_farmed_summon_value unknown
get_farmed_summon_count unknown
get_farmed_summon_list unknown
get_summon_list unknown
show_creature_farm_window
Parameters: ([charname])
Usage: shows a creature farm window to a character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
Usage: shows a creature farm window to a character which name is given in parameter charname or to a function caller character if parameter is nil.
Returns nil.
reset_summon_skill
Parameters: (creature_handle).
Usage: resets all skills of a creature which handle is given in parameter.
Returns 1 if reset and nil if there is no creature with such a handle.
See also: get_creature_handle() command.
Usage: resets all skills of a creature which handle is given in parameter.
Returns 1 if reset and nil if there is no creature with such a handle.
See also: get_creature_handle() command.
creature_name_change_box
Parameters: (creature_handle [, charname]).
Usage: Shows a creature name change box for creature with given handle to a character which name is given in parameter charname or to a function caller if parameter is nil.
Returns 1 if succeed or nil if there is no creature with such a handle.
See also: get_creature_handle() command
Usage: Shows a creature name change box for creature with given handle to a character which name is given in parameter charname or to a function caller if parameter is nil.
Returns 1 if succeed or nil if there is no creature with such a handle.
See also: get_creature_handle() command
get_creature_name_id
Parameters: (creature_handle).
Usage: gets a string code (name_id in SummonResource) of creature name with given handle. Can be shown only using printing functions such as message, cprint, etc.
Returns string code or 0 if there is no creature with such handle.
Usage: gets a string code (name_id in SummonResource) of creature name with given handle. Can be shown only using printing functions such as message, cprint, etc.
Returns string code or 0 if there is no creature with such handle.
set_continuous_play_time unknown
set_pcbang_user unknown
show_donation_prop
Parameters: ([charname])
Usage: shows Altar of the Goddess donation prop window to a specified character or to function caller if parameter charname is not given.
Returns 1 if succeed, 0 on error.
Usage: shows Altar of the Goddess donation prop window to a specified character or to function caller if parameter charname is not given.
Returns 1 if succeed, 0 on error.
update_gold_chaos
Parameters: ([charname]).
Usage: updates gold and chaos values of a character which name is given in parameter or a function caller character if parameter is nil in a database.
Returns 1 if succeed.
Usage: updates gold and chaos values of a character which name is given in parameter or a function caller character if parameter is nil in a database.
Returns 1 if succeed.
get_local_info
Parameters: no.
Usage: gets local server info.
Returns localinfo value.
Thanks to Gangor for an info
Usage: gets local server info.
Returns localinfo value.
Thanks to Gangor for an info
open_popup_and_set_size
Parameters: ( url, width, height, get, 0? )
Usage: open popup with custom size
Returns: ??
Thanks to Gangor for an info
Usage: open popup with custom size
Returns: ??
Thanks to Gangor for an info
open_popup
Parameters: (url_env_name, 1[?], 0[?])
Usage: opens a browser window with opened web link, which address is stored in environmental value, to a function caller character.
Returns nil.
See also: set_env() and get_env() commands
Usage: opens a browser window with opened web link, which address is stored in environmental value, to a function caller character.
Returns nil.
See also: set_env() and get_env() commands
open_url
Parameters: (url, 0[?])
Usage: opens a web page with url given in parameter (not an env value, simply url) to a function caller character.
Returns nil.
Usage: opens a web page with url given in parameter (not an env value, simply url) to a function caller character.
Returns nil.
clear_auto_account unknown
set_auto_account unknown
set_auto_user
Parameters: (value, character_handle)
Usage: gives an autouser status to a specified character if value parameter is 1 and removes if 0.
Autouser is a character that get a ban by teleporting to abyss and getting a strong debuff.
Returns 0.
Usage: gives an autouser status to a specified character if value parameter is 1 and removes if 0.
Autouser is a character that get a ban by teleporting to abyss and getting a strong debuff.
Returns 0.
find_npc unknown
get_server_category
Parameters: none.
Usage: gets a server category value. For arabic 8.1 emulator released by Al7Rob, its 268435460.
This value represents if the server is official (returns a value that is used by function scf_is_official_server()).
Doesnt print a value as itself.
Returns server category number.
Usage: gets a server category value. For arabic 8.1 emulator released by Al7Rob, its 268435460.
This value represents if the server is official (returns a value that is used by function scf_is_official_server()).
Doesnt print a value as itself.
Returns server category number.
warp_to_revive_position
Parameters: ([charname]).
Usage: teleports a character to revive position. Revive position X and Y is stored in character flags "rx" and "ry".
Returns nil.
Usage: teleports a character to revive position. Revive position X and Y is stored in character flags "rx" and "ry".
Returns nil.
recall_feather
Parameters: (charname)
Usage: shows a call reather window to a character. After confirm, character which name is given in parameter will be teleported to a function caller character
Usage: shows a call reather window to a character. After confirm, character which name is given in parameter will be teleported to a function caller character
set_way_point_speed unknown
set_way_point_type unknown
add_way_point unknown
draw_tax_chaos
Parameters: none.
Usage: transfers all chaos stored in a dungeon counter got by dungeon tax to a function caller laks score.
Requires save() or update_gold_chaos() function call to update laks value.
Returns 0 if there was no laks got from tax score or if access denied in case character is not a dungeon owning guild leader.
Usage: transfers all chaos stored in a dungeon counter got by dungeon tax to a function caller laks score.
Requires save() or update_gold_chaos() function call to update laks value.
Returns 0 if there was no laks got from tax score or if access denied in case character is not a dungeon owning guild leader.
draw_tax
Parameters: none.
Usage: transfers all gold stored in a dungeon counter got by dungeon tax to a function caller gold.
Requires save() or update_gold_chaos() function call to update gold value.
Returns 0 if there was no gold got from tax score or if access denied in case character is not a dungeon owning guild leader.
Usage: transfers all gold stored in a dungeon counter got by dungeon tax to a function caller gold.
Requires save() or update_gold_chaos() function call to update gold value.
Returns 0 if there was no gold got from tax score or if access denied in case character is not a dungeon owning guild leader.
get_tax_chaos_amount
Parameters: none.
Usage: gets a value of current laks got by tax on an owned dungeon score.
Doesnt print a value as itself.
Returns laks amount or 0 if there is no laks or character is not a member of a guild that owns dungeon.
Usage: gets a value of current laks got by tax on an owned dungeon score.
Doesnt print a value as itself.
Returns laks amount or 0 if there is no laks or character is not a member of a guild that owns dungeon.
get_tax_amount
Parameters: none.
Usage: gets a value of current gold got by tax on an owned dungeon score.
Doesnt print a value as itself.
Returns gold amount or 0 if there is no gold or character is not a member of a guild that owns dungeon.
Usage: gets a value of current gold got by tax on an owned dungeon score.
Doesnt print a value as itself.
Returns gold amount or 0 if there is no gold or character is not a member of a guild that owns dungeon.
set_tax_rate
Parameters: (dungeon_id, percents)
Usage: sets a tax rate for gold and chaos for a specified dungeon in %.
Doesnt work even for gameserver permissions if a function caller is not a dungeon owning guild leader.
Percents value could be from 1 to 10.
Requires to call tax_rate_adjust(dungeon_id) by the same handler to update a value.
Returns nil.
Usage: sets a tax rate for gold and chaos for a specified dungeon in %.
Doesnt work even for gameserver permissions if a function caller is not a dungeon owning guild leader.
Percents value could be from 1 to 10.
Requires to call tax_rate_adjust(dungeon_id) by the same handler to update a value.
Returns nil.
get_tax_rate
Parameters: (dungeon_id)
Usage: gets a gold-chaos tax value of specified dungeon. Doesnt print a value as itself.
Returns tax value.
Usage: gets a gold-chaos tax value of specified dungeon. Doesnt print a value as itself.
Returns tax value.
get_dungeon_relation
Parameters: (dungeon_id)
Usage: gets a dungeon relation type to a function caller's guild.
Returns: see NPC_dungeon_siege_manager_contact() in original korean npc_questclient.lua
Usage: gets a dungeon relation type to a function caller's guild.
Returns: see NPC_dungeon_siege_manager_contact() in original korean npc_questclient.lua
get_own_guild_name
Parameters: (dungeon_id).
Usage: gets a name of a guild that wons a dungeon with dungeon_id. Doesnt print a returned value as itself.
Returns guild name.
Usage: gets a name of a guild that wons a dungeon with dungeon_id. Doesnt print a returned value as itself.
Returns guild name.
get_guild_block_time
Parameters[charname]).
Usage: gets a time to remove guild entering block of a character which name is given in parameter of function caller if parameter is nil. Doesnt print value as itself.
Returns time in sec.
Usage: gets a time to remove guild entering block of a character which name is given in parameter of function caller if parameter is nil. Doesnt print value as itself.
Returns time in sec.
set_guild_block_time
Parameters: (value [,charname])
Usage: sets a guild block time in seconds for a character which name is given in parameter charname or function caller character if parameter charname is nil.
Returns 0.
Usage: sets a guild block time in seconds for a character which name is given in parameter charname or function caller character if parameter charname is nil.
Returns 0.
is_guild_leader
Parameters: ([charname])
Usage: gets an info is character a leader of his guild. Doesnt show value as itself.
Returns 1 if a character is a leader or 0 if not.
Usage: gets an info is character a leader of his guild. Doesnt show value as itself.
Returns 1 if a character is a leader or 0 if not.
update_guild_banner_info unknown
update_guild_info unknown
show_channel_set
Parameters: ([charname])
Usage: shows a channel set window to a specified character or a function caller if charname parameter is not given.
Channel IDs are stored in dbo.ChannelResource table.
Returns nil.
Usage: shows a channel set window to a specified character or a function caller if charname parameter is not given.
Channel IDs are stored in dbo.ChannelResource table.
Returns nil.
equip_summon_card
Parameters: (card_item_code [, charname])
Usage: moves first found tamed summon card to a form window of a specified character or function caller if charname parameter is not given.
Returns nil.
Usage: moves first found tamed summon card to a form window of a specified character or function caller if charname parameter is not given.
Returns nil.
get_summon_name_id unknown
get_layer_of_channel unknown
get_user_count_in_channel unknown
get_max_channel_num unknown
get_min_channel_num unknown
get_proper_channel_num unknown
creature_learn_skill
Parameters: (skill_id, get_creature_value(creature_handle, "handle"), charname)
Usage: specified creature learns specified skill
Thanks to c1ph3r for an info
Usage: specified creature learns specified skill
Thanks to c1ph3r for an info
call_lc_In unknown
creature_enhance unknown
creature_evolution
Parameters: (handle)
Usage: set the next evolution level for a creature with given handle. Returns Returns 1 if succeed.
Usage: set the next evolution level for a creature with given handle. Returns Returns 1 if succeed.
get_npc_handle
Parameters: ([charname])
Usage: gets a handle value of last contacted NPC by a specified player or function caller (if parameter is not given).
Doesnt print a value as itself.
Returns handle number value.
Usage: gets a handle value of last contacted NPC by a specified player or function caller (if parameter is not given).
Doesnt print a value as itself.
Returns handle number value.
get_npc_id
Parameters: none.
Usage: used only in contact scripts. gets an ID of NPC which has been contacted by a contact function caller character. Doesnt show a value as itself.
Returns NPC ID.
Usage: used only in contact scripts. gets an ID of NPC which has been contacted by a contact function caller character. Doesnt show a value as itself.
Returns NPC ID.
check_valid_alliance_name
Parameters: (alliance_name)
Usage: checks validity of a string alliance_name to be used as alliance name.
Returns 2 or 4 if the name is valid (didnt test all values yet).
Usage: checks validity of a string alliance_name to be used as alliance name.
Returns 2 or 4 if the name is valid (didnt test all values yet).
destroy_alliance
Parameters: none.
Usage: an attempt to destroy alliance where player exists.
Returns: see on_destroy_alliance() function in original korean npc_createguild.lua
Usage: an attempt to destroy alliance where player exists.
Returns: see on_destroy_alliance() function in original korean npc_createguild.lua
create_alliance
Parameters: (alliance_name)
Usage: creates an alliance with specified name and sets a current function caller's guild as a leader of an alliance.
Returns nil.
Usage: creates an alliance with specified name and sets a current function caller's guild as a leader of an alliance.
Returns nil.
check_valid_guild_name
Parameters: (guild_name).
Usage: checks validity of a string guild_name to be used as guild name.
Returns: see create_guild_main() function in original korean npc_createguild.lua.
Usage: checks validity of a string guild_name to be used as guild name.
Returns: see create_guild_main() function in original korean npc_createguild.lua.
force_promote_guild_leader
Parameters: (guild ID, character ID)
Usage: force promotes guild leadership to specified character.
Returns: ???
Thanks to Gangor for an info
Usage: force promotes guild leadership to specified character.
Returns: ???
Thanks to Gangor for an info
force_change_guild_name
Parameters: (guild_id, new_name)
Usage: replaces a guild name of a guild with specified guild_id to a string value set in new_name.
Doesnt work if no members of specified guild is logged on.
Returns nil.
Usage: replaces a guild name of a guild with specified guild_id to a string value set in new_name.
Doesnt work if no members of specified guild is logged on.
Returns nil.
show_alliance_create
Parameters: ([charname]).
Usage: shows an alliance creation window to character with name given in parameter of a function caller if parameter is nil.
Returns nil.
Usage: shows an alliance creation window to character with name given in parameter of a function caller if parameter is nil.
Returns nil.
show_guild_create
Parameters: ([charname]).
Usage: shows an guild creation window to character with name given in parameter of a function caller if parameter is nil.
Returns nil.
Usage: shows an guild creation window to character with name given in parameter of a function caller if parameter is nil.
Returns nil.
destroy_guild
Parameters: (guild_id).
Usage: destroy a guild with specified ID.
Returns 1 if succeed.
Usage: destroy a guild with specified ID.
Returns 1 if succeed.
create_guild
Parameters: (guild_name)
Usage: an attempt to create a guild with specified name and set a function caller character as its leader.
Returns 0 if attempt succeed.
Usage: an attempt to create a guild with specified name and set a function caller character as its leader.
Returns 0 if attempt succeed.
get_user_count_near unknown
open_storage
Parameters: ([charname])
Usage: opens a warehouse for a character with specified name or a function caller if parameter is nil.
Returns nil.
Usage: opens a warehouse for a character with specified name or a function caller if parameter is nil.
Returns nil.
get_creature_handle
Parameters: (form_slot [, charname])
Usage: gets a handle of a creature which is located in specified slot of a character which name is given by parameter or a function caller if charname parameter is nil. Doesnt print a value as itself.
form_slot values:
1st slot = 0
2nd slot = 1
and etc.
Returns a handle value. Handle value of a creature represents its unique sid in dbo.Summon database.
Usage: gets a handle of a creature which is located in specified slot of a character which name is given by parameter or a function caller if charname parameter is nil. Doesnt print a value as itself.
form_slot values:
1st slot = 0
2nd slot = 1
and etc.
Returns a handle value. Handle value of a creature represents its unique sid in dbo.Summon database.
get_string unknown
del_global_variable
Parameters: (variable_name)
Usage: deletes a global variable with specified name from a server memory and from a database.
Returns 1.
Usage: deletes a global variable with specified name from a server memory and from a database.
Returns 1.
get_global_variable
Parameters: (variable_name)
Usage: gets a global variable with specified name from a server memory. Global variables that is added into dbo.GlobalVariable table cannot be returned by this function until server will reload all variables from database. Doesnt print a value as itself.
Returns global variable value.
Usage: gets a global variable with specified name from a server memory. Global variables that is added into dbo.GlobalVariable table cannot be returned by this function until server will reload all variables from database. Doesnt print a value as itself.
Returns global variable value.
set_global_variable
Parameters: (variable_name, value)
Usage: inserts a global variable with specified name and value into server memory and a database asynchronously or update it if it does already exist.
Value can be a string, number or decimal.
Returns nil
Usage: inserts a global variable with specified name and value into server memory and a database asynchronously or update it if it does already exist.
Value can be a string, number or decimal.
Returns nil
get_env
Parameters: (env_name)
Usage: gets an environmental value of an emulation by its env_name. Environmental values are stored in .eop (compressed .opt) files and standard server configuration by default (for example, "game.exp_rate", etc). Doesnt print value as itself.
Returns a value of specified env.
Usage: gets an environmental value of an emulation by its env_name. Environmental values are stored in .eop (compressed .opt) files and standard server configuration by default (for example, "game.exp_rate", etc). Doesnt print value as itself.
Returns a value of specified env.
set_env
Parameters: (env_name, value)
Usage: insert an environmental value with specified name or update it if it does already exist in a server memory. Doesnt update this value in .eop or standard server config.
Returns nil.
Usage: insert an environmental value with specified name or update it if it does already exist in a server memory. Doesnt update this value in .eop or standard server config.
Returns nil.
cast_world_state
Parameters: (state_id, state_power, state_time, 0[?])
Usage: gives a specified state with specified power and expiration time to all characters currently in game.
Returns nil.
Usage: gives a specified state with specified power and expiration time to all characters currently in game.
Returns nil.
get_event_state_list
Parameters: none.
Usage: gets a list of all currently added event states in a format: ID power
Doesnt print a value as itself.
Returns string containing list of states info or nil string if there are no event states on a server.
Usage: gets a list of all currently added event states in a format: ID power
Doesnt print a value as itself.
Returns string containing list of states info or nil string if there are no event states on a server.
clear_event_state
Parameters: none.
Usage: removes all of event states already given on a server.
Returns 1.
Usage: removes all of event states already given on a server.
Returns 1.
remove_event_state
Parameters: (state_id, state_power)
Usage: removes already given event state with specified ID and power. Doesnt remove a state if state_poer in remove_state function is less than current even state power.
Returns nil.
Usage: removes already given event state with specified ID and power. Doesnt remove a state if state_poer in remove_state function is less than current even state power.
Returns nil.
add_event_state
Parameters: (state_id, state_power)
gives a specified state with specified power to all characters currently in game until state will be removed by remove_state function.
Returns nil.
gives a specified state with specified power to all characters currently in game until state will be removed by remove_state function.
Returns nil.
remove_cstate
Parameters: (state_id, state_power[, charname])
Usage: removes state with specified ID and power from a character's main summon creature. Doesnt work if state_power is less than real power of a state.
Returns nil.
Usage: removes state with specified ID and power from a character's main summon creature. Doesnt work if state_power is less than real power of a state.
Returns nil.
add_cstate
Parameters: (state_id, state_power, state_time[, charname])
Usage: gives a state with specified ID and power to a character's main summon creature.
Usage: gives a state with specified ID and power to a character's main summon creature.
remove_state
Parameters: (state_id, state_power[, charname])
Usage: removes a state with specified ID and power from a specified character or a function caller if charname parameter is not given.
Doesnt remove a state if state_power is less than real pwer of a state.
Returns nil.
Usage: removes a state with specified ID and power from a specified character or a function caller if charname parameter is not given.
Doesnt remove a state if state_power is less than real pwer of a state.
Returns nil.
get_state_level
Parameters: (state_id [, charname])
Usage: gets a state power of a state with specified ID of a character which name is given by charname parameter or a function caller if charname parameter is not given.
If state does not exist on a character, returns 0, else returns state power.
Usage: gets a state power of a state with specified ID of a character which name is given by charname parameter or a function caller if charname parameter is not given.
If state does not exist on a character, returns 0, else returns state power.
add_state
Parameters: (state_id, state_power, state_time[, charname])
Usage: gives a specified state with specified power and expiration time to a character which name is given by parameter or a function caller if charname parameter is not given.
Returns nil.
Usage: gives a specified state with specified power and expiration time to a character which name is given by parameter or a function caller if charname parameter is not given.
Returns nil.
is_changeable_job unknown
message
Parameters: (text)
Usage: prints a specified text to a function caller.
Returns nil.
Usage: prints a specified text to a function caller.
Returns nil.
sconv
Parameters: (text[,text,text...])
Usage: concatenates client strings with string functions and given string parameters following the client strings format.
Returns output string after concatenation.
See also:
Usage: concatenates client strings with string functions and given string parameters following the client strings format.
Returns output string after concatenation.
See also:
show_creature_dialog
Parameters: ([charname])
Usage: shows a creature form window to a specified character or a function caller if parameter is not given.
Returns nil.
Usage: shows a creature form window to a specified character or a function caller if parameter is not given.
Returns nil.
get_base_skill_level
Parameters: (skill_id)
Usage: gets a current level of a specified skill of a function caller character.
Doesnt print value as itself.
Returns skill level.
Usage: gets a current level of a specified skill of a function caller character.
Doesnt print value as itself.
Returns skill level.
set_race
Parameters: (race_id [, charname])
Usage: sets a race of specified character or a function caller if charname parameter is not given.
Races:
3 - Gaia
4 - Deva
5 - Asura
Doesnt change a race to race with wrong id.
Returns nil.
Usage: sets a race of specified character or a function caller if charname parameter is not given.
Races:
3 - Gaia
4 - Deva
5 - Asura
Doesnt change a race to race with wrong id.
Returns nil.
reset_job unknown
set_job unknown
reset_skill
Parameters: (job_level [, charname])
Usage: resets all skills for specified job level for specified character or a function caller if charname parameter is not given.
Job levels:
0 - main
1 - 1st
2 - 2nd
3 - Master-Class.
Returns nil.
Usage: resets all skills for specified job level for specified character or a function caller if charname parameter is not given.
Job levels:
0 - main
1 - 1st
2 - 2nd
3 - Master-Class.
Returns nil.
learn_creature_all_skill
Parameters: ([form_slot ] [, charname])
Usage: learns all skills and increases a level of a creature to maximum for curren evo. Target creature specified by its slot in form window and owner name. Learns skills of a creature of a function caller if charname parameter is not given. If slot parameter is not given, uses value 0 by default.
Slots numbers:
0 - All slots
1 - 1
2 - 2
and etc.
Returns 2 for learning by slot 0. Returns 5 if creature skills were learned and 4 if there is no a creature in a specified slot.
Usage: learns all skills and increases a level of a creature to maximum for curren evo. Target creature specified by its slot in form window and owner name. Learns skills of a creature of a function caller if charname parameter is not given. If slot parameter is not given, uses value 0 by default.
Slots numbers:
0 - All slots
1 - 1
2 - 2
and etc.
Returns 2 for learning by slot 0. Returns 5 if creature skills were learned and 4 if there is no a creature in a specified slot.
learn_all_skill
Parameters: ([charname])
Usage: learns all skills of a specified character or a function caller if charname parameter is not given. Also sets a level to 300.
Returns nil.
Usage: learns all skills of a specified character or a function caller if charname parameter is not given. Also sets a level to 300.
Returns nil.
learn_skill
Parameters: (skill_id)
Usage: insert a skill with specified ID if it does not exit or increase its level by 1 if it does. Works only for function caller.
Returns nil.
Usage: insert a skill with specified ID if it does not exit or increase its level by 1 if it does. Works only for function caller.
Returns nil.
refresh
Parameters: ([refresh_type]).
Usage: reading all the data from DB again without a require to restart GS console if nil parameter given. Warning! Bugs markes by duplicated info! Use carefully and only if you know what you do.
Can specify parameters:
-allowed_commands_list
-etc
-item
-quest
-monster
-skill
-script
-string
-scheduled_command
Returns nil.
Usage: reading all the data from DB again without a require to restart GS console if nil parameter given. Warning! Bugs markes by duplicated info! Use carefully and only if you know what you do.
Can specify parameters:
-allowed_commands_list
-etc
-item
-quest
-monster
-skill
-script
-string
-scheduled_command
Returns nil.
gametime
Parameters: none.
Usage: gets "engine.ar_time" env value
(Damn useless shit, same as get_env("engine.ar_time"))
Returns an env value.
Usage: gets "engine.ar_time" env value
(Damn useless shit, same as get_env("engine.ar_time"))
Returns an env value.
open_market
Parameters: (market_name [, charname])
Usage: opens a specified market for character which name is given by parameter or a function caller if parameter is not given.
Usage: opens a specified market for character which name is given by parameter or a function caller if parameter is not given.
force_monster_proc_dead unknown
db_trace_dump
Parameters: none.
Function builds current database on-work query trace dump in text format into Log folder in format: DB_Debug_year-month-day.log
Thanks to Amaady for an info
Function builds current database on-work query trace dump in text format into Log folder in format: DB_Debug_year-month-day.log
Thanks to Amaady for an info
get_monster_id
Parameters: (monster_handle)
Usage: gets a monster ID by its handle. Monster handle is given only by several functions stored by default.
Doesnt print a value as itself.
Returns monster ID number value.
See also: original korean etc_run_monster_skill.lua
Usage: gets a monster ID by its handle. Monster handle is given only by several functions stored by default.
Doesnt print a value as itself.
Returns monster ID number value.
See also: original korean etc_run_monster_skill.lua
set_next_attackable_time
Parameters: (delay, monster_handle)
Usage: sets a delay before continue an attack for a monster with specified handle.
Works only with monster handle given by default stored functions.
Returns nil.
See also: original korean etc_run_monster_skill.lua
Usage: sets a delay before continue an attack for a monster with specified handle.
Works only with monster handle given by default stored functions.
Returns nil.
See also: original korean etc_run_monster_skill.lua
set_monster_skill_target_position unknown
get_monster_skill_target_position unknown
monster_skill_cast
Parameters: (skill_id, monster_handle, target_handle)
Usage: casts a skill with its ID in a database by a handled monster to a handled monster target.
Monster and target handles are parameters given by scripts stored in gameserver code i guess. If someone has more info, please explain.
Usage: casts a skill with its ID in a database by a handled monster to a handled monster target.
Monster and target handles are parameters given by scripts stored in gameserver code i guess. If someone has more info, please explain.
respawn_near_monster
Parameters: (monster_handle, spawn_monster_id, count)
Usage: spawns monsters with specified spawn_monster_id and specified count near monster that has monster_handle (think that handle given when monster casts a summoning skill, like Witch calls Fanatics etc.)
Usage: spawns monsters with specified spawn_monster_id and specified count near monster that has monster_handle (think that handle given when monster casts a summoning skill, like Witch calls Fanatics etc.)
save
Parameters: ([charname])
Usage: saves player data in a database. If parameter is not given, saves a data of a function caller character.
Usage: saves player data in a database. If parameter is not given, saves a data of a function caller character.
delete_block_account unknown
shutdown
Parameters: (countdown)
Usage: shut the srver down with saving all the data after a couple of seconds set by cooldown.
Sometimes causes server freezing, shitty thing, not recommended to use.
Returns nil
Usage: shut the srver down with saving all the data after a couple of seconds set by cooldown.
Sometimes causes server freezing, shitty thing, not recommended to use.
Returns nil
saveall
Parameters: none.
Usage: saves all data stored in a memory to a database.
Returns
Usage: saves all data stored in a memory to a database.
Returns
setspeed
Parameters: (value)
Usage: sets the speed of a character.
Values arent less shitty thigs than skin color values. Didnt get a formula. Use with caution.
Usage: sets the speed of a character.
Values arent less shitty thigs than skin color values. Didnt get a formula. Use with caution.
get_siege_dungeon_id
Parameters: ([charname]).
Usage: gets dungeon ID that is under siege by a guild where player exists. Doesnt print value as itself.
Returns dungeon ID.
Usage: gets dungeon ID that is under siege by a guild where player exists. Doesnt print value as itself.
Returns dungeon ID.
get_own_dungeon_id
Parameters: ([charname]).
Usage: gets dungeon ID that is owned by a guild where player exists.
Returns dungeon ID.
Usage: gets dungeon ID that is owned by a guild where player exists.
Returns dungeon ID.
clear_dungeon_core_guardian unknown
change_dungeon_owner
Parameters: (dungeon_id, guild_id)
Usage: force changes a relation of a specified dungeon to own by specified guild.
Returns nil.
Usage: force changes a relation of a specified dungeon to own by specified guild.
Returns nil.
drop_dungeon_owner_ship
Parameters: none.
Usage: removes an ownership data of a dungeon which is already by own of a function caller's guild.
Returns 1 if succeed dropping and 0 if there is nothing to drop (guild doesnt own a dungeon)
Usage: removes an ownership data of a dungeon which is already by own of a function caller's guild.
Returns 1 if succeed dropping and 0 if there is nothing to drop (guild doesnt own a dungeon)
warp_to_stored_position
See same warp_to_revive_position()
enter_dungeon
Parameter: (dungeon_id [, charname])
Usage: warps a player with specified name or a function caller if a name is not given to a dungeon with specified ID.
Returns nil
Usage: warps a player with specified name or a function caller if a name is not given to a dungeon with specified ID.
Returns nil
get_battle_arena_team_no
Parameters: ([charname])
Usage: gets a battle arena team number of a specified character or a function caller if parameter is not given.
Doesnt print a value as itself.
Returns 0 or 1 as a team number value or -1 if player is not a member of any arena teams.
Usage: gets a battle arena team number of a specified character or a function caller if parameter is not given.
Doesnt print a value as itself.
Returns 0 or 1 as a team number value or -1 if player is not a member of any arena teams.
set_battle_arena_next_penalty_dec_time unknown
get_battle_arena_next_penalty_dec_time unknown
set_battle_arena_penalty_count unknown
get_battle_arena_penalty_count unknown
set_battle_arena_block_time
Parameters: (time in seconds, charname)
Usage: sets battle arena block time to a specified character.
Returns: ???
Thanks to Gangor for an info
Usage: sets battle arena block time to a specified character.
Returns: ???
Thanks to Gangor for an info
get_battle_arena_block_time
Parameters: (charname)
Returns: battle arena block time of a specified character in seconds
Thanks to Gangor for an info
Returns: battle arena block time of a specified character in seconds
Thanks to Gangor for an info
do_each_player_in_battle_arena_team
Parameters: (arena_id, instance_no, team_no, script_text)
Usage: runs a script handled to every member of a specified team on specified arena instance.
By default, arena_id, instance_no and team_no parameters could be handled from parameters of standard functions in original korean battlearena.lua.
Returns nil.
Usage: runs a script handled to every member of a specified team on specified arena instance.
By default, arena_id, instance_no and team_no parameters could be handled from parameters of standard functions in original korean battlearena.lua.
Returns nil.
do_each_player_in_battle_arena_instance
Parameters: (arena_id, instance_no, script_text)
Usage: runs a script handled to every player on specified arena instance.
By default, arena_id and instance_no parameters could be handled from parameters of standard functions in original korean battlearena.lua.
Returns nil.
Usage: runs a script handled to every player on specified arena instance.
By default, arena_id and instance_no parameters could be handled from parameters of standard functions in original korean battlearena.lua.
Returns nil.
get_battle_arena_instance_flag unknown
set_battle_arena_instance_flag unknown
activate_battle_arena_prop unknown
broadcast_mission_objective_progress
Parameters: (1?, status_id, value, instance_id, layer)
Usage: Update objective progress for all the player in instance layer
Thanks to Gangor for an info
Usage: Update objective progress for all the player in instance layer
Thanks to Gangor for an info
broadcast_mission_objective
Parameters: (1[?], status_id, max_value, text, instance_id, layer)
Usage: Set objective for all the player in instance layer
Thanks to Gangor for an info
Usage: Set objective for all the player in instance layer
Thanks to Gangor for an info
broadcast_mission_reward
Parameters: (1[?], text, instance_id, layer)
Usage: Set or update reward for all the player in instance layer
Thanks to Gangor for an info
Usage: Set or update reward for all the player in instance layer
Thanks to Gangor for an info
broadcast_mission_title
Parameters: (1[?], text, instance_id, layer)
Usage: Set or update title for all the player in instance layer
Thanks to Gangor for an info
Usage: Set or update title for all the player in instance layer
Thanks to Gangor for an info
send_mission_objective_progress
Parameters: (status_id, value, name)
Usage: Update the objective window
Thanks to Gangor for an info
Usage: Update the objective window
Thanks to Gangor for an info
send_mission_objective
Parameters: (status_id, max_value, text, name)
Usage: Set objective
Thanks to Gangor for an info
Usage: Set objective
Thanks to Gangor for an info
send_mission_reward
Parameters: (text, charname)
Usage: Display reward window
Thanks to Gangor for an info
Usage: Display reward window
Thanks to Gangor for an info
send_mission_title
Parameters: (text, charname)
Usage: Display window and set title.
Removes window if the text is empty.
Thanks to Gangor for an info
Usage: Display window and set title.
Removes window if the text is empty.
Thanks to Gangor for an info
do_each_player_in_instance_dungeon
Parameters: (instance_dungeon_id, layer, script_text)
Usage: runs a script handled to every player in specified instance dungeon on a specified layer.
Returns nil.
Usage: runs a script handled to every player in specified instance dungeon on a specified layer.
Returns nil.
get_alive_instance_respawn_group_monster_count
Parameters: ( instance_dungeon_id, layer, respawn_group )
Usage: gets a boolean value representing how much monsters is still alive from specified monsters respawn group
(respawn_group column in dbp.InstanceDungeonMonsterRespawnResource) of a specified instance dungeon on a specified layer.
Doesnt print a value as itself.
Returns monsters count number value.
Usage: gets a boolean value representing how much monsters is still alive from specified monsters respawn group
(respawn_group column in dbp.InstanceDungeonMonsterRespawnResource) of a specified instance dungeon on a specified layer.
Doesnt print a value as itself.
Returns monsters count number value.
get_instance_dungeon_flag
Parameters: ( instance_dungeon_id, layer, flag_name )
Usage: gets an instance dungeon flag. Every instance dungeon has a local flags list on every layer.
Doesnt print a value as itself.
Returns flag value
Usage: gets an instance dungeon flag. Every instance dungeon has a local flags list on every layer.
Doesnt print a value as itself.
Returns flag value
set_instance_dungeon_flag
Parameters: ( instance_dungeon_id, layer, flag_name, value )
Usage: sets a value for instance dungeon layer's flag with specified name.
Returns nil.
Usage: sets a value for instance dungeon layer's flag with specified name.
Returns nil.
get_instance_dungeon_type_id
Parameters: (instance_dungeon_id, layer)
Usage: gets an instance type id for specified instance dungeon on specified layer.
Doesnt print a value as itself.
Returns type id number value
Thanks to pprfds for an info
Usage: gets an instance type id for specified instance dungeon on specified layer.
Doesnt print a value as itself.
Returns type id number value
Thanks to pprfds for an info
get_instance_dungeon_id
Parameters: ([charname])
Usage: gets an instance dungeon ID where character is currently located (or a function caller, if charname parameter is nil).
Doesnt print a value as itself.
Returns instance dungeon ID or 0 if player is not in an instance dungeon.
Usage: gets an instance dungeon ID where character is currently located (or a function caller, if charname parameter is nil).
Doesnt print a value as itself.
Returns instance dungeon ID or 0 if player is not in an instance dungeon.
quit_instance_dungeon
Parameters: (instance_dungeon_id [, charname])
Usage: teleports a character to a revive position if character (or function caller if charname parameter is nil) located in specified dungeon,
otherwise does nothing.
Returns nil.
Usage: teleports a character to a revive position if character (or function caller if charname parameter is nil) located in specified dungeon,
otherwise does nothing.
Returns nil.
leave_instance_dungeon
Parameters: (instance_dungeon_id)
Usage: shows a confirmation window with a choice to leave instance dungeon or not.
Works only on a function caller.
Returns nil.
Usage: shows a confirmation window with a choice to leave instance dungeon or not.
Works only on a function caller.
Returns nil.
enter_other_instance_dungeon
Parameters dungeon_id, floor, next_floor, current_item_count, next_item_count )
Usage: shows a dialog box that let you choose to stay in this floor or go to the next floor ( it's currently used in volcanus dungeon )
Returns nil.
Thanks to pprfds for an info
Usage: shows a dialog box that let you choose to stay in this floor or go to the next floor ( it's currently used in volcanus dungeon )
Returns nil.
Thanks to pprfds for an info
enter_instance_dungeon
Parameters: (instance_dungeon_id [, charname])
Usage: teleports a character to a specified instance dungeon and run dungeon enter scripts.
Returns nil.
Usage: teleports a character to a specified instance dungeon and run dungeon enter scripts.
Returns nil.
enter_secret_dungeon
Parameters: (dungeon ID)
Usage: teleports a function caller character to a secret dungeon of a specified dungeon.
Returns: ??
Thanks to Gangor for an info
Usage: teleports a function caller character to a secret dungeon of a specified dungeon.
Returns: ??
Thanks to Gangor for an info
cancel_dungeon_raid unknown
request_dungeon_raid unknown
change_tactical_position_owner unknown
show_dungeon_stone
Parameters: (dungeon_id [, charname])
Usage: shows a dungeon stone menu of a specified dungeon to a character which name is given by parameter charname or to a function caller if charname parameter is not given.
Returns nil.
Usage: shows a dungeon stone menu of a specified dungeon to a character which name is given by parameter charname or to a function caller if charname parameter is not given.
Returns nil.
respawn_guardian_object unknown
is_in_siege_dungeon unknown
recall_player
Parameters: (charname)
Usage: teleports a specified character to a function caller character without any confirmation from recalled character side.
Returns nil.
Usage: teleports a specified character to a function caller character without any confirmation from recalled character side.
Returns nil.
whisper
Parameters: (charname, text)
Usage: shows a text as a notice only to a specified character.
Returns nil.
Usage: shows a text as a notice only to a specified character.
Returns nil.
announce
Parameters: (text)
Usage: shows a text as a notice with green color. wow.
Returns nil.
Usage: shows a text as a notice with green color. wow.
Returns nil.
private_notice
Parameters: (text)
Usage: shows a notice only to a function caller.
Returns nil.
Usage: shows a notice only to a function caller.
Returns nil.
get_os_date
Parameters: none.
Usage: gets a string with current system date. Doesnt print value as itself.
Returns string with contained date data.
Usage: gets a string with current system date. Doesnt print value as itself.
Returns string with contained date data.
get_os_time
Parameters: ([table]).
Usage: gets current system time as a count of seconds after 01 Jan 1970 00:00 UTC. Doesnt change if system GMT was changed.
"table" parameter must be a table with a following format:
{day=xx, month=xx, year=xxxx}
year must be >1970, day - between 1 and 31 and month between 1 and 12.
If parameter is specified, returns count of seconds since date given in parameter.
Doesnt print value as itself.
Returns count of seconds.
Usage: gets current system time as a count of seconds after 01 Jan 1970 00:00 UTC. Doesnt change if system GMT was changed.
"table" parameter must be a table with a following format:
{day=xx, month=xx, year=xxxx}
year must be >1970, day - between 1 and 31 and month between 1 and 12.
If parameter is specified, returns count of seconds since date given in parameter.
Doesnt print value as itself.
Returns count of seconds.
kill_target
Parameters: ([charname]).
Kalls a target of a scpecified character or a function caller if there is no parameter. Kills mobs as well as characters. Doesnt kill a target if specified player has himself as a target.
Returns nil.
Kalls a target of a scpecified character or a function caller if there is no parameter. Kills mobs as well as characters. Doesnt kill a target if specified player has himself as a target.
Returns nil.
add_random_monster_group unknown
add_random_monster
Parameters: (random_spawn_ID, monster_ID, ratio)
Usage: adds a monster to a monsters spawn list for the specified random monsters spawn.
ratio - a chance for monster to appear again after its death (???)
1% = 1000000.
Requires an availability of a spawn with specified ID and existing of at least one random area in this spawn.
See also: add_random_area() and set_random_respawn() functions.
Returns nil.
Usage: adds a monster to a monsters spawn list for the specified random monsters spawn.
ratio - a chance for monster to appear again after its death (???)
1% = 1000000.
Requires an availability of a spawn with specified ID and existing of at least one random area in this spawn.
See also: add_random_area() and set_random_respawn() functions.
Returns nil.
add_random_area
Parameters: (random_spawn_id, min_x, min_y, max_x, max_y)
Usage: creates a random area for monsters respawn. There are more than one random area could be created with same ID but different coordinates.
Every monster spawned by a specified spawn id will randomly appear in one of these areas by its random coordinates inside an area.
See also: set_random_respawn(), add_random_monster() functions
Returns nil.
Usage: creates a random area for monsters respawn. There are more than one random area could be created with same ID but different coordinates.
Every monster spawned by a specified spawn id will randomly appear in one of these areas by its random coordinates inside an area.
See also: set_random_respawn(), add_random_monster() functions
Returns nil.
set_random_respawn
Parameters: (random_respawn_id, interval, random_area_id, inc, is_wandering, way_point_id, prespawn_count, except_raid_siege)
Usage: creates a random monsters respawn with specified interval between monster death and respawn in a specified random area.
inc: increase every mob during check number (???, translated from original korean desc, 1 by default in most of spawns already created in original scripts)
is_wandering: 1 if monster walks around or 0 if dont
way_point_id: (???, 0 by default)
prespawn_count: count of mobs as prespawned, means 1 if it spawned first, then starts an interval countdown, or 0 if it must be spawned in interval based time after spawn starts.
except_raid_siege: 1 if you dont need to spawn that monsters while siege.
Returns nil.
See also: add_random_area(), add_random_monster() functions
Usage: creates a random monsters respawn with specified interval between monster death and respawn in a specified random area.
inc: increase every mob during check number (???, translated from original korean desc, 1 by default in most of spawns already created in original scripts)
is_wandering: 1 if monster walks around or 0 if dont
way_point_id: (???, 0 by default)
prespawn_count: count of mobs as prespawned, means 1 if it spawned first, then starts an interval countdown, or 0 if it must be spawned in interval based time after spawn starts.
except_raid_siege: 1 if you dont need to spawn that monsters while siege.
Returns nil.
See also: add_random_area(), add_random_monster() functions
raid_respawn_rare_mob unknown
raid_respawn unknown
respawn_roaming_mob unknown
respawn_rare_mob
Parameters: (roaming_id, interval, x, y, mob_id, count, is_wandering)
Usage: Spawns a monster on a map. Doesnt work after initializing acceptor (means only before server will be ready to play on it). So function could be run only from on_server_init() function.
Roaming_id represents mob's roaming way (-1 = without roaming, stand)
Interval - time needed to respawn a mob after its death (seconds * 100).
x & y - position on a map.
count - as it means.
is_wandering: if set to 0, monster will stand tall and dont walk around;
if set to 1, monster will walk around a spawn place chaotically.
Usage: Spawns a monster on a map. Doesnt work after initializing acceptor (means only before server will be ready to play on it). So function could be run only from on_server_init() function.
Roaming_id represents mob's roaming way (-1 = without roaming, stand)
Interval - time needed to respawn a mob after its death (seconds * 100).
x & y - position on a map.
count - as it means.
is_wandering: if set to 0, monster will stand tall and dont walk around;
if set to 1, monster will walk around a spawn place chaotically.
respawn_environmental_guardian
Parameters: (dungeon_id, guardian_type, interval, x, y, mob_id, count, is_wandering)
Usage: respawns environmental guardians in a siege instance of spcified dungeon.
guardian_type:
- 0: Dungeon Core
- 1: The control unit 1
- 2: The control unit 2, etc. in order to enter the control device to the order id.
(???, translated from original korean description).
Didn't find anything different with respawn_guardian() (see same function).
Seems like one of that functions is for raid instance and other is for siege.
Returns nil.
Usage: respawns environmental guardians in a siege instance of spcified dungeon.
guardian_type:
- 0: Dungeon Core
- 1: The control unit 1
- 2: The control unit 2, etc. in order to enter the control device to the order id.
(???, translated from original korean description).
Didn't find anything different with respawn_guardian() (see same function).
Seems like one of that functions is for raid instance and other is for siege.
Returns nil.
respawn_guardian
Parameters: (dungeon_id, guardian_type, interval, x, y, mob_id, count, is_wandering)
Usage: respawns environmental guardians in a siege instance of spcified dungeon.
guardian_type:
- 0: Dungeon Core
- 1: The control unit 1
- 2: The control unit 2, etc. in order to enter the control device to the order id.
(???, translated from original korean description).
Didn't find anything different with respawn_environmental_guardian() (see same function).
Seems like one of that functions is for raid instance and other is for siege.
Returns nil.
Usage: respawns environmental guardians in a siege instance of spcified dungeon.
guardian_type:
- 0: Dungeon Core
- 1: The control unit 1
- 2: The control unit 2, etc. in order to enter the control device to the order id.
(???, translated from original korean description).
Didn't find anything different with respawn_environmental_guardian() (see same function).
Seems like one of that functions is for raid instance and other is for siege.
Returns nil.
respawn
Parameters: ( spawn_id ,interval , x_min, y_min, x_max, y_max, monster_id , min_count , max_count )
Usage: spawns a monster randomly is square specified by coordinates x_min, y_min, x_max, y_max.
spawn_id must be unique.
Returns nil.
Usage: spawns a monster randomly is square specified by coordinates x_min, y_min, x_max, y_max.
spawn_id must be unique.
Returns nil.
add_field_prop
Parameters: (prop_id, time, x, y , layer, offset_x, offset_y, offset_z, rotate_x, rotate_y, rotate_z, scale_x, scale_y, scale_z)
Usage: spawns clickable prop on a map (fieldprops are stored in dbo.FieldPropResource in a database).
prop_id - as it means, id in a database.
time - lifetime of a prop, set 0 to spawn static.
x, y - position on a map.
layer - layer to spawn on, can be from 0 to 255 as default.
offset_x - move by X axis on specified distance.
offset_y - move by Y axis on specified distance.
offset_z - move by Z axis on specified distance..
rotate_x - rotation by X axis in radians, math.pi = 180 degrees.
rotate_y - rotation by Y axis in radians.
rotate_z - rotation by Z axis in radians.
scale_x - scaling by X axis.
scale_y - scaling by Y axis.
scale_z - scaling by Z axis.
Returns nil.
Usage: spawns clickable prop on a map (fieldprops are stored in dbo.FieldPropResource in a database).
prop_id - as it means, id in a database.
time - lifetime of a prop, set 0 to spawn static.
x, y - position on a map.
layer - layer to spawn on, can be from 0 to 255 as default.
offset_x - move by X axis on specified distance.
offset_y - move by Y axis on specified distance.
offset_z - move by Z axis on specified distance..
rotate_x - rotation by X axis in radians, math.pi = 180 degrees.
rotate_y - rotation by Y axis in radians.
rotate_z - rotation by Z axis in radians.
scale_x - scaling by X axis.
scale_y - scaling by Y axis.
scale_z - scaling by Z axis.
Returns nil.
add_npc_to_world
Parameters: (x, y, npc_id)
Usage: spawns an NPC on a specified position.
Returns 0.
Thanks to pprfds
Usage: spawns an NPC on a specified position.
Returns 0.
Thanks to pprfds
add_npc
Parameters: (x, y, npc_id, count)
Usage: used especially for spawning monsters without its respawn after death.
x & y - positon of spawn, npc_id - monster ID, count - as it means.
Returns nil.
Usage: used especially for spawning monsters without its respawn after death.
x & y - positon of spawn, npc_id - monster ID, count - as it means.
Returns nil.
env
See same get_env() function.
Thanks to Amaady for an info
Thanks to Amaady for an info
force_unregister_account unknown
kick
Parameters: ([charname])
Usage: kicks a player from a game (as usually with GameGuard checking error). If function caller doesnt set a parameter, kicks itself.
Usage: kicks a player from a game (as usually with GameGuard checking error). If function caller doesnt set a parameter, kicks itself.
dlg_special
Parameters: (window_type, confirm_script, text)
Usage: shows a window with some text to a function caller and runs a confirm_script when function caller clicks confirm button.
As usually, window_type can be "confirm_window".
Returns nil.
Usage: shows a window with some text to a function caller and runs a confirm_script when function caller clicks confirm button.
As usually, window_type can be "confirm_window".
Returns nil.
dlg_general
Parameters: (text).
Usage: shows a useless textbox with a text message to a function caller.
Returns nil.
Usage: shows a useless textbox with a text message to a function caller.
Returns nil.
reset_finished_quest
Parameters: (quest_id)
Usage: resets all data about a quest and allow a function caller character to start it again.
Returns 1.
Thanks to pprfds for info
Usage: resets all data about a quest and allow a function caller character to start it again.
Returns 1.
Thanks to pprfds for info
get_last_accept_quest
Parameters: ([charname])
Usage: gets an ID of a last accepted quest of a specified character or a function caller character if charname parameter is not given.
Doesnt print a value as itsel.
Returns quest ID number value.
Usage: gets an ID of a last accepted quest of a specified character or a function caller character if charname parameter is not given.
Doesnt print a value as itsel.
Returns quest ID number value.
set_quest_status
Parameters: (quest_id, status_id, value [, charname])
Usage: sets a value for specified status of a quest.
Statuses are stored in a dbo.Quest table as statusX.
Returns nil.
Usage: sets a value for specified status of a quest.
Statuses are stored in a dbo.Quest table as statusX.
Returns nil.
get_quest_status
Parameters: (quest_id, status_id [, charname]).
Usage: gets a specified status of a specified quest. Doesnt print value as itself.
Returns quest status value.
Usage: gets a specified status of a specified quest. Doesnt print value as itself.
Returns quest status value.
get_quest_progress
Parameters: (quest_id [, charname ])
Usage: gets a value which represents quest completion progress value.
Quest completion progress values:
-1 : not existing info
0 : not started
1 : in progress
2 : can get reward
100 : aborted
255 : already closed
(translated from korean description)
Usage: gets a value which represents quest completion progress value.
Quest completion progress values:
-1 : not existing info
0 : not started
1 : in progress
2 : can get reward
100 : aborted
255 : already closed
(translated from korean description)
show_quest_info_without_npc unknown
quest_info
Parameters: (quest_id, description_string_id [, charname])
Usage: shows an info of a quest with specified description to a specified character or a function caller if charname parameter is not given.
If quest is not in progress by a character, shows quest start window but dont allow to start a quest.
Returns 0 on error, otherwise returns nil.
Usage: shows an info of a quest with specified description to a specified character or a function caller if charname parameter is not given.
If quest is not in progress by a character, shows quest start window but dont allow to start a quest.
Returns 0 on error, otherwise returns nil.
drop_quest
Parameters: (quest_id [, charname])
Usage: drops a quest with specified ID from quests that are currently in progress by specified character
or a function caller if charname parameter is not given.
Returns (???)
Thanks to pprfds for an info
Usage: drops a quest with specified ID from quests that are currently in progress by specified character
or a function caller if charname parameter is not given.
Returns (???)
Thanks to pprfds for an info
end_quest
Parameters: (quest_id, reward_id [, charname])
Usage: an attempt to end a specified quest and insert a specified reward ID to a specified character or a function caller if charname parameter is not given.
Returns nil.
Usage: an attempt to end a specified quest and insert a specified reward ID to a specified character or a function caller if charname parameter is not given.
Returns nil.
add_pending_quest unknown
force_start_quest
Parameters: (quest_id, quest_description_string)
Usage: starts a quest by function caller ignoring any data if its progress.
Returns nil.
Usage: starts a quest by function caller ignoring any data if its progress.
Returns nil.
start_quest unknown
dlg_text_without_quest_menu
Parameters: (text)
Usage: shows NPC dialog ignoring NPC's and dont show it in menu.
Returns nil.
Usage: shows NPC dialog ignoring NPC's and dont show it in menu.
Returns nil.
quest_text_without_quest_menu unknown
dlg_show
Parameters: none.
Usage: shows an NPC dialog constructed by npc title, text and menu.
Returns nil.
Usage: shows an NPC dialog constructed by npc title, text and menu.
Returns nil.
dlg_menu
Parameters: (menu_text, script_text)
Usage: adds a dialog menu points with script that will run on click at this menu. Goes after dlg_title and dlg_text.
Returns nil.
Usage: adds a dialog menu points with script that will run on click at this menu. Goes after dlg_title and dlg_text.
Returns nil.
dlg_text
Parameters: (text).
Usage: shows NPC contacting text in NPC dialog. Goes after dlg_title and before dlg_menu's.
Returns nil.
Usage: shows NPC contacting text in NPC dialog. Goes after dlg_title and before dlg_menu's.
Returns nil.
dlg_title
Parameters: (title_string)
Usage: sets a title for contacted NPC in contact window.
Goes before dlg_text.
Usage: sets a title for contacted NPC in contact window.
Goes before dlg_text.
get_max_alliance_member_count unknown
increase_max_alliance_member_count unknown
is_alliance_leader unknown
set_pk_mode
Parameters: (value [, charname])
Usage: sets a PK mode of a specified character (or function caller if charname is nil) to a specified value:
0 - PK mode OFF
1 - PK mode ON
Usage: sets a PK mode of a specified character (or function caller if charname is nil) to a specified value:
0 - PK mode OFF
1 - PK mode ON
del_flag
Parameters: (flag_name)
Usage: removes a character's flag. Character flags are stored in flag_list of a character in dbo.Character table.
Works only for function caller.
If flag_list goes after 1024 of its length, server crashes, so be careful using so much flags and delete flags you won't use anymore.
Returns nil.
Usage: removes a character's flag. Character flags are stored in flag_list of a character in dbo.Character table.
Works only for function caller.
If flag_list goes after 1024 of its length, server crashes, so be careful using so much flags and delete flags you won't use anymore.
Returns nil.
set_flag
Parameters: (flag_name, value)
Usage: inserts a flag to character's flag_list or update a flag if it exists.
Works only for function caller.
Returns nil.
Usage: inserts a flag to character's flag_list or update a flag if it exists.
Works only for function caller.
Returns nil.
get_flag
Parameters: (flag_name)
Usage: gets a value of existing character's flag. Works only for function caller.
Returns flag value or nil if there is no such a flag.
Usage: gets a value of existing character's flag. Works only for function caller.
Returns flag value or nil if there is no such a flag.
emcv
Parameters: (type [, charname])
Usage: works same as gmcv, but returns string in format "* type: value"
See also: gmcv() function
Returns string containing data.
Usage: works same as gmcv, but returns string in format "* type: value"
See also: gmcv() function
Returns string containing data.
gmcv
Parameters: (type [, charname])
Usage: gets a value from a main currently summoned creature of a specified character (or a function caller if charname parameter is not given)
Doesnt print a value as itself.
Returns creature value as a member of StructSummon data structure
Usage: gets a value from a main currently summoned creature of a specified character (or a function caller if charname parameter is not given)
Doesnt print a value as itself.
Returns creature value as a member of StructSummon data structure
gcv
See same get_creature_value() function
smcv
Parameters: (type, value [, charname])
Usage: sets a value for a main currently summoned creature of a specified character or a function caller if charname parameter is not given.
Returns nil.
Usage: sets a value for a main currently summoned creature of a specified character or a function caller if charname parameter is not given.
Returns nil.
scv
See same set_creature_value() function
change_creature_name
Parameters: (creature handle, name)
Usage: sets new name to a creature with specified handle
Returns: ???
Thanks to Gangor for an info
Usage: sets new name to a creature with specified handle
Returns: ???
Thanks to Gangor for an info
get_creature_value
Parameters: (handle, type)
Usage: gets a type-specified value of a handle-specified creature. Type is a string representing one of members of StructSummon.
Doesnt print value as itself.
Returns needed value or nil if there is no such creature/value.
See laso: get_creature_handle() function
Usage: gets a type-specified value of a handle-specified creature. Type is a string representing one of members of StructSummon.
Doesnt print value as itself.
Returns needed value or nil if there is no such creature/value.
See laso: get_creature_handle() function
set_creature_value
Parameters: (handle, type, value)
Usage: sets a value for one of members of StructSummon for specified creature.
Returns nil.
See laso: get_creature_handle() function
Usage: sets a value for one of members of StructSummon for specified creature.
Returns nil.
See laso: get_creature_handle() function
get_all_value
Parameters: (charname)
Usage: gets a list of types with a value for each type as member of StructPlayer of specified character.
Doesnt print values as itself.
Returns string containing list of types and values.
Thanks to malaysiawap for info
Usage: gets a list of types with a value for each type as member of StructPlayer of specified character.
Doesnt print values as itself.
Returns string containing list of types and values.
Thanks to malaysiawap for info
ev
Parameters: (type [,charname])
Usage: works same as get_value() function, but returns string in format: "* type: value".
Returns string with containing value of type which is a member of StructPlayer.
Usage: works same as get_value() function, but returns string in format: "* type: value".
Returns string with containing value of type which is a member of StructPlayer.
sv
See same set_value() function.
av
See same add_value() function
gv
See same get_value() function.
echo_value
See same ev() function
set_value
Parameters: (type, value [, charname])
Usage: sets a value of a character for specified type which is a member of StructPlayer. Sets a value for a function caller character if charname parameter is nil.
Returns nil.
Usage: sets a value of a character for specified type which is a member of StructPlayer. Sets a value for a function caller character if charname parameter is nil.
Returns nil.
add_exp_jp
Parameters: (exp [, jp] [, charname])
Usage: adds (or removes if negative value) specified experience (and job points if parameter is given) to a character which name is given by charname parameter or a function caller if it is not given.
Doesnt bug the values if there is an overflow in LUA, instead of set_value("exp"/"jp")
Returns nil.
Usage: adds (or removes if negative value) specified experience (and job points if parameter is given) to a character which name is given by charname parameter or a function caller if it is not given.
Doesnt bug the values if there is an overflow in LUA, instead of set_value("exp"/"jp")
Returns nil.
add_value
Parameters: (type, value_to_add [, charname])
Usage: adds a specified count to a value of specified type as member of StructPlayer of specified character or function caller character if charname parameter is nil.
Returns nil.
Thanks to pprfds for info
Usage: adds a specified count to a value of specified type as member of StructPlayer of specified character or function caller character if charname parameter is nil.
Returns nil.
Thanks to pprfds for info
get_value
Parameters: (type [, charname])
Usage: gets a specified type value which is a member of StructPlayer of character which name is given by parameter or function caller if parameter is not given.
Doesnt print a value as itself.
Returns value or nil if there is no such value. Returns 0 for every value type if character is not online.
Usage: gets a specified type value which is a member of StructPlayer of character which name is given by parameter or function caller if parameter is not given.
Doesnt print a value as itself.
Returns value or nil if there is no such value. Returns 0 for every value type if character is not online.
gtv
See same get_target_value() function
get_target_value
Parameters: (type [, charname])
Usage: gets a value of a target of a character which name is given by parameter charname or a function caller if parameter is not given. Value type must be a member of target structure (StructMonster for mobs, StructPlayer for characters, StructSummon for summoned creatures, etc).
Doesnt print value as itself.
Returns a value or nil if value type is not a member of a data structure.
Usage: gets a value of a target of a character which name is given by parameter charname or a function caller if parameter is not given. Value type must be a member of target structure (StructMonster for mobs, StructPlayer for characters, StructSummon for summoned creatures, etc).
Doesnt print value as itself.
Returns a value or nil if value type is not a member of a data structure.
supply_event_item unknown
stop_event_supply unknown
start_event_supply unknown
refresh_event_supply unknown
event_supply unknown
stop_event_drop
Parameters: (ID)
Usage: stop event drop with specified ID from EventItemDropInfo
Return: ???
Thanks to Gangor for an info
Usage: stop event drop with specified ID from EventItemDropInfo
Return: ???
Thanks to Gangor for an info
start_event_drop
Parameters: (ID)
Usage: starts event drop with specified ID from EventItemDropInfo
Return: ???
Thanks to Gangor for an info
Usage: starts event drop with specified ID from EventItemDropInfo
Return: ???
Thanks to Gangor for an info
refresh_event_drop
Parameters: ([id])
Usage: refresh event item drop with specified ID or the whole table if got nil parameter
Returns: ???
Thanks to Gangor for an info
Usage: refresh event item drop with specified ID or the whole table if got nil parameter
Returns: ???
Thanks to Gangor for an info
event_drop unknown
show_soulstone_repair_window
Parameters: ([charname])
Usage: shows a soulstone repair window to a character with specified name or to a function caller if name parameter is not given.
Returns nil.
Usage: shows a soulstone repair window to a character with specified name or to a function caller if name parameter is not given.
Returns nil.
get_max_item_soulstone_endurance unknown
get_item_soulstone_endurance unknown
show_soulstone_craft_window
Parameters: ([charname])
Usage: shows a soulstone craft window to a character with specified name or to a function caller if name parameter is not given.
Returns nil.
Usage: shows a soulstone craft window to a character with specified name or to a function caller if name parameter is not given.
Returns nil.
get_max_item_ethereal_durability
Parameters: (item_handle)
Usage: gets a maximum item ethereal durability. Doesnt print value as itself.
Returns durability maximum count or 0 if item has no durability.
Thanks to pprfds for an info
Usage: gets a maximum item ethereal durability. Doesnt print value as itself.
Returns durability maximum count or 0 if item has no durability.
Thanks to pprfds for an info
set_item_ethereal_durability
Parameters: (item_handle, durability)
Usage: sets a durability count for an item.
Returns nil.
Thanks to pprfds for an info
Usage: sets a durability count for an item.
Returns nil.
Thanks to pprfds for an info
get_item_ethereal_durability
Parameters: (item_handle)
Usage: gets current durability value of an item.
Doesnt print value as itself.
Returns durability count or 0 if item has no durability/broken.
Thans to pprfds for an info
Usage: gets current durability value of an item.
Doesnt print value as itself.
Returns durability count or 0 if item has no durability/broken.
Thans to pprfds for an info
delete_awaken
Parameters: (item_handle)
Usage: deletes the awaken stats of an item
Returns nil.
Thanks to pprfds for an info
Usage: deletes the awaken stats of an item
Returns nil.
Thanks to pprfds for an info
insert_awaken unknown
set_item_appearance_code
Parameters: (item_handle, new_shape_item_id)
Usage: change the item's apperance to a new shape.
Returns ???
Thanks tp pprfds for an info
Usage: change the item's apperance to a new shape.
Returns ???
Thanks tp pprfds for an info
get_item_appearance_code
Parameters: (item_handle)
Usage: get the item apperance id
returns 0 if the apperance is the same.
Thanks to pprfds for an info
Usage: get the item apperance id
returns 0 if the apperance is the same.
Thanks to pprfds for an info
replace_with unknown
get_wear_item_handle
Parameter: (wear_type)
Usage: gets a handle of currently equipped item on a function caller with specified wear type (see column wear_type in dbo.ItemResource)
Doesnt print a value as itself.
Returns item handle value.
Usage: gets a handle of currently equipped item on a function caller with specified wear type (see column wear_type in dbo.ItemResource)
Doesnt print a value as itself.
Returns item handle value.
get_item_name_id
Parameters: (item_code)
Usage: gets a name_id value from dbo.ItemResource for the specified item.
Doesnt print a value as itself.
Returns name ID number value.
Thanks to pprfds for an info
Usage: gets a name_id value from dbo.ItemResource for the specified item.
Doesnt print a value as itself.
Returns name ID number value.
Thanks to pprfds for an info
get_item_name_by_code
Parameters: (item code)
Returns: string containing name of an item with specified code.
Thanks to Gangor for an info
Returns: string containing name of an item with specified code.
Thanks to Gangor for an info
set_socket_info
Parameters: (item_handle, socket_num, socket_value)
Usage: sets a socket info for a specified item.
socket_num must be from 0 to 3.
For items, to insert a soulstone into socket socket_value must be soulstone item code.
For summon cards, first (#0) socket is a summon SID in dbo.Summon, everything else depends on maximum reached level and evo.
Thanks to Gangor for a part of info
Usage: sets a socket info for a specified item.
socket_num must be from 0 to 3.
For items, to insert a soulstone into socket socket_value must be soulstone item code.
For summon cards, first (#0) socket is a summon SID in dbo.Summon, everything else depends on maximum reached level and evo.
Thanks to Gangor for a part of info
get_socket_info
Parameters: (handle, socket_num)
Usage: gets a socket_x(as socket_num) value of an item with specified handle.
socket_num can be from 0 to 3.
See dbo.Item socket_x columns.
See also: get_item_handle() function.
Doesnt print a value as itself.
Returns socket value as a number.
Usage: gets a socket_x(as socket_num) value of an item with specified handle.
socket_num can be from 0 to 3.
See dbo.Item socket_x columns.
See also: get_item_handle() function.
Doesnt print a value as itself.
Returns socket value as a number.
set_item_endurance
Parameters: (handle, time)
Usage: sets an endurance time for a specified item. Doesnt work for items with decrease_type=0.
Returns nil.
See also: get_item_handle() function.
Usage: sets an endurance time for a specified item. Doesnt work for items with decrease_type=0.
Returns nil.
See also: get_item_handle() function.
get_item_endurance
Parameters: (handle)
Usage: gets an endurance time for a specified item.
Doesnt print a value as itself.
Returns endurance time value or 0 if there is no item/item has no expiry time.
See also: get_item_handle() function.
Usage: gets an endurance time for a specified item.
Doesnt print a value as itself.
Returns endurance time value or 0 if there is no item/item has no expiry time.
See also: get_item_handle() function.
get_item_price
Parameters: (handle)
Usage: gets a price of a specified item.
Doesnt print a value as itself.
Returns price number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a price of a specified item.
Doesnt print a value as itself.
Returns price number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_rank
Parameters: (handle)
Usage: gets a rank of a specified item.
Doesnt print a value as itself.
Returns rank number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a rank of a specified item.
Doesnt print a value as itself.
Returns rank number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_grade
Parameters: (handle)
Usage: gets a grade of a specified item.
Doesnt print a value as itself.
Returns grade number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a grade of a specified item.
Doesnt print a value as itself.
Returns grade number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_enhance
Parameters: (handle)
Usage: gets a level of a specified item.
Doesnt print a value as itself.
Returns level number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a level of a specified item.
Doesnt print a value as itself.
Returns level number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
set_item_enhance
Parameters: (handle, value)
Usage: sets an enhance level value for an item with specified handle.
Returns set enhance level or 0 if item with specified handle not found.
Usage: sets an enhance level value for an item with specified handle.
Returns set enhance level or 0 if item with specified handle not found.
set_item_level
Parameters: (handle, value)
Usage: sets a level value for an item with specified handle.
Returns set level or 0 if item with specified handle not found.
Usage: sets a level value for an item with specified handle.
Returns set level or 0 if item with specified handle not found.
get_item_level
Parameters: (handle)
Usage: gets a level of a specified item.
Doesnt print a value as itself.
Returns level number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a level of a specified item.
Doesnt print a value as itself.
Returns level number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_code
Parameters: (hande)
Usage: gets an item code from its handle.
Doesnt print a value as itself.
Returns item code number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets an item code from its handle.
Doesnt print a value as itself.
Returns item code number value.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_name
Parameters: (handle)
Usage: gets a string name of an item with specified handle.
Doesnt print a value as itself.
Returns string with item name.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
Usage: gets a string name of an item with specified handle.
Doesnt print a value as itself.
Returns string with item name.
See also: get_item_handle(), get_wear_item_handle, get_item_handle_list() functions
get_item_handle_list
Parameters: (item_code)
Usage: gets a list of handles of items with specified item code (more than 1 item in a list if there are more than 1 items and item is unstackable).
Doesnt print a value as itself.
Returns table(!) of handle values. To print the list, use table manipulation functions.
Example:
local handle_table = get_item_handle_list(602701) -- gold ingots
for i in handle_table do
message(handle_table[i])
end
Usage: gets a list of handles of items with specified item code (more than 1 item in a list if there are more than 1 items and item is unstackable).
Doesnt print a value as itself.
Returns table(!) of handle values. To print the list, use table manipulation functions.
Example:
local handle_table = get_item_handle_list(602701) -- gold ingots
for i in handle_table do
message(handle_table[i])
end
get_item_handle
Parameters: (item_code).
Usage: gets a handle of a first item in function caller's inventory with specified item code.
Doesnt print a value as itself.
Returns item handle (same as SID in dbo.Item table) for required item.
See laso: get_wear_item_handle() function
Usage: gets a handle of a first item in function caller's inventory with specified item code.
Doesnt print a value as itself.
Returns item handle (same as SID in dbo.Item table) for required item.
See laso: get_wear_item_handle() function
has_item
Parameters: (item_code [, charname])
Usage: gets a value represents if character which parameter is given by charname param (or a function caller of param is nil) has an item with specified code.
Returns 1 if player has an item and 0 if dont.
Thanks to pprfds for info
Usage: gets a value represents if character which parameter is given by charname param (or a function caller of param is nil) has an item with specified code.
Returns 1 if player has an item and 0 if dont.
Thanks to pprfds for info
insert_gold
Parameters: (count [, charname])
Usage: adds a specified value of gold to a specified character or a function caller if charname parameter is not given.
Returns nil
Usage: adds a specified value of gold to a specified character or a function caller if charname parameter is not given.
Returns nil
drop_gold
Parameters: (X, Y, count)
Usage: drops amount of gold on a ground on specified ingame coodinates.
Returns nil.
Usage: drops amount of gold on a ground on specified ingame coodinates.
Returns nil.
drop_item
Parameters: (X, Y, layer, item_id, count)
Usage: drops amount of items on a ground on specified ingame coodinates.
Returns nil.
Usage: drops amount of items on a ground on specified ingame coodinates.
Returns nil.
find_item
Parameter: (item_code)
Usage: gets count of specified items by its code in function caller's inventory.
Returns items count.
Returns 1 for unstackable items even if there are more of them.
Usage: gets count of specified items by its code in function caller's inventory.
Returns items count.
Returns 1 for unstackable items even if there are more of them.
is_erasable_item
Parameters: (item_handle)
Usage: gets a value representing if its possible to erase an item from character's inventory using destroy or etc.
Doesnt print a value as itself.
Returns 1 if item is erasable and 0 if not or if item handle is wrong.
Usage: gets a value representing if its possible to erase an item from character's inventory using destroy or etc.
Doesnt print a value as itself.
Returns 1 if item is erasable and 0 if not or if item handle is wrong.
delete_item
Parameters: (item_handle, count)
Usage: removes an item with specified item handle from function caller's inventory.
Returns nil.
See also: get_item_handle() function.
Usage: removes an item with specified item handle from function caller's inventory.
Returns nil.
See also: get_item_handle() function.
insert_item
Parameters: (item_id, item_count, item_enhance, item_level, item_flag)
Usage: inserts an item with specified values into function caller's inventory.
Also mayy work from GS but only for character that was the last who taken an effect of learn_all_skill() function (see also).
Returns nil.
Usage: inserts an item with specified values into function caller's inventory.
Also mayy work from GS but only for character that was the last who taken an effect of learn_all_skill() function (see also).
Returns nil.
and a function that is not stored in functions list category of a GS:
stat
Parameters: (charname)
Usage: prints character's name, client's IP and ingame coordinates. Works if a character is online.
Returns nil.
Usage: prints character's name, client's IP and ingame coordinates. Works if a character is online.
Returns nil.
Lets get it pushed. Or maybe sticked? oO