d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Guild Chat & Recruiting > _| "sng Team" - Guildchat |_
Prev1233234235236237259Next
Add Reply New Topic New Poll
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 8 2010 07:46pm
Quote (FamilyGuyViewer @ 8 Feb 2010 22:55)
Message Forwarded From FamilyGuyViewer
why do i needa remvoe that extra 3 ias?

http://forums.d2jsp.org/topic.php?t=39546176&f=87

Crystal clear explanation and he didn't get it. And THEN he got trolled.
Result: he didn't get that either. Just SO d2jsp/10 <_<

This post was edited by Eywa on Feb 8 2010 08:07pm
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 8 2010 09:10pm
Quote (Eywa @ Feb 8 2010 08:46pm)
http://forums.d2jsp.org/topic.php?t=39546176&f=87

Crystal clear explanation and he didn't get it. And THEN he got trolled.
Result: he didn't get that either. Just SO d2jsp/10 <_<


Lol

Btw new signature, how do you all like it?
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 8 2010 09:37pm
Quote (Scaryghoul @ 9 Feb 2010 04:10)
Btw new signature, how do you all like it?

Not quite as naughty, but still not bad. Now, add guild guide tag and name to it.

And fix your bloody avatar ^_^
in b4 QQ

How's the Life calc doing, BTW?
Member
Posts: 13,268
Joined: May 17 2009
Gold: 2.03
Feb 8 2010 09:44pm
Quote (Scaryghoul @ Feb 8 2010 10:10pm)
Lol

Btw new signature, how do you all like it?


now change the avatar lol
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 8 2010 09:44pm
Quote (Eywa @ Feb 8 2010 10:37pm)
Not quite as naughty, but still not bad. Now, add guild guide tag and name to it.

And fix your bloody avatar ^_^
in b4 QQ

How's the Life calc doing, BTW?


Ty, & I will find a new avatar soon, I have a folder on my computer with 2000+ pictures

It's finished and accurate afaik o.O I tested it on three characters and it worked to the decimal.

Quote (Iknik @ Feb 8 2010 10:44pm)
now change the avatar lol




This post was edited by Scaryghoul on Feb 8 2010 09:45pm
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 8 2010 09:47pm
You did change the values for werewolf and werebear accordingly, yes?

This post was edited by Eywa on Feb 8 2010 09:47pm
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 8 2010 09:59pm
Quote (Eywa @ Feb 8 2010 10:47pm)
You did change the values for werewolf and werebear accordingly, yes?


Um I think so o.O
Werewolf = 0.25
&
Werebear = 0.50 but only if they say yes to the prompt for one of them. Otherwise it = 0
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 8 2010 10:08pm
Quote (Scaryghoul @ 9 Feb 2010 04:59)
Um I think so o.O
Werewolf = 0.25
&
Werebear = 0.50 but only if they say yes to the prompt for one of them. Otherwise it = 0

http://forums.d2jsp.org/topic.php?t=36552682&p=263853176

Read again.

This post was edited by Eywa on Feb 8 2010 10:08pm
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 8 2010 10:10pm
Quote (Eywa @ Feb 8 2010 11:08pm)


Oh thats what you meant
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 = 25
lyc = input('Lycanthropy level? ')

wb = raw_input('Werebear? ')
if wb == 'yes':
werebear = 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


Better?
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 8 2010 10:14pm
That should do it.
Go Back To Guild Chat & Recruiting Topic List
Prev1233234235236237259Next
Add Reply New Topic New Poll