d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Guild Chat & Recruiting > _| "sng Team" - Guildchat |_
Prev1227228229230231259Next
Add Reply New Topic New Poll
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 6 2010 01:03pm
WEEEEEEEEEEEEEE correct values!
I got it to do assassin values correctly, now time to find out the paladin errors
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 6 2010 01:17pm
Alright the life calculator is 100% correct now afaik, I tested it on 3 different characters and it worked for them(3 characters = 2x assassins & a paladin)
Go ahead and try it out. (Remember d2jsp doesn't support tabs(or at least on my style))
http://scaryghoul.servegame.com/chris/scaryghoul/
Code
#!/usr/bin/env python

# Dictionaries for character stats
vitlife = {'amazon':3, 'assassin':3, 'barbarian':4, 'druid':2, 'necromancer':2, 'paladin':3, 'sorceress':2}
lvlife = {'amazon':2, 'assassin':2, 'barbarian':2, 'druid':1.5, 'necromancer':1.5, 'paladin':2, 'sorceress':1}
slife = {'amazon':50, 'assassin':50, 'barbarian':55, 'druid':55, 'necromancer':45, 'paladin':55, 'sorceress':40}
svitality = {'amazon':20, 'assassin':20, 'barbarian':25, 'druid':25, 'necromancer':15, 'paladin':25, 'sorceress':10}


#charclass = character classes, case sensitive
charclass = raw_input('Character class: ')
charclass = charclass.lower()

#Setting character level
level = input('Character level? ')
#Setting all the input variables
vitality = 0
vita = input('Base vitality without items: ')
vitality = vita - svitality[charclass]
itemvitality = input('Vitality from items: ')
item_life_per_level = input('Life/level from items? ')
#Setting a BO level variable
bolvl = input('BO level: ')
bo = 0
if bolvl:
bo = (bolvl * 3 + 32)
#Transformed states variables
werewolf = 0
werebear = 0
lyc = 0

ww = raw_input('Werewolf? ')
if ww == 'yes':
werewolf = 0.25
lyc = input('Lycanthropy level? ')

wb = raw_input('Werebear? ')
if wb == 'yes':
werebear = 0.50
lyc = input('Lycanthropy level? ')
lycan = 0
if lyc:
lycan = (lyc * 5 + 15)

#Bird quest
bird = input('How many golden bird quests have you completed? ') * 20
#Percentage of +% life from items
itempercent = input('+% Life from items? ')
#+ xx to life items
itemlife = input('+ X to life from items ')
#Oak sage variable

oak = 0

sage = input('Oak sage level ')

if sage:

oak = (sage * 5 + 25)
levlife = 0
if level > 1:
levlife = lvlife[charclass] *(level - 1)
elif level == 0:
levlife = 0
#Life boosters
total_percent = (itempercent + werebear + werewolf + lycan + bo + oak)/100.00

#Boostable life)
elife = slife[charclass] + levlife + itemlife +(vitality * vitlife[charclass]) + bird
#Total life
lifetot = elife * (1 + total_percent) + (itemvitality * vitlife[charclass]) + (item_life_per_level)
print lifetot

Member
Posts: 8,130
Joined: Sep 1 2008
Gold: 27.00
Warn: 10%
Feb 6 2010 01:47pm
Quote (Scaryghoul @ Feb 6 2010 01:09pm)
=/ I lost a character because this same problem last year, but it was only a 800 fg paladin so nn
I think there is no error in my code now


My account is on East ^^
I think I have the top geared fire druid and definatly a top 5 top throw barb (nothing to brag about though :P )
But I'mma just reinstall it, called home and got the CD keys and I'm use that BNet thing where you type in your CD keys and it allows you to download the game
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 6 2010 02:29pm
Quote (Atroce @ 25 Oct 2009 18:52)
I C what u did ThaRR!


^^
Member
Posts: 23,709
Joined: Apr 18 2008
Gold: 36.20
Feb 6 2010 02:33pm
Quote (pawcisxdiablo2 @ 6 Feb 2010 21:29)
^^


?¿
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 6 2010 02:35pm
Quote (Atroce @ 6 Feb 2010 22:33)
?¿


O.o
Member
Posts: 13,156
Joined: Jul 14 2008
Gold: 0.11
Feb 6 2010 02:40pm
Quote (pawcisxdiablo2 @ Feb 6 2010 09:35pm)
O.o


WHOA CALM THE FUCK DOWN NERD!!!
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 6 2010 02:41pm
Quote (Fookass @ 6 Feb 2010 22:40)
I Rage And I Suck !


:thumbsup: 5555 posts :thumbsup:

Member
Posts: 13,156
Joined: Jul 14 2008
Gold: 0.11
Feb 6 2010 02:42pm
Quote (pawcisxdiablo2 @ Feb 6 2010 09:41pm)
:thumbsup: 5555 posts :thumbsup:


lolwut gz m9
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 6 2010 02:43pm
Quote (Fookass @ 6 Feb 2010 22:42)
lolwut gz m9


ty ty ^^
Go Back To Guild Chat & Recruiting Topic List
Prev1227228229230231259Next
Add Reply New Topic New Poll