![]() |
Help Ai
I have this code
Code:
handler 10 // MY_DYING12/01/2005 04:02:xx.xx1, Kicked for invalid items. (nick)(276) Who know how fix this error? |
Try this
Code:
handler 10 // MY_DYING If u kill many mobs simultaneously, OwnItemCount() will return the items amount to all mobs handler. If mobs count > items count, then ur AI code will try to delete an nonexistent item => error. IMHO To check the OwnItemCount(), DeleteItem1() func`s work, try this: ... c1=GetLastAttacker(); SayInt(OwnItemCount(c1)); DeleteItem1(c1,...); SayInt(OwnItemCount(c1)); ... U should get the same value after both SayInt(OwnItemCount(c1)) functions execution. IMHO, CacheD.exe :) |
Quote:
|
Quote:
From my experience: two sequential DeleteItem() calls cause client disconnect and L2server error: kicked for invalid items (items more than two in PC inventory) <rus>Можешь поделиться как ты решил проблему? У меня два вызова подряд функции DeleteItem() вызывают kicked for invalid items, даже тогда когда итемов более двух. PS: в коде, что я привел в своем ответе нет оператора "and". Спасибо за инфу про ссылки<rus> |
Quote:
короче если убивать по одному все отлично пашет. а вот если сразу несколько...) да и заметил еще такую ерунду, что если даже прокатывает убийство большого количества мобов и не кикает, все равно последнее действие это deleteitem. То что я написал выше, что проблема решена, это я погорячился)<rus> Code:
handler 10 // MY_DYING |
digital...
could you please re-add the specific language sections. this here is pretty annoying. :( and i guess im not the only one who feels so... |
+1 :mrgreen:
|
| All times are GMT. The time now is 15:39. |