function open_npc(tab) OpenBattleSelect() if tab ~= nil and tab ~= "" then SetBattleSelectInfo(3, tab) else SetBattleSelectInfo(3, "") end end