Jump to content
  • 0

OnBuyItem not work when i call shop with cashshop?


XenaNyx

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

i try to write cashshop log like this

 

npcshopattach "CASH_SEL_1,1;
callshop "CASH_SEL_1,1;


OnBuyItem:
    if(getarraysize(@bought_quantity) >= 1){
        query_sql ( "INSERT INTO `"+$SQLLOGDB$+"`.`cashshop_log` (`account_id`, `char_id`, `item_id`, `amount`, `cash_balance`, `time`) VALUES ( '"+getcharid(3)+"', '"+getcharid(0)+"', '"+@bought_nameid+"', '"+@bought_quantity+"', '"+#CASHPOINTS+"', 'NOW()');" );
    }


morroc,159,191,6    duplicate(CashShop)    Top#1    910
-    cashshop    CASH_SEL_1    -,501:-1
 

 

when i put shop line to cashshop script at OnBuyItem not work but when i change cashshop to shop at OnBuyItem it's work, this's bug or not?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

Already know, just edit some src because server not support for cashshop

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...