View Single Post
  #6  
Old 01-28-2008, 11:44 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
wow. talk about skill.

EDIT
about this part:
Graal Script Code:
function onEnchantItem(singularprefixsuffixench_aench_b) {   
  
temp.o_singular singular;
  
temp.o_prefix prefix;
  
temp.o_suffix suffix;

  
temp.ench_a;
  
temp.ench_b;
  
  
temp.enchants = {"str""int""dex""luck""hp""mp""power""dmg""crit""dodge""def"};
  
  for(
temp.enchantsmakevar("this.outut_" w) = "";
  
  
temp.c.loadvarsfromarray(a);  
  
temp.d.loadvarsfromarray(b);
  
  
temp.arr1 c.getDynamicVarNames();
  
temp.arr2 d.getDynamicVarNames();
  
  
temp.arr3 0;
  for(
temp.arr1) {
    if (
arr3.index(@ e) == -1) {
      
makevar("this.output_" e) = makevar("c." e) + makevar("d." e);
      
arr3.add(e);
    }
  }
  for(
temp.arr2) {
    if (
arr3.index(@ f) == -1) {
      
makevar("this.output_" f) = makevar("c." f) + makevar("d." f);
      
arr3.add(f);
    }
  }
  
temp.assign 0;
  
temp.output_stats "";
  for(
temp.arr3) {
    
assign = (this.(@ "output_" o).starts("-") ? this.(@ "output_" o) : "+" this.(@ "output_" o)) SPC o ", ";
    if (
o.starts("$")) assign o.substring(1) @ ", ";
    if (!(
assign.starts("+0")) && !(assign.starts("-0")))
      
output_stats @= assign;
  }
  
temp.enchants output_stats.substring(0output_stats.length() - 2);
  
temp."žs žs žs";
  if (
enchants.length() > 0@= " (žs)";
  
output_result format(fo_prefixo_singularo_suffixoutput_stats.substring(0output_stats.length() - 2));
  return 
output_result.trim();

i noticed somthing, is this:
Graal Script Code:
  for(temp.enchantsmakevar("this.outut_" w) = ""
supposed to be this
Graal Script Code:
  for(temp.enchantsmakevar("this.output_" w) = ""
__________________
I am the devil, I am here to do to devils work.
Reply With Quote