Jump to content
  • 0

Crontab for empty log + quest give DM


Elijah

Question

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 ^^

Link to comment

6 answers to this question

Recommended Posts

  • 0

                -- 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
  • 0
quest bo_is begin
    state start begin
        when 80014.use or 80015.use or 80016.use or 80017.use begin
            local tableByVnum =
            {
                [80014] = 100,
                [80015] = 500,
                [80016] = 1000,
            }
            pc.charge_cash(tableByVnum[item.get_vnum()], "cash")
            pc.remove_item(item.get_vnum(), 1)
        end
    end
end
  • Love 1
Link to comment
  • 0

Ther'is one error:

80017.use begin
local tableByVnum =
            {
                [80014] = 100,
                [80015] = 500,
                [80016] = 1000,
            }

80017 In tableByVnum not exist

Link to comment
  • 0

It's work for the quest ! Thanks you ! ;D :)

 

And for my second problem, Help me please :P ^^


I need a crontab for empty this table :

 

 

I need crontab for So that I can automatically emptied.

 

OdiKII9.png

 

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.