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 + +
+ Reset this tree +
+
+ + ${tree2_name} + - 0 points + +
+ Reset this tree +
+
+ + ${tree3_name} + - 0 points + +
+ Reset this tree +
+ ${tree1} + + ${tree2} + + ${tree3} +
\ No newline at end of file diff --git a/mojotrollz/api/char/tpl/skilltree_icon.tpl b/mojotrollz/api/char/tpl/skilltree_icon.tpl new file mode 100644 index 0000000..38e83c3 --- /dev/null +++ b/mojotrollz/api/char/tpl/skilltree_icon.tpl @@ -0,0 +1,4 @@ +
+ +
${max}
+
\ No newline at end of file diff --git a/mojotrollz/files/skilltree/skilltree_icons.gif b/mojotrollz/files/skilltree/skilltree_icons.gif index 4ab9c9c..d78dffe 100644 Binary files a/mojotrollz/files/skilltree/skilltree_icons.gif and b/mojotrollz/files/skilltree/skilltree_icons.gif differ diff --git a/mojotrollz/page/wizard_skills/wizard_skills.php b/mojotrollz/page/wizard_skills/wizard_skills.php index 967eff3..5028028 100644 --- a/mojotrollz/page/wizard_skills/wizard_skills.php +++ b/mojotrollz/page/wizard_skills/wizard_skills.php @@ -10,9 +10,8 @@ class wizard_skills extends SYSTEM\PAGE\Page { } public function html(){ - $vars = array(); - $vars['js'] = $this->js(); - $vars['css'] = $this->css(); - return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'wizard_skills/wizard_skills.tpl'), $vars); + $vars = array(); + $vars['skilltree'] = skilltree::generate(11); //druid + return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'wizard_skills/wizard_skills.tpl'), $vars); } } \ No newline at end of file diff --git a/mojotrollz/page/wizard_skills/wizard_skills.tpl b/mojotrollz/page/wizard_skills/wizard_skills.tpl index a8676fa..3a8aee1 100644 --- a/mojotrollz/page/wizard_skills/wizard_skills.tpl +++ b/mojotrollz/page/wizard_skills/wizard_skills.tpl @@ -1,438 +1,2 @@ - - - - - - - - - - - -
-
- - Balance - - 0 points - -
- Reset this tree -
-
- - Feral - - 32 points - -
- Reset this tree -
-
- - Restoration - - 0 points - -
- Reset this tree -
-
-
- -
0/5
-
-
- -
0/1
-
-
- -
-
- -
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
- -
-
- -
- -
-
- -
- -
-
-
- -
-
-
- -
- -
- -
-
-
- -
-
- -
- -
- -
- -
-
-
- -
-
- -
- -
- -
- -
-
- - -
- -
- -
- -
-
- - -
-
-
- -
- -
5/5
-
-
- -
0/5
-
- -
- -
-
- -
0/5
-
-
- -
0/2
-
-
- -
5/5
-
- -
- -
-
- -
2/2
-
-
- -
1/1
-
-
- -
3/3
-
-
- -
-
-
- -
-
- -
0/2
-
-
- -
3/3
-
-
- -
2/2
-
-
- -
2/2
-
-
- -
-
- -
2/2
-
-
- -
-
-
- -
1/1
-
- -
- -
- -
- -
5/5
-
- - -
- -
- -
- -
1/1
-
- - -
-
-
- -
- -
0/5
-
-
- -
0/5
-
- -
- -
-
- -
-
-
- -
-
-
- -
-
- -
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
- -
- -
-
-
- -
-
- -
- -
- -
- -
-
- - -
-
+${skilltree}
\ No newline at end of file diff --git a/mojotrollz/path/PAPI.php b/mojotrollz/path/PAPI.php new file mode 100644 index 0000000..febaaf6 --- /dev/null +++ b/mojotrollz/path/PAPI.php @@ -0,0 +1,5 @@ +