Jump to content

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I've got this, but problem some functions. for example: os.execute command.

When i restart my server the os.execute command is good(Dragon ticket.)

But some hours go wrong. :(

 

My quest:

 

quest start begin

state start begin

when 99995.use begin
say("Gratulálok! A jóváírás sikeres volt.")
syschat("A számládhoz jóváíródott 500 sárkány érme!")
pc.remove_item(99995, 1)
-- local ID = pc.get_account_id()
-- local nev = pc.get_player_id()
-- local KARI = pc.get_name()
-- local item99995 = 99995
-- mysql_query("INSERT INTO TestPVPaccount.dragoncoins_log VALUES ("..ID..",'"..nev.."',NOW(),"..item99995..");")
-- mysql_query("UPDATE TestPVPaccount.account SET coins = coins + 500 WHERE id = "..ID..";")
os.execute("php /usr/home/teszt/pvp/share/locale/germany/quest/dc.php "..pc.get_account_id().." "..pc.get_player_id().." 500 99995")
end
end
end
 
comment the mysql_query because this same wrong some hours....
i try os.execute but similar this.
 
 
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.