d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Guild Chat & Recruiting > _| "sng Team" - Guildchat |_
Prev1217218219220221259Next
Add Reply New Topic New Poll
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 3 2010 11:02pm
Ty Damon, you inspired me to get back into programming, I am currently playing around with python again :)
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 4 2010 01:42am
yaay! xD
Member
Posts: 29,614
Joined: Sep 23 2008
Gold: 0.00
Feb 4 2010 02:21am
Early Good Mornen nubens..

This post was edited by ashwinthegrim on Feb 4 2010 02:22am
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 4 2010 02:26am
Quote (ashwinthegrim @ Feb 4 2010 03:21am)
Early Good Mornen nubens..


It's 3:26 AM here o.O good morning ^_^
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 4 2010 02:42am
<at work> xD
Member
Posts: 25,580
Joined: May 20 2006
Gold: 843.00
Feb 4 2010 03:20am
Quote (pawcisxdiablo2 @ 4 Feb 2010 09:42)
<at work> xD

Verily, you must be n00ben nuden IRL.
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 4 2010 03:24am
Finished building my life calculator. It's written in python so whoever wants to break it in go ahead, keep in mind there is no GUI so you run this from Terminal for linux users(windows users need to change the top line to where python is installed &/ install python then run from command prompt iirc). Shout if you see any errors.

Edit: JSP won't support indentation which will result in many errors, I have the file for download here
http://scaryghoul.servegame.com/chris/downloads
Quote
#!/usr/bin/env python

vitality = input('Vitality: ')
level = input('BO level: ')
a = 1.32
c = raw_input('Character Class: ')
l = 0
clvl = input('Character level: ')
cl = 0
il = input('Life from items: ')
iv = input('Vitality from items: ')
werewolf = 0.25
b = raw_input('Werewolf?(yes/no) ')
ilc = input('Life gained from life/level items: ')
bi = input('How many golden bird quests have you completed?(1,2,3) ')
bird = 0
wb = raw_input('Werebear?(yes/no) ')
werebear = 0
#O = oak sage level input
#lyc = lycanthropy level
#lycan = lycanthropy %
#finalbo represents bo level %
#boostable_life represents life that is boostable
#life_boosters represents skills that increase life %
#Vitality defines the total vitality of the character without items
#level defines the BO level
#a defines BO's base + 1.32
#c defines character type
#l defines life per vitality
#clvl defines chracter level
#cl defines the life per level
#il defines life given from items
#iv defines vitality given from items
#werewolf defines the value of life added from werewolf
#b defines whether or not werewolf is active
#ilc defines items that give life/level
#bi defines how many bird quests
#bird defines life from bird quest
if wb == 'yes':
werebear = .50
elif wb == 'no':
werebear = 0
if bi == 1:
bird = 20
elif bi == 2:
bird = 40
elif bi == 3:
bird = 60
elif bi == 0:
bird = 0
if b == 'yes':
werewolf = .25
elif b == 'no':
werewolf = 0
if c == 'necromancer':
l = 2
cl = 1.5
elif c == 'amazon':
l = 3
cl = 2
elif c == 'assassin':
l = 3
cl = 2
elif c == 'barbarian':
l = 4
cl = 2
elif c == 'sorceress':
l = 2
cl = 1
elif c == 'druid':
l = 2
cl = 1.5
elif c == 'paladin':
l = 3
cl = 2
lyc = input('Lycanthropy level? ')
lycan = (lyc * 5 + 15) / 100
finalbo = (level / 100.00 * 3 + a)
O = input('Oak sage level? ')
oak = (O * 5 + 25) / 100
boostable_life = (vitality * l + (cl * clvl) +il * werewolf + bird * werebear)
life_boosters =  finalbo + werebear + werewolf + oak + lycan
finalbo = (level / 100.00 * 3 + a)
nonboostable_life = (l *iv) + ilc
output = boostable_life * life_boosters + nonboostable_life
print output


This post was edited by Scaryghoul on Feb 4 2010 03:34am
Member
Posts: 47,956
Joined: Nov 7 2006
Gold: 3,134.00
Feb 4 2010 03:31am
yyy, i see much errors

where is the pic? LooooOLLL


Edit: And good morning :)

This post was edited by TheBe on Feb 4 2010 03:32am
Member
Posts: 9,197
Joined: Jan 24 2009
Gold: 4,767.60
Feb 4 2010 03:32am
Quote (TheBe @ Feb 4 2010 04:31am)
yyy, i see much errors

where is the pic? LooooOLLL


Gui = pic, no gui.....
Also erm for some reason jsp won't support indentation....that will give many errors, good morning :)

edited the post, has download link since jsp is nooben irl with tab

This post was edited by Scaryghoul on Feb 4 2010 03:35am
Member
Posts: 9,096
Joined: Sep 4 2006
Gold: 484.19
Feb 4 2010 03:37am
roar! <is nuden>
Go Back To Guild Chat & Recruiting Topic List
Prev1217218219220221259Next
Add Reply New Topic New Poll