Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 02.11.2006, 00:26   #11
astrid
Архивный участник
 
Join Date: May 2006
Posts: 55
Default

Quote:
Originally Posted by hel View Post
astrid:
O_O
Wasn't know it earlier...
Do you know, how to get unique id, using itemdata id (or item_pch)?
But... Additem uses item_id from itemdata?
make simple query to user_item table.

something like:
Code:
SELECT user_item.item_id as uid FROM user_item INNER JOIN user_data ON user_item.char_id = user_data.char_id WHERE (user_item.item_type = "+itemid+") AND (user_data.char_id = "+charid+") and user_item.warehouse="+warehouse
i suggest you to make stored procedure in db if you use it often.

//rus
с моим английским хрен что поймешь наверно короче просто нужно сделать запрос что я привел выше (синтаксис не пхпшный но я думаю понятна суть). если используешь часто заведи сторед процедуру в БД.
additem2 использует просто итемид (тип предмета) 57 для адена например.
astrid is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 15:06.