rendered paste bodyMenu * {
Combat Calc:/dialog -mdo combcalc combcalc
}
dialog combcalc {
title "Combat calc by jenno"
size -1 -1 238 137
option dbu
edit "", 1, 0 62 50 10
text "Attack", 2, 8 55 25 8
edit "", 3, 77 94 50 10
edit "", 4, 0 94 50 10
edit "", 5, 77 62 50 10
text "Strength", 6, 91 55 25 8
text "Defence", 7, 8 87 25 8
text "Hitpoints", 8, 91 87 25 8
edit "", 9, 143 76 50 10
text "Prayer", 10, 156 69 25 8
edit "", 11, 130 113 104 17
text "Combat ", 12, 165 106 25 8
button "Calculate", 13, 87 119 37 12
}
On *:dialog:c:sclick:13: {
set %attack $calc($did(1)/3)
set %strength $calc($did(5)/3)
set %defence $calc($did(4)/4)
set %hp $calc ($did(4)/4)
set %prayer $calc($did(9)/8)
set %combat $calc(%attack+%strength+%defence+%hp+%prayer)
.msg $chan That = %combat combat