/    Sign up×
Community /Pin to ProfileBookmark

inputting this into my script

assuming i have everything else right how do i make these sums work

Melee = (ATTACK*0,36)+(STRENGTH*0,29)+((DEFENCE+HITS)*.25)+(PRAYER*.125)
Magic = ((magic*.474)+((def+hit)*.25)+(prayer*.125))
Range = ((range*
. 474)+((def+hit)*.25)+(prayer*.125))

.:Ice

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 27.2004 — 
how do i make these sums work
[/quote]


What do you mean by that? Those are variables, they don't [i]work[/i], they simply exist... You may use them whenever you want in the script, especially since they are global variables as I see....
Copy linkTweet thisAlerts:
@javaNoobieOct 27.2004 — You have accidentally added commas(,) in place of your periods(.) for your decimal places. NOTE: javascript is [b]case-sensitive[/b]
×

Success!

Help @iceboy77 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...