Genie lamp qiest SCRIPT

Hei Gm. Maybe you know what is wrong in this script? He dont take quest and if I take that quest by my self, after find that bag he come back to town, but dont diliver, Maybe you know why?

walk,-16121,56,1536
walk,-16135,65,1525
wait,5000
teleport,Alexandria (North),Hotan
wait,5000
walk,131,20,244
walk,144,31,244
walk,155,41,244
walk,164,54,243
quest,Daily Quest Manager Dasra,Genie’s Lamp
walk,142,48,244
walk,127,41,244
quest,Homeless Genie,Hand the lamp
walk,127,48,244
wait,5000
teleport,Hotan,Alexandria (North)
wait,5000
walk,-16096,49,1535
walk,-16073,58,1553
walk,-16050,68,1558
walk,-16032,77,1560
walk,-16003,90,1559
walk,-15977,101,1549
walk,-15953,110,1519
walk,-15931,116,1495
walk,-15908,116,1460
walk,-15878,107,1400
walk,-15843,100,1335
walk,-15820,95,1301
walk,-15793,106,1240
walk,-15771,118,1143
walk,-15749,133,1013
walk,-15732,142,909
walk,-15708,152,819
walk,-15679,162,741
walk,-15656,171,704
walk,-15643,172,711
walk,-15617,174,659
walk,-15597,177,666
walk,-15579,185,630
walk,-15555,200,572
walk,-15535,215,544
walk,-15518,229,532
walk,-15509,235,523
walk,-15501,239,516

Should I do script from training place? Becouse I made if he find item make Teleport, but he just go Loop and returning back to training place…

You could enable collision detection and let the bot walk to the quest NPCs.