Reworked script_getfuncname - Fixes bugreport:7721

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17356 54d463be-8e91-2dee-dedb-b68131a5f0ec