Witam.
1.W docu jest [lua]getPlayerPosition(cid)[/lua] lecz jak srpawdzi?, ?e gracz jest na pozycji np. x=100 y=200 z=3?
2. Jak sprawdzi? czy na danej pozycji jest item?
Mam kod:[lua]if(getTileItemById({x=996, y=997, z=5}, 2696)) then
doBroadcastMessage("asg!", MESSAGE_EVENT_ADVANCE)
end[/lua]
Lecz ciagle sie wyswietla ta nazwa gdy nie ma itemu z IDem 2696
1.W docu jest [lua]getPlayerPosition(cid)[/lua] lecz jak srpawdzi?, ?e gracz jest na pozycji np. x=100 y=200 z=3?
2. Jak sprawdzi? czy na danej pozycji jest item?
Mam kod:[lua]if(getTileItemById({x=996, y=997, z=5}, 2696)) then
doBroadcastMessage("asg!", MESSAGE_EVENT_ADVANCE)
end[/lua]
Lecz ciagle sie wyswietla ta nazwa gdy nie ma itemu z IDem 2696
.