Click item -> update in DB
#1

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?

#2

Wrong section.

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

Thanks

#3
Also, I am looking for help with the issue Wink

#4
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
 

#5


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?

#6

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



Forum Jump:


Users browsing this thread: 1 Guest(s)