diff --git a/LUA/TFS_03/creaturescript sync outfits/Installation Instructions.txt b/LUA/TFS_03/creaturescript sync outfits/Installation Instructions.txt new file mode 100644 index 0000000..f90be23 --- /dev/null +++ b/LUA/TFS_03/creaturescript sync outfits/Installation Instructions.txt @@ -0,0 +1,7 @@ +1. Add below line to XML file: data/creaturescripts/creaturescripts.xml + + +2. Register event in login.lua: data/creaturescripts/scripts/login.lua +registerCreatureEvent(cid, "znote_syncoutfits") + +3. Place Lua file syncoutfit.lua in folder: data/creaturescripts/scripts/ \ No newline at end of file diff --git a/LUA/TFS_03/creaturescript sync outfits/syncoutfit.lua b/LUA/TFS_03/creaturescript sync outfits/syncoutfit.lua new file mode 100644 index 0000000..4192224 --- /dev/null +++ b/LUA/TFS_03/creaturescript sync outfits/syncoutfit.lua @@ -0,0 +1,39 @@ +-- Sync outfits that player own with Znote AAC +-- So its possible to see which full sets player +-- has in characterprofile.php + +znote_outfit_list = { + { -- Female (girl) outfits + 136,137,138,139,140,141,142,147,148, + 149,150,155,156,157,158,252,269,270, + 279,288,324,329,336,366,431,433,464, + 466,471,513,514,542,575,578,618,620, + 632,635,636,664,666,683,694,696,698, + 724,732,745,749,759,845,852,874,885, + 900 + }, + { -- Male (boy) outfits + 128,129,130,131,132,133,134,143,144, + 145,146,151,152,153,154,251,268,273, + 278,289,325,328,335,367,430,432,463, + 465,472,512,516,541,574,577,610,619, + 633,634,637,665,667,684,695,697,699, + 725,733,746,750,760,846,853,873,884, + 899 + } +} + +function onLogin(cid) + -- storage_value + 1000 storages (highest outfit id) must not be used in other script. + -- Must be identical to Znote AAC config.php: $config['EQ_shower'] -> storage_value + local storage_value = 10000 + -- Loop through outfits + for _, outfit in pairs(znote_outfit_list[getPlayerSex(cid)+1]) do + if canPlayerWearOutfit(cid,outfit,3) then + if getPlayerStorageValue(cid,storage_value + outfit) ~= 3 then + setPlayerStorageValue(cid,storage_value + outfit, 3) + end + end + end + return true +end diff --git a/LUA/TFS_10/creaturescript sync outfits/Installation Instructions.txt b/LUA/TFS_10/creaturescript sync outfits/Installation Instructions.txt new file mode 100644 index 0000000..7aaced4 --- /dev/null +++ b/LUA/TFS_10/creaturescript sync outfits/Installation Instructions.txt @@ -0,0 +1,8 @@ +1. Add below line to XML file: data/creaturescripts/creaturescripts.xml + + + +2. Register event in login.lua: data/creaturescripts/scripts/login.lua +player:registerEvent("znote_syncoutfits") + +3. Place Lua file syncoutfit.lua in folder: data/creaturescripts/scripts/ \ No newline at end of file diff --git a/LUA/TFS_10/creaturescript sync outfits/syncoutfit.lua b/LUA/TFS_10/creaturescript sync outfits/syncoutfit.lua new file mode 100644 index 0000000..ada481d --- /dev/null +++ b/LUA/TFS_10/creaturescript sync outfits/syncoutfit.lua @@ -0,0 +1,39 @@ +-- Sync outfits that player own with Znote AAC +-- So its possible to see which full sets player +-- has in characterprofile.php + +znote_outfit_list = { + { -- Female (girl) outfits + 136,137,138,139,140,141,142,147,148, + 149,150,155,156,157,158,252,269,270, + 279,288,324,329,336,366,431,433,464, + 466,471,513,514,542,575,578,618,620, + 632,635,636,664,666,683,694,696,698, + 724,732,745,749,759,845,852,874,885, + 900 + }, + { -- Male (boy) outfits + 128,129,130,131,132,133,134,143,144, + 145,146,151,152,153,154,251,268,273, + 278,289,325,328,335,367,430,432,463, + 465,472,512,516,541,574,577,610,619, + 633,634,637,665,667,684,695,697,699, + 725,733,746,750,760,846,853,873,884, + 899 + } +} + +function onLogin(player) + -- storage_value + 1000 storages (highest outfit id) must not be used in other script. + -- Must be identical to Znote AAC config.php: $config['EQ_shower'] -> storage_value + local storage_value = 10000 + -- Loop through outfits + for _, outfit in pairs(znote_outfit_list[player:getSex()+1]) do + if player:hasOutfit(outfit,3) then + if player:getStorageValue(storage_value + outfit) ~= 3 then + player:setStorageValue(storage_value + outfit, 3) + end + end + end + return true +end diff --git a/characterprofile.php b/characterprofile.php index 1bf248d..7e9e8db 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -152,6 +152,455 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { Created + + + + + $outfit_columns) { + $outfit_columns = COUNT($row); + } + foreach ($row as $column) { + $outfit_list[] = $column; + } + } + + $highest_outfit_id = MAX($outfit_list); + $outfit_storage_max = $outfit_storage + $highest_outfit_id + 1; + + $player_outfits = array(); + $storage_sql = mysql_select_multi(" + SELECT `key`, `value` + FROM `player_storage` + WHERE `player_id`={$user_id} + AND `key` > {$outfit_storage} + AND `key` < {$outfit_storage_max} + "); + if ($storage_sql !== false && !empty($storage_sql)) { + foreach ($storage_sql as $row) { + $player_outfits[$row['key']] = $row['value']; + } + } + + $aquired_outfits = array(); + foreach ($outfit_list as $outfit_id) { + $outfit_key = $outfit_storage + $outfit_id; + if (isset($player_outfits[$outfit_key]) && $player_outfits[$outfit_key] == 3) { + $aquired_outfits[$outfit_id] = true; + } + } + ?> + +
+ + +
+ +
+
+ + "> + + Cap:
+ +
+ img +
+ +
+ + + +
+ + + + + + + + + + + + + + + + +
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + +
+
+ +
+ + + + + + + diff --git a/config.php b/config.php index a7232ad..73342c8 100644 --- a/config.php +++ b/config.php @@ -596,6 +596,18 @@ 'imageServer' => 'http://outfit-images.ots.me/animatedOutfits1099/animoutfit.php' ); + // Show advanced inventory data in character profile + $config['EQ_shower'] = array( + 'enabled' => true, + 'equipment' => true, + 'skills' => true, + 'outfits' => true, + // Player storage (storage_value + outfitId) + // used to see if player has outfit. + // see LUA scripts folder for otserv code + 'storage_value' => 10000 + ); + // Level requirement to create guild? (Just set it to 1 to allow all levels). $config['create_guild_level'] = 8; diff --git a/engine/img/bg.png b/engine/img/bg.png new file mode 100644 index 0000000..96fe689 Binary files /dev/null and b/engine/img/bg.png differ diff --git a/engine/img/lifebarra.png b/engine/img/lifebarra.png new file mode 100644 index 0000000..3f81199 Binary files /dev/null and b/engine/img/lifebarra.png differ diff --git a/engine/img/manabar.png b/engine/img/manabar.png new file mode 100644 index 0000000..38dbdd8 Binary files /dev/null and b/engine/img/manabar.png differ diff --git a/engine/img/o/b_l.png b/engine/img/o/b_l.png new file mode 100644 index 0000000..5c4e286 Binary files /dev/null and b/engine/img/o/b_l.png differ diff --git a/engine/img/o/b_m.png b/engine/img/o/b_m.png new file mode 100644 index 0000000..e73cf7c Binary files /dev/null and b/engine/img/o/b_m.png differ diff --git a/engine/img/o/b_r.png b/engine/img/o/b_r.png new file mode 100644 index 0000000..2835fdb Binary files /dev/null and b/engine/img/o/b_r.png differ diff --git a/engine/img/o/m_l.png b/engine/img/o/m_l.png new file mode 100644 index 0000000..3973145 Binary files /dev/null and b/engine/img/o/m_l.png differ diff --git a/engine/img/o/m_m.png b/engine/img/o/m_m.png new file mode 100644 index 0000000..5874199 Binary files /dev/null and b/engine/img/o/m_m.png differ diff --git a/engine/img/o/m_r.png b/engine/img/o/m_r.png new file mode 100644 index 0000000..60d98e8 Binary files /dev/null and b/engine/img/o/m_r.png differ diff --git a/engine/img/o/t_l.png b/engine/img/o/t_l.png new file mode 100644 index 0000000..3bcec98 Binary files /dev/null and b/engine/img/o/t_l.png differ diff --git a/engine/img/o/t_m.png b/engine/img/o/t_m.png new file mode 100644 index 0000000..677a1c1 Binary files /dev/null and b/engine/img/o/t_m.png differ diff --git a/engine/img/o/t_r.png b/engine/img/o/t_r.png new file mode 100644 index 0000000..1451458 Binary files /dev/null and b/engine/img/o/t_r.png differ diff --git a/engine/img/outfit.png b/engine/img/outfit.png new file mode 100644 index 0000000..7ca99c3 Binary files /dev/null and b/engine/img/outfit.png differ diff --git a/engine/img/outfitbackgrounds.png b/engine/img/outfitbackgrounds.png new file mode 100644 index 0000000..f8536f6 Binary files /dev/null and b/engine/img/outfitbackgrounds.png differ diff --git a/engine/img/skillsbackground.png b/engine/img/skillsbackground.png new file mode 100644 index 0000000..e43f1e5 Binary files /dev/null and b/engine/img/skillsbackground.png differ