diff --git a/mojotrollz/api/autoload.inc.php b/mojotrollz/api/autoload.inc.php index 1a5a814..7235e6d 100644 --- a/mojotrollz/api/autoload.inc.php +++ b/mojotrollz/api/autoload.inc.php @@ -4,5 +4,6 @@ SYSTEM\autoload::registerFolder(dirname(__FILE__).'/server',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/realm',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/world',''); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/database',''); -SYSTEM\autoload::registerFolder(dirname(__FILE__).'/charcreation',''); +SYSTEM\autoload::registerFolder(dirname(__FILE__).'/char',''); +SYSTEM\autoload::registerFolder(dirname(__FILE__).'/char/qq','DBD'); SYSTEM\autoload::registerFolder(dirname(__FILE__).'/client',''); \ No newline at end of file diff --git a/mojotrollz/api/charcreation/charcreation.php b/mojotrollz/api/char/charcreation.php similarity index 100% rename from mojotrollz/api/charcreation/charcreation.php rename to mojotrollz/api/char/charcreation.php diff --git a/mojotrollz/api/charcreation/charcreation_validator.php b/mojotrollz/api/char/charcreation_validator.php similarity index 100% rename from mojotrollz/api/charcreation/charcreation_validator.php rename to mojotrollz/api/char/charcreation_validator.php diff --git a/mojotrollz/api/char/qq/TALENT_TREE.php b/mojotrollz/api/char/qq/TALENT_TREE.php new file mode 100644 index 0000000..dcf80b0 --- /dev/null +++ b/mojotrollz/api/char/qq/TALENT_TREE.php @@ -0,0 +1,12 @@ +';} + + if( count($res) > $count && + $res[$count]['tree'] == $t && + $res[$count]['row'] == $r && + $res[$count]['column'] == $c){ + + $style = $res[$count]['icon'] ? 'background: url('.$res[$count]['icon'].') 50% 50% no-repeat;' : 'visibility:visible;'; + $max = $r == 1 ? (($res[$count]['parent_row']) ? '' : '0/'.$res[$count]['max']) : ''; + $text_color = $r == 1 ? 'icon_text_green' : ''; + + $vars[$tree] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PAPI(),'char/tpl/skilltree_icon.tpl'), + array( 'id' => $id, + 'style' => $style, + 'type' => $res[$count]['type'], + 'border' => $res[$count]['border'], + 'text_color' => $text_color, + 'max' => $max)); + + $count++; + } else { + //empty + $vars[$tree] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PAPI(),'char/tpl/skilltree_icon.tpl'), + array( 'id' => $id, + 'style' => 'visibility:hidden;', + 'type' => 'talent_icon', + 'border' => '', + 'text_color' => '', + 'max' => '')); + } + + if($c == 4){ + $vars[$tree] .= '';} + } + } + } + + return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PAPI(),'char/tpl/skilltree.tpl'), $vars); + } +} + diff --git a/mojotrollz/api/char/tpl/skilltree.tpl b/mojotrollz/api/char/tpl/skilltree.tpl new file mode 100644 index 0000000..b2d2a2c --- /dev/null +++ b/mojotrollz/api/char/tpl/skilltree.tpl @@ -0,0 +1,42 @@ +
|
+
+
+ ${tree1_name}
+ - 0 points
+
+
+ |
+
+
+
+ ${tree2_name}
+ - 0 points
+
+
+ |
+
+
+
+ ${tree3_name}
+ - 0 points
+
+
+ |
+
| + ${tree1} + | ++ ${tree2} + | ++ ${tree3} + | +
+ |
-
-
- Balance
- - 0 points
-
-
- |
-
-
-
- Feral
- - 32 points
-
-
- |
-
-
-
- Restoration
- - 0 points
-
-
- |
-
|
-
-
-
-
-
-
- 0/5
-
-
-
- 0/1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
- 5/5
-
-
-
- 0/5
-
-
-
-
-
-
-
-
-
-
- 0/5
-
-
-
- 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