[Info] Taming-Calculation

07/24/2019 17:49 InkDevil#1
I've decided to upload all of my informative threads as PDF-files.
So also this thread.
I hope it's still helpful :)
07/24/2019 18:18 ThunderNikk#2
So much for the hidden modifier that is created when you make a character.

Take that all you conspiracy theorists!
07/26/2019 12:08 YuhaBah#3
Quote:
Originally Posted by ThunderNikk View Post
So much for the hidden modifier that is created when you make a character.

Take that all you conspiracy theorists!
You forgot about modifiers, when your char is naked and hit with other weapon in the rainy day, when no rates on server and online is small!:D:D
08/05/2019 11:49 Marschall83#4
Thank you for this formula. This fits the taming chances I`ve heard/read over the years.

Just for my understanding. Why does this come so late (after almost 13 years)?
Was this peace of code hard to find?
03/10/2020 22:21 EroGamer#5
Quote:
Originally Posted by InkDevil View Post
Update for 9.4+ Server:

Code:
f_chance = (x * ( y * var1 + z * var2 + 1) * 100) * 10.000

If char wears crystal glasses:
f_chance = f_chance + 10.000

if char wears crystal sword:
f_chance  = f_chance  + 10.000

if char wears emblem:
f_chance  = f_chance + 10.000
So how to edit this calculation and make tame rate 100% on P-Server?!
03/10/2020 22:43 SilentWisdom#6
Quote:
Originally Posted by EroGamer View Post
So how to edit this calculation and make tame rate 100% on P-Server?!
Open source for gs -> find the formula -> edit -> compile -> profit
03/11/2020 14:43 EroGamer#7
Quote:
Originally Posted by SilentWisdom View Post
Open source for gs -> find the formula -> edit -> compile -> profit
The formula supposed to be lua file, right? Searched insides lua files but couldn't find it, so I should add it on new lua file or on any existing lua file and save it?!
03/11/2020 17:35 ThunderNikk#8
You could really just increase the taming chance in monster resource and make it 100%

I think the value would actually need to be 1.00 for that.

The calculation id for trying to figure out the probability of a tame when it is not at 100% with all of the in game modifiers and how they would affect it.
07/17/2020 06:20 TalHalven#9
I have zero knowledge of working with sql. How would I write a query that would change the taming chance to 50% for tamable creatures? It's been nearly 30 years since I've even tried working with a database.

EDIT: Never mind I got off my lazy arse and did it manually
07/17/2020 15:22 ThunderNikk#10
update arcadia.dbo.monsterresource set taming_percentage = '0.500' where

and your where clause could target specific monster types or specific taming percentages you want to change or specific mob IDs

examples

where model like 'ain_hawkman%'

with the percent as a wild card it will adjust all hawkmen

or

where taming_percentage > '0.0000'

will adjust any taming percentage in the database that has a setting to 0.5000
07/18/2020 00:27 TalHalven#11
Thanks for that much appreciated.
04/28/2023 06:03 tanos77#12
Hello, I have been testing my local server and the GM tools, the problem I have is that when I place cards from pet+1 to +5 onwards they come out gray and cannot be used... what is this error due to?
04/28/2023 12:15 ThunderNikk#13
Inserting staged pets by insert item command for a tamed card inserts a broken tamed card and it needs to be repaired.

A better way to do it would be "insert summon by summon ID" and I dont know where it is buried in the forum at the moment.

If someone else hasnt helped out by the time I get out of work I will dig around and find the script and the command syntax in my files.
04/28/2023 15:48 InkDevil#14
Quote:
Originally Posted by ThunderNikk View Post
Inserting staged pets by insert item command for a tamed card inserts a broken tamed card and it needs to be repaired.

A better way to do it would be "insert summon by summon ID" and I dont know where it is buried in the forum at the moment.

If someone else hasnt helped out by the time I get out of work I will dig around and find the script and the command syntax in my files.
Insert summon by summoncode or via monstercode basically adds a summon on s0.
You need to modify it, like that way :
Code:
function insert_tamed_creature(type,code,enhance,card_id)
	
	if type == 1 then 					
		insert_item(card_id,1,0,0,-2147483648)
	elseif type == 2 then 					
		insert_summon_by_summon_id(code)
	else 						
		insert_summon_by_monster_id(code)
	end
	
	if enhance > 0 then
		modify_creature_enhance(card_id,enhance)
	end
	
end

function modify_creature_enhance(card_id,enhance)

	local card_array = get_item_handle_list(card_id)
	local new_card = table.getn(card_array)
	set_item_enhance(card_array[new_card],enhance)
	
end