AMXX-BG.INFO d2lod.inc Functions

d2lod functions

All callable symbols documented in this include, grouped by declaration type.

Natives

Name Signature
dmg_kill_player native dmg_kill_player(id, attacker, Float:damage, weaponDescription[]) // Drops coins from give id/victim with specified classname and gold value stored in entity. native drop_coins(victim, classname[], goldvalue)
drop_coins native drop_coins(victim, classname[], goldvalue)
get_current_speed native Float:get_current_speed(id)
get_p_gold native get_p_gold(id)
get_p_gold_inventory native get_p_gold_inventory(id)
get_p_hero native get_p_hero(id)
get_p_in_safezone native bool:get_p_in_safezone(id)
get_p_item_count native get_p_item_count(id, item_id)
get_p_item_data native bool:get_p_item_data(id, data)
get_p_item_is_worn native get_p_item_is_worn(id, item_id)
get_p_item_wear_type native bool:get_p_item_wear_type(id, type)
get_p_level native get_p_level(id)
get_p_mana native get_p_mana(id)
get_p_maxhealth native get_p_maxhealth(id)
get_p_skill native get_p_skill(id, skill_id)
get_p_vitality native get_p_vitality(id)
get_p_xp native get_p_xp(id)
get_player_logged native get_player_logged(id)
is_freezetime native is_freezetime()
is_p_protected native bool:is_p_protected(id)
IsPlayerNearByMonster native bool:IsPlayerNearByMonster(id)
MAX_ITEMS_ACTIVE native MAX_ITEMS_ACTIVE()
MAX_SKILLS_ACTIVE native MAX_SKILLS_ACTIVE()
reset_p_model native reset_p_model(id)
set_p_gold native set_p_gold(id, value)
set_p_gold_inventory native set_p_gold_inventory(id, value)
set_p_mana native set_p_mana(id, value)
set_p_maxhealth native set_p_maxhealth(id, value)
set_p_vitality native set_p_vitality(id, value)
set_p_xp native set_p_xp(id, value)
set_user_model native set_user_model(id, const model[])

Stocks

Name Signature
client_printcolor stock client_printcolor(const id, const input[], any:...) {
find_itemindex stock find_itemindex() {
find_itemplugin stock find_itemplugin() {
register_d2_skill stock register_d2_skill(skill_name[], skill_desc[], skill_hero, skill_level, skill_display) {

Forwards

Name Signature
d2_dagger_poisondamage forward d2_dagger_poisondamage(victim, attacker, Float:iDamage[1])
d2_logged forward d2_logged(id, log_type)
d2_ranged_actshoot forward d2_ranged_actshoot(id, entity)
d2_ranged_takedamage forward d2_ranged_takedamage(victim, attacker, Float:iDamage[1])
d2_skill_fired forward d2_skill_fired(id)
d2_skill_selected forward d2_skill_selected(id, skill_id)
d2_skill_takedamage forward d2_skill_takedamage(victim, attacker, Float:iDamage[1])
d2_takedamage forward d2_takedamage(victim, attacker, Float:iDamage[1])