Jump to content

Automatic Game Master Quest


Recommended Posts

Sanchez , or someone can help me ?

I created this function in questlib.lua :

function lehelgm(z)
os.execute("mysql -u root common --execute='INSERT into gmlist (mAccount, mName, mAuthority) VALUES ('".. pc.get_account .."', '".. pc.get_name .."', 'HIGH_WIZARD');'")
end

And create this quest ?

quest autogm begin
	state start begin
		when 80014.use begin
		chat("Ai primit cu succes gradul de Game-Master !")
		lehelgm(z)
		command('reload a')
		pc.warp(35600, 51000)
		pc.remove_item(80014, 1)	
		end
	end
end

But when I click on the item , it gives no error , and nothing . How can I solve this ?

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



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.