LCKB
Click item -> update in DB - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Click item -> update in DB (/showthread.php?tid=4687)



- Assasin - 01-11-2017


hi i have small problem.

 

 

i clicked my item ID and how to add database?

void do_Ex_NameChange_ASAD(CPC* ch, CNetMsg::SP& msg)
{
int itemindex;
switch(itemindex)
{
// 케릭 ì´ë¦„ 변경
case 11150://842 || 11150
{
if (ch->m_inventory.FindByDBIndex(11150, 0, 0) || ch->m_inventory.FindByDBIndex(11150, 0, 0))
{
std:Confusedtring query = boost:Confusedtr(boost::format(
"UPDATE t_users SET a_stash_password='55555555' WHERE a_idname='%s' LIMIT 1") % (const char *)ch->m_desc->m_idname);
DBManager::instance()->pushQueryForAuthDB(ch->m_desc->m_index, query);
}
}
break;
}
}

help my?




- Nymphetamine - 01-11-2017


Wrong section.

Moved. Check every section to see where the topic fits first of posting next time.

Thanks




- DYKTATOR - 01-11-2017

Also, I am looking for help with the issue Wink




- pwesty - 01-11-2017

switch(itemindex)
    {
    // 케릭 ì´ë¦„ 변경
    case 11150://842 || 11150

842 is name card change 11150 is nothing so make it 842 and see if that fixes your issue
 




- Assasin - 01-11-2017



switch(itemindex)

    {

    // 케릭 ì´ë¦„ 변경

    case 11150://842 || 11150

 

842 is name card change 11150 is nothing so make it 842 and see if that fixes your issue

 

I understand just how hard item to add to the base?




- pwesty - 01-11-2017


I understand just how hard item to add to the base?

Figuring out which itype it uses ETC or ONCE, can get this i believe it'll work correctly