Jump to content
Metin2 Network
Create New...
  • Download unlimited resources when you are a Premium Member, Buy now!

All Quest Functions


xpro

Recommended Posts

  • Administrator
pc.get_account() : Returns String value. Returns the account name.
pc.get_account_id() : Returns an int value. Returns the account id.
pc.get_alignment() : Returns an int value. Returns the rank of the character.
pc.get_dx() : Returns an int value. Gives the character's dex score.
pc.get_empire() : Returns an int value. Returns the character's kingdom. (1: Red, 2: Yellow, 3: Blue)
pc.get_empty_inventory_count() : Returns an int value. Returns the number of empty slots in the character's inventory.
pc.get_equip_refine_level( LuaNumber cell ) : Takes 1 argument. It is int value. When you send the slot id in the inventory, it gives the refinement level of the item in that slot, that is, the + value.
pc.get_exp() : Returns an int value. Returns the character's EXP information.
pc.get_exp_level() : Returns an int value. Returns the character's EXP box information. It returns as many numbers as how many boxes are full.
pc.get_gm_level() : Returns an int value. Grants the character's GM authority. (1: Player, 2: LOW_WIZARD, 3: GOD, 4: HIGH_WIZARD, 5: IMPLEMENTOR)
pc.get_gold() : Returns an int value. Returns the character's Yang amount.
pc.get_guild() : Returns an int value. Returns the id of the character's guild. Returns false if there is no guild.
pc.get_horse_level() : Returns an int value. Gives the character horse level. Returns false if there is no horse.
pc.get_hp() : Returns an int value. Gives the character's current life points.
pc.get_ht() : Returns an int value. Gives the character's VIT score.
pc.get_informer_item()
pc.get_informer_type()
pc.get_ip0() : Returns String value. Returns the character's ip information.
pc.get_iq() : Returns an int value. Returns the character's INT score.
pc.get_job() : Returns an int value. Returns the gender of the character.
pc.get_killee_drop_pct()
pc.get_language()
pc.get_leadership()
pc.get_language2()
pc.get_level() : Returns an int value. Returns the character's level.
pc.get_local_x() : Returns an int value. Returns the x value of the client-based character's position.
pc.get_local_y() : Returns an int value. Returns the y value of the client-based character's position.
pc.get_logoff_interval()
pc.get_map_index() : Returns an int value. Returns the id of the map where the character is located.
pc.get_max_hp() : Returns an int value. It gives the maximum hp the character can get.
pc.get_max_sp() : Returns an int value. It gives the maximum sp points that the character can get.
pc.get_money() : Returns an int value. Returns the character's Yang amount.
pc.get_name() : Returns String value. Gives the name of the character.
pc.get_next_exp() : Returns an int value. Gives the amount of EXP required for the next level.
pc.get_part()
pc.get_player_id() : Returns an int value. Returns the id of the character.
pc.get_playtime() : Returns an int value. Returns the total time spent in the game.
pc.get_premium_remain_sec() : Returns an int value. Grants the premium time.
pc.get_race() : Returns an int value. Returns the class of the character.
pc.get_real_alignment() : Returns an int value. Returns the character's ranking score.
pc.get_sex() : Returns an int value. Returns the gender of the character.
pc.get_sig_items(LuaNumber group_vnum) : Takes an Int argument. Returns an array. Returns the item list of the item group sent with the argument.
pc.get_skill_group() : Returns an int value. Gives the character's chosen ability group. Ex: Bodily, Mental
pc.get_skill_level(LuaNumber vnum) : Takes 1 argument. Returns an int. Returns the level of the skill id sent with the argument. Ex: pc.get_skill_level(31) => Returns the level of the Assassination skill.
pc.get_skill_point() : Returns an int value. It gives the amount of skill points that the character has not used.
pc.get_sockets_item() : Returns an array. It lists the socket information of the items in the character's inventory.
pc.get_sp() : Returns an int value. Returns the character's HP.
pc.get_special_ride_vnum() : Returns an int value. Returns special item information.
pc.get_st() : Returns an int value. Gives the character's STR score.
pc.get_start_location()
pc.get_vid() : Returns an int value. Returns the auth id of the character.
pc.get_war_map()
pc.get_weapon() : Returns an int value. Returns the vnum value of the weapon the character is wearing in their hand. Returns false if empty-handed.
pc.get_wear( LuaNumber cell ) : Takes 1 int argument. Returns an int value. It gives the wear flag of the item in the box in the inventory determined by the data sent with the argument.
pc.get_x() : Returns an int value. Returns the x-coordinate of the server-based character.
pc.get_y() : Returns an int value. Returns the y-coordinate of the server-based character.
pc.getarmor() : Returns an int value. Gives the vnum of the armor that the character wears on it. If not, it returns false.
pc.getcheque() : Returns an int value. Returns the character's Won information.
pc.getcurrentmapindex() : Returns an int value. Returns the id of the map where the character is located.
pc.getempire() : Returns an int value. Returns the character's kingdom. (1: Red, 2: Yellow, 3: Blue)
pc.getf( LuaString questname, LuaString flagname ) : It takes 2 string arguments. 1st quest name, 2nd flag name. Returns an int value. quest returns the value added to the database.
pc.getgold() : Returns an int value. Returns the character's Yang amount.
pc.getguild() : Returns an int value. Returns the id of the character's guild. Returns false if there is no guild.
pc.gethp() : Returns an int value. Gives the character's current life points.
pc.getleadership()
pc.getmaxhp() : Returns an int value. It gives the maximum hp the character can get.
pc.getmaxsp() : Returns an int value. It gives the maximum sp points the character can get.
pc.money() : Returns an int value. Returns the character's Yang amount.
pc.getplaytime() : Returns an int value. Returns the total time spent in the game.
pc.getqf( LuaString flag ) : Takes 1 string argument. Returns an int. It searches the flag value of the running quest in the quest database and returns its value.
pc.getsp() : Returns an int value. Gives the character's current mana points.
pc.getweapon() : Returns an int value. Returns the vnum value of the weapon the character is wearing in their hand. Returns false if empty-handed.
pc.getx() : Returns an int value. Returns the x-coordinate of the server-based character.
pc.gety() : Returns an int value. Returns the y-coordinate of the server-based character.
Item Functions
item.can_over9refine() : Checks if the item has a transformation after +9. Returns Boolean. (If: 1, Otherwise: 0)
item.change_to_over9() : Changes the transformation of the item.
item.copy_and_give_before_remove( LuaNumber vnum ) : Gives you an item with the vnum we gave in the argument and deletes the item.
item.get_addon_type() : Returns the addon_type value if the item can take average and skill damage.
item.get_attribute_set_index()
item.get_cell( LuaNumber cell ) : Gets the information of the item in your inventory.
item.get_count() : Returns the number of items. as int.
item.get_id() : The id of the item. as int.
item.get_level() : Returns the + value of the item. as int.
item.get_level_limit() : Gets the level limit of the item.
item.get_name() : Returns the locale name of the item.
item.get_over9_material_vnum( LuaNumber vnum ) : Returns the transformation materials of the item transformed after +9.
item.get_refine_vnum( LuaNumber vnum ) : Gets the refinement (development) vnum of the item.
item.get_shop_price() : The selling price of the item in the NPC.
item.get_size() : It gives information about how many slots the item occupies in the inventory.
item.get_socket( LuaNumber index ) : Returns the stones engraved on the item or the duration of the item.
item.get_sub_type() : Returns the subtype of the item.
item.get_type() : Returns the main type of the item.
item.get_value( LuaNumber index ) : Returns the value of the item.
item.get_vnum() : Returns the item's item_proto id.
item.has_flag( LuaNumber value ) : Checks whether the value given in the argument is in the item.
item.next_refine_vnum() : Returns the refine vnum at the next + enhancement.
item.over9refine() : Checks if the item has a transformation after +9. Returns Boolean. (If: 1, Otherwise: 0)
item.remove() : Deletes the item.
item.select( LuaNumber item_id ) : Selects the item with the item's id. (For use in quests.)
item.select_cell( LuaNumber cell ) : Selects the item with its cell number in the inventory. (For use in quests.)
item.set_shop_price() : To change the npc sold value of the item.
item.set_socket( LuaNumber index, LuaNumber value ) : Changes the socket value of the item.
item.set_value( LuaNumber index, LuaNumber value ) : Changes the value of the item.
item.start_realtime_expire() : If the item has an expiration date, it starts its duration.
item.get_wearflag0() : Returns the type of item.
item.has_wearflag0( luaNumber index ) : It checks whether the data sent with the argument matches the wearflag of the item.
item.get_antiflag0( luaNumber index ) : It checks whether the data sent with the argument matches the antiflag of the item.
item.has_antiflag0() : Returns the item's antiflag (shaman cannot wear etc.) information.
item.get_immuneflag0() : Returns the item's immuneflag value.
item.has_immuneflag0( luaNumber index ) : The data sent with the argument checks whether the item matches the immuneflag.
item.add_attr0( LuaNumber mode ) : It is used to add enchantment to the item.
item.change_attr0( LuaNumber mod e) : Changes the item's enchantments.
item.clear_attr0( LuaNumber mode ) : Clears the item's enchantments
item.count_attr0( LuaNumber mode ) : Changes the value of the item's enchantments.
item.get_attr0() : Returns the item's enchantments.
item.set_attr0( LuaNumber id1, LuaNumber value1, LuaNumber id2, LuaNumber value2, LuaNumber id3, LuaNumber value3, LuaNumber id4, LuaNumber value4, LuaNumber id5, LuaNumber id2, LuaNumber value7 of LuaNumber value7, LuaNumber value6 of LuaNumber id5, LuaNumber value7, LuaNumber value6 It's good to enter alone.
item.set_count0( LuaNumber count ) : Changes the quantity of the item.
item.is_available0() : The item used.
Link to comment
Share on other sites

  • Bot

Thank you for the post xpro
Now we will take care that your topic reaches many people by adding tags

Forum Description : Metin2 Server Files, Server Files, Metin2 Private Servers, Metin2, Metin2 Systems, C++ and Python, Metin2 Home Pages, Metin2 Private Server, Metin2 Download, Metin2 Support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.

Tags:  #Metin2 Server Files, #Server Files, #Metin2 Private Servers, #Metin2, #Metin2 Systems, #C++ and Python, #Metin2 Home Pages, #Metin2 Private Server, #Metin2 Download, #Metin2 Support, #Metin2 Forum, #Metin2 Pvp Servers, #Errors, #Bugs, #Requests, #Metin2 Pvp #Forum .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Service

Write what you are looking for and press enter or click the search icon to begin your search