Page 85 of 112 FirstFirst ... 3575838485868795 ... LastLast
Results 841 to 850 of 1117

Thread: My scripts

  1. #841

    Default

    Can you adjust the formula then? I love ;tpick but I'd like to get as much xp as possible. :X

  2. #842

    Default

    Quote Originally Posted by sellstuff1 View Post
    Can you adjust the formula then? I love ;tpick but I'd like to get as much xp as possible. :X
    Are you suggesting MY formula is wrong? Why I never :O

    Do we have a source for the formula? I got the formula from the Wiki and that's the formula still up on there. If there is a more recent accurate formula I'll use that one.

  3. #843

    Default

    Maxlock uses
    Code:
    if Spells.minorelemental >= 3
    			this_lock.push((((Stats.level / 2) + (Skills.pickinglocks / 10) + (Stats.dex[1] / 2) + (Stats.int[1] / 2) + 30 + Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1]) * mod).round - 30)
    		else
    			this_lock.push((mod * (((Stats.level / 2) + (Skills.pickinglocks / 10) + (Stats.dex[1] / 2) + (Stats.int[1] / 2) + 30) / 2 + Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1])).round - 30)
    and that corroborates with ;pickerassistant's

    Code:
    	def self.suggestPick(lockSize)
    		skillBonus = Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1];
    		multiplier = (((50 + lockSize.to_i.abs)/skillBonus.to_f) * 20).round / 20.0
    		if multiplier > 2.60
    			if(Spell[403].known?)
    				pick_lore = (Stats.level / 2) + (Skills.to_bonus(Skills.pickinglocks) / 10) + (Stats.dex[1]) + (Spells.minorelemental / 4)
    				pick_lore = Skills.pickinglocks if pick_lore > Skills.pickinglocks
    				multiplier = (((50 + lockSize.to_i.abs)/(skillBonus + pick_lore).to_f) * 20).round / 20.0
    			end
    			if multiplier > 2.60
    				return "You are not able to pick this lock."
    			else
    				suggestion = self.picks.select{ |x| x[1] >= multiplier}.first.first
    				return "I would recommend you use a " + suggestion + " lockpick or better AND locklore";		
    			end
    		end		
    		suggestion = self.picks.select{ |x| x[1] >= multiplier}.first.first
    		return "I would recommend you use a " + suggestion + " lockpick or better.";
    and both of those seem pretty accurate to me. If I follow their recommendations on lock size I don't break picks except on fumbles, and I get 4-5s RT for every lock I pick (which means maximum amount of XP). Current formula is definitely broken though if it wants me to use a lockpick 6 steps higher than the suggestion by both of these programs.

    Thanks for looking into this!
    Last edited by sellstuff1; 09-02-2018 at 11:54 PM.

  4. #844

    Default

    Quote Originally Posted by sellstuff1 View Post
    Maxlock uses
    Code:
    if Spells.minorelemental >= 3
    			this_lock.push((((Stats.level / 2) + (Skills.pickinglocks / 10) + (Stats.dex[1] / 2) + (Stats.int[1] / 2) + 30 + Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1]) * mod).round - 30)
    		else
    			this_lock.push((mod * (((Stats.level / 2) + (Skills.pickinglocks / 10) + (Stats.dex[1] / 2) + (Stats.int[1] / 2) + 30) / 2 + Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1])).round - 30)
    and that corroborates with ;pickerassistant's

    Code:
    	def self.suggestPick(lockSize)
    		skillBonus = Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1];
    		multiplier = (((50 + lockSize.to_i.abs)/skillBonus.to_f) * 20).round / 20.0
    		if multiplier > 2.60
    			if(Spell[403].known?)
    				pick_lore = (Stats.level / 2) + (Skills.to_bonus(Skills.pickinglocks) / 10) + (Stats.dex[1]) + (Spells.minorelemental / 4)
    				pick_lore = Skills.pickinglocks if pick_lore > Skills.pickinglocks
    				multiplier = (((50 + lockSize.to_i.abs)/(skillBonus + pick_lore).to_f) * 20).round / 20.0
    			end
    			if multiplier > 2.60
    				return "You are not able to pick this lock."
    			else
    				suggestion = self.picks.select{ |x| x[1] >= multiplier}.first.first
    				return "I would recommend you use a " + suggestion + " lockpick or better AND locklore";		
    			end
    		end		
    		suggestion = self.picks.select{ |x| x[1] >= multiplier}.first.first
    		return "I would recommend you use a " + suggestion + " lockpick or better.";
    and both of those seem pretty accurate to me. If I follow their recommendations on lock size I don't break picks except on fumbles, and I get 4-5s RT for every lock I pick (which means maximum amount of XP). Current formula is definitely broken though if it wants me to use a lockpick 6 steps higher than the suggestion by both of these programs.

    Thanks for looking into this!
    this_lock.push(((Skills.to_bonus(Skills.pickingloc ks) + Stats.dex[1]) * mod).round - 30) -- This is ;maxlock's formula
    skillBonus = Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1]; -- This is ;pickerassistant's formula
    pick_skill = (Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1]) -- This is ;tpick's formula

    Really the only difference is ;maxlock calculates the pick modifier in the formula whereas the other two scripts do it elsewhere, but those all look the same too. The other difference is it looks like ;maxlock subtracts 30 from this value whereas the other two do not.

    This is the 403 formulas:

    this_lock.push((((Stats.level / 2) + (Skills.pickinglocks / 10) + (Stats.dex[1] / 2) + (Stats.int[1] / 2) + 30 + Skills.to_bonus(Skills.pickinglocks) + Stats.dex[1]) * mod).round - 30)
    pick_lore = (Stats.level / 2) + (Skills.to_bonus(Skills.pickinglocks) / 10) + (Stats.dex[1]) + (Spells.minorelemental / 4)
    pick_lore = (Stats.level / 2) + (Skills.to_bonus(Skills.pickinglocks) / 10) + (Stats.dex[1]) + (Spells.minorelemental / 4)

    If anything it looks like the person who wrote ;pickerassistant copied both formulas from ;tpick.

  5. #845

    Default

    ;pickerassistant gives different pick recommendations than tpick uses for boxes that are in the difficulty range of vaalin through veniom+lore, invar+lore, alum+lore, golvern+lore and kelyn+lore. I don't ever see tpick using veniom+lore, invar+lore, alum+lore, golvern+lore or kelyn+lore, it's either vaalin and lore or bust even with the correct settings. So, I might recommend looking into the calculations on ;tpick specifically for boxes around that relative difficulty.

  6. #846

    Default

    What do you have for your lockroll setting?

  7. #847

    Default

    Lock roll is set to 60

  8. #848

    Default

    What is your lockpicking skill and dex bonus?

  9. #849

    Default

    Picking Locks......................| 268 168
    Dexterity (DEX): 94 (32) ... 94 (32)

  10. #850

    Default

    Okay found out what's going on.

    This bit of code in ;tpick right here:

    Code:
    						if (pick_skill) * 2.50 - lock + UserVars.tpick["lock_roll"].to_i < 100
    							needed_pick = UserVars.tpick["vaalin"]
    							needed_pick_id = $vaalin_lockpick_id
    							need_403 = "yes"
    So if we plug in your numbers, 268 lock pick skill + 32 dex bonus = 300 lockpicking skill.

    Now when we do (300 * 2.50) - 715 (the highest lock possibility on an extremely well-crafted lock) + 60 (your lockroll number) we get a value of 95, since this value is lower than 100 the script says you need a vaalin lockpick + lock lore.

    This is all working as intended. A lock roll value of 66 would have made the script forgo lock lore. This is probably happening because your lockpick skill is very close to the difficulty of the lock on the box.

    If you think the script is being too cautious you could try upping the value of your lockroll number. It can be any number you want, even higher than 100.

    So if you feel you can handle locks 50 points higher than it is now before using a higher lockpick or lore you can set the value to 110 for example.

Similar Threads

  1. MA Scripts
    By Lodyn in forum Miscellaneous Scripts
    Replies: 1
    Last Post: 12-23-2011, 05:10 PM
  2. Help with Scripts
    By jhiggs in forum Miscellaneous Scripts
    Replies: 10
    Last Post: 01-21-2009, 07:42 PM
  3. Looking for lfm scripts
    By soenchanting in forum Rogue
    Replies: 5
    Last Post: 08-11-2005, 10:07 PM
  4. LM scripts
    By AnticorRifling in forum Scripting Discussion
    Replies: 8
    Last Post: 06-25-2005, 01:49 AM
  5. Some of my most used scripts.
    By Trinitis in forum Scripting Discussion
    Replies: 22
    Last Post: 02-17-2004, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •