I've decided to upload all of my informative threads as PDF-files.
So also this thread.
I hope it's still helpful :)
So also this thread.
I hope it's still helpful :)
So how to edit this calculation and make tame rate 100% on P-Server?!Quote:
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
Insert summon by summoncode or via monstercode basically adds a summon on s0.Quote:
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.
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