@class = (
'bad', 'old', 'good', 'super', 'elemental',
'unknown', 'superior', 'insane', 'powerfull', 'heavenly'
);
@items = (
'shoe', 'belt', 'gloves', 'bracers', 'armor',
'sword', 'lance', 'hammer', 'helmet', 'ring'
);
# Normally I do this if its few item oke but if a 1000 then the file became a bit to large
$c=0;$n=0;
%hash = ( #[num, minvalue, maxvalue, magicvalue]
"$class[$c] $items[$n]" =>[0,0,10,0,''],
"$class[$c++] $items[$n]" =>[1,1,11,1,''],
"$class[$c++] $items[$n]" =>[2,2,12,2,''],
"$class[$c++] $items[$n]" =>[3,3,13,3,''],
"$class[$c++] $items[$n]" =>[4,4,14,4,''],
"$class[$c++] $items[$n]" =>[5,5,15,5,''],
"$class[$c++] $items[$n]" =>[6,6,16,6,''],
"$class[$c++] $items[$n]" =>[7,7,17,7,''],
"$class[$c++] $items[$n]" =>[8,8,18,8,''],
"$class[$c++] $items[$n]" =>[9,9,19,9,''],
"$class[$c=0] $items[$n++]" =>[10,10,20,10,''],
"$class[$c++] $items[$n]" =>[11,11,21,11,''],
"$class[$c++] $items[$n]" =>[12,12,22,12,''],
"$class[$c++] $items[$n]" =>[13,13,23,13,''],
"$class[$c++] $items[$n]" =>[14,14,24,14,''],
"$class[$c++] $items[$n]" =>[15,15,25,15,''],
"$class[$c++] $items[$n]" =>[16,16,26,16,''],
"$class[$c++] $items[$n]" =>[17,17,27,17,''],
"$class[$c++] $items[$n]" =>[18,18,28,18,''],
"$class[$c++] $items[$n]" =>[19,19,29,19,''],
# and so on
);
# There must an other way to do this I think I've been puzzling for a
# few hours now and can't figure it out how to do this.
# If someone can solve this problem for me I would be greatfull.
# Mail solutions to jim@freearena.com or ICQ# 106869497 thank you.
Freearena Entertainment
'bad', 'old', 'good', 'super', 'elemental',
'unknown', 'superior', 'insane', 'powerfull', 'heavenly'
);
@items = (
'shoe', 'belt', 'gloves', 'bracers', 'armor',
'sword', 'lance', 'hammer', 'helmet', 'ring'
);
# Normally I do this if its few item oke but if a 1000 then the file became a bit to large
$c=0;$n=0;
%hash = ( #[num, minvalue, maxvalue, magicvalue]
"$class[$c] $items[$n]" =>[0,0,10,0,''],
"$class[$c++] $items[$n]" =>[1,1,11,1,''],
"$class[$c++] $items[$n]" =>[2,2,12,2,''],
"$class[$c++] $items[$n]" =>[3,3,13,3,''],
"$class[$c++] $items[$n]" =>[4,4,14,4,''],
"$class[$c++] $items[$n]" =>[5,5,15,5,''],
"$class[$c++] $items[$n]" =>[6,6,16,6,''],
"$class[$c++] $items[$n]" =>[7,7,17,7,''],
"$class[$c++] $items[$n]" =>[8,8,18,8,''],
"$class[$c++] $items[$n]" =>[9,9,19,9,''],
"$class[$c=0] $items[$n++]" =>[10,10,20,10,''],
"$class[$c++] $items[$n]" =>[11,11,21,11,''],
"$class[$c++] $items[$n]" =>[12,12,22,12,''],
"$class[$c++] $items[$n]" =>[13,13,23,13,''],
"$class[$c++] $items[$n]" =>[14,14,24,14,''],
"$class[$c++] $items[$n]" =>[15,15,25,15,''],
"$class[$c++] $items[$n]" =>[16,16,26,16,''],
"$class[$c++] $items[$n]" =>[17,17,27,17,''],
"$class[$c++] $items[$n]" =>[18,18,28,18,''],
"$class[$c++] $items[$n]" =>[19,19,29,19,''],
# and so on
);
# There must an other way to do this I think I've been puzzling for a
# few hours now and can't figure it out how to do this.
# If someone can solve this problem for me I would be greatfull.
# Mail solutions to jim@freearena.com or ICQ# 106869497 thank you.
Freearena Entertainment