Jump to content

[ Dead Download Link ] Vanilla Core 2.4.1 [ We Need You ]


Vanilla

Recommended Posts

 

 

game.mysql_query("SELECT coins from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] no works....Help plz.

 

There's no coins row in player.player, try account instead.

"SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1"

No. I add coins player.player.

 

Try like that :

local test_query = game.mysql_query("SELECT coins from player.player WHERE id="..pc.get_player_id().." LIMIT 1")
           
local player_coin = test_query.coins

 

  • Love 1
Link to comment
Share on other sites

 

 

 

game.mysql_query("SELECT coins from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] no works....Help plz.

 

There's no coins row in player.player, try account instead.

"SELECT coins from account.account WHERE id="..pc.get_account_id().." LIMIT 1"

No. I add coins player.player.

 

Try like that :

local test_query = game.mysql_query("SELECT coins from player.player WHERE id="..pc.get_player_id().." LIMIT 1")
           
local player_coin = test_query.coins

thx. Work )

Link to comment
Share on other sites

  • Premium

If there isn't a function to set the success percentage of stones i suggest you to do it.

Or maybe to enable setting it at 100% directly, so:

stone_success_pct: unsigned int (set the success percentage of inserting a stone [0-100%])
stones_always_add: 1/0 (100% success pct of inserting a stone if enabled)

i also suggest this:

minerals_success_pct: unsigned int (set the success percentage of inserting a mineral [0-100%])
minerals_always_add: 1/0 (100% success pct of inserting a mineral if enabled)
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium

i've got some problem with those functions:

MIN_ADDON_DSS: int
Sets the minimum normal hit bonus dmg you can have.
 
MAX_ADDON_DSS: int
Sets the maximum normal hit bonus dmg you can have.

They're not int, they're smallint, the maximum is 32767, as the shell says.

 

Metin2's official damages can go up to > 200k, i suggest you to put "int" instead of "smallint".

 

if i put in CONFIG

 

MIN_ADDON_FKS: 1

MAX_ADDON_FKS: 20000

MIN_ADDON_DSS: 1

MAX_ADDON_DSS: 20000

 

The shell returns :

 

MIN_ADDON_FKS: 1

MAX_ADDON_FKS: 20000

MIN_ADDON_DSS: 20000

 

Strange, huh?

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

No, the db core in combination with non-vanilla db-cores will make a whole mess. The player-table is bigger than in the normal database cache (and in the normal game file) so they're not in synchron anymore. The dbcache will send the table for every player to the gamecore, the gamecore will read it from up to down but some parts like the level have now a bigger data type. That's why the gamecore will read a part of the level and then assume the rest of the bytes are allocated to the next attribute. It'll lead into a complete mess, but you won't be able to enjoy that because you're going to get kicked everytime you try to log in because the gamefile can't find the strange x-y-coordinates (+ map index) it fetched from the table.

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

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.