Jump to content

Crontab for empty log + quest give DM


Recommended Posts

Hi,

 

I have two questions ^^

I need a crontab for empty this table :

 

 

I need crontab for So that I can automatically emptied.

 

OdiKII9.png

 

And second question :

It's possible change this quest :

quest bo_is begin
	state start begin
		function give_bonus_cash(account, count)
			mysql_query("UPDATE account.account SET cash=cash+'"..count.."' WHERE id='"..account.."'")
			syschat("Vous recevez "..count.." marques.")
		end
		when 80014.use or 80015.use or 80016.use or 80017.use begin
			local tableByVnum = 
			{
				[80014] = 100,
				[80015] = 500,
				[80016] = 1000,
			}
			bourse_is.give_bonus_cash(pc.get_account_id(), tableByVnum[item.get_vnum()])
			pc.remove_item(item.get_vnum(), 1)
		end
	end
end

For change the mysql_querry ?

I need this quest, but not use mysql_query. It's possible ?

 

Thanks ^^

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

                -- syntax : pc.charge_cash(amount, charge_type)
                -- warning:     1. 'charge_type' : "cash"(default) | "mileage"
                --            2. 'amount' must be positive number.

                pc.charge_cash(1000, "cash")

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.