{"action":"created","issue":{"url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/2","labels_url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/2/comments","events_url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/2/events","html_url":"https://github.com/FaustVlll/monster_spawn/issues/2","id":104643101,"number":2,"title":"Img not found","user":{"login":"mirivlad","id":742619,"avatar_url":"https://avatars.githubusercontent.com/u/742619?v=3","gravatar_id":"","url":"https://api.github.com/users/mirivlad","html_url":"https://github.com/mirivlad","followers_url":"https://api.github.com/users/mirivlad/followers","following_url":"https://api.github.com/users/mirivlad/following{/other_user}","gists_url":"https://api.github.com/users/mirivlad/gists{/gist_id}","starred_url":"https://api.github.com/users/mirivlad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirivlad/subscriptions","organizations_url":"https://api.github.com/users/mirivlad/orgs","repos_url":"https://api.github.com/users/mirivlad/repos","events_url":"https://api.github.com/users/mirivlad/events{/privacy}","received_events_url":"https://api.github.com/users/mirivlad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T08:01:48Z","updated_at":"2015-09-03T11:17:54Z","closed_at":null,"body":"Hello. I have some problem with this module. In this string:\r\n`<img src=\"<?=npcImage($npc->sprite) ? npcImage($npc->sprite) : ''?>\" />`\r\nIn Db from `npcs`  table we get sprite number from 1 to 8 (but sprites great more!) and in data/NPCs we have images from 45.gif and more. How to fix this?"},"comment":{"url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/comments/137410805","html_url":"https://github.com/FaustVlll/monster_spawn/issues/2#issuecomment-137410805","issue_url":"https://api.github.com/repos/FaustVlll/monster_spawn/issues/2","id":137410805,"user":{"login":"FaustVlll","id":3328895,"avatar_url":"https://avatars.githubusercontent.com/u/3328895?v=3","gravatar_id":"","url":"https://api.github.com/users/FaustVlll","html_url":"https://github.com/FaustVlll","followers_url":"https://api.github.com/users/FaustVlll/followers","following_url":"https://api.github.com/users/FaustVlll/following{/other_user}","gists_url":"https://api.github.com/users/FaustVlll/gists{/gist_id}","starred_url":"https://api.github.com/users/FaustVlll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FaustVlll/subscriptions","organizations_url":"https://api.github.com/users/FaustVlll/orgs","repos_url":"https://api.github.com/users/FaustVlll/repos","events_url":"https://api.github.com/users/FaustVlll/events{/privacy}","received_events_url":"https://api.github.com/users/FaustVlll/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T11:17:54Z","updated_at":"2015-09-03T11:17:54Z","body":"А есть база с данными по названию - ID спрайта?\r\nЕсли есть, то думаю будет проще всего написать какой нибудь скриптик по переименованию файлов (сменить ИД на названия), и в файле **maps_spawn/modules/admin_spawn/index.php**\r\nСтроку\r\n```\r\n`sprite` smallint(4) NOT NULL,\r\n```\r\nзаменить на \r\n```\r\n`sprite` varchar(20) NOT NULL,\r\n```\r\nИ удалить и пересоздать базы.\r\nПосле этого в базу должны писаться полное имя, а не только цифра."}}