How to delete all cashpoints?

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
Can someone post any method how to delete cashpoint using sql or script?

By the way, how to check player cashpoint in sql database? 

 
Last edited by a moderator:
Here's a script @@mrlongshen.
 

- script CashReset -1,{OnPCLoginEvent: if( !#CashReset ) { #CASHPOINTS = 0;#CashReset++;} elseend;}


That way when they login the next time Cash Points will be 0'd out.

I'm curious what happened? Some abuse of Cash Point script?

 
Last edited by a moderator:
@@Winterfox thanks alot

@@Aeromesi Thanks bro ! hehe.

There are some player have many cash. About 10k above. its all my fault actually. haha

I use some script from @@Winterfox, mvp and pvp reward that get a cash point haha. So the problem is there are player have imba cashpoint hehe. I need to reset back. I know they will angry, but I have give them some special item. hehe 
default_sleep.png
.

By the way how to check player cashpoint or kafrapoint ? 

 
Last edited by a moderator:
Here's a script @@mrlongshen.

- script CashReset -1,{OnPCLoginEvent: if( !#CashReset ) { #CASHPOINTS = 0;#CashReset++;} elseend;}


That way when they login the next time Cash Points will be 0'd out.

I'm curious what happened? Some abuse of Cash Point script?
You could make that a bit better like that:

- script CashReset -1,{ OnPCLoginEvent: if( #CashReset ) end; #CASHPOINTS = 0; #CashReset = 1;}
@@Aeromesi there are no such table for cash point..
The table you are searching for is acc_reg_num_db where account_id is the account of the user of course, key is #CASHPOINTS and value is the current amount of cashpoints the user has. If there is no entry for a specific user that means he has 0.

The same applies to kafra points you just have to switch the key to #KAFRAPOINTS.

Instead of a script you also could use this sql query to delete all cashpoints:

Code:
DELETE FROM acc_reg_num_db WHERE key = "#CASHPOINTS"
 
Last edited by a moderator:
Back
Top