Lets ban the ppl that has to many stats
Its a BAN script not a simple delete from user_character.. it will ban the whole account..
Its not a stored procedure its just a "job".
Replace the MAX STATS with a stats that players can have at max reborn/lvl.
Replace the GM CHARACTER NOs with character no's for gms that can have offer the limit
PHP Code:
UPDATE account.dbo.user_profile
SET login_tag='N'
WHERE user_no IN(
SELECT user_no FROM character.dbo.user_character WHERE character_no IN(
SELECT DISTINCT character_no FROM character.dbo.user_character WHERE
wstr + wdex + wcon + wspr > MAX STATS
AND character_no NOT LIKE 'GM CHARACTER NOs'
AND character_no NOT LIKE 'GM CHARACTER NOs'
AND character_no NOT LIKE 'GM CHARACTER NOs'
))
Lets ban the ppl that has GM/ILLIGAL item in hes inventory
Its a BAN script not a simple delete from user_character.. it will ban the whole account....
Replace GM ITEM INDEX with index that are forbidden to have.
Replace CHARACTER NO with gm character_no that can have/wear that index.
PHP Code:
UPDATE account.dbo.user_profile
SET login_tag='N'
WHERE user_no IN(
SELECT user_no FROM character.dbo.user_character WHERE character_no IN(
SELECT DISTINCT character_no FROM character.dbo.user_bag WHERE
windex = 'GM ITEM INDEX'
AND character_no NOT LIKE 'GM CHARACTER NO'
AND character_no NOT LIKE 'GM CHARACTER NO'
AND character_no NOT LIKE 'GM CHARACTER NO'
))
If you just play a lil with this script you can make more ban scripts with it..
Its just a simple script, if you dont love it, it doesnt mean you can flame my, cuz you didnt pay my anything for it






