Show Categories
91
0

There are codes which You should copy and paste to .htaccess in root folder (Where index.php is located).


This compressing will work only if You using apache server.

Compressing by using this script will speed up your site 30-40%. Second this is that it will save Your bandwidth up to 50%.

Test Your site speed here:

Pingdom

Apache .htaccess GZIP Compression:

# Enable GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>

# Expires Headers - 2678400s = 31 days
<ifmodule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 7200 seconds"
  ExpiresByType image/gif "access plus 2678400 seconds"
  ExpiresByType image/jpeg "access plus 2678400 seconds"
  ExpiresByType image/png "access plus 2678400 seconds"
  ExpiresByType text/css "access plus 518400 seconds"
  ExpiresByType text/javascript "access plus 2678400 seconds"
  ExpiresByType application/x-javascript "access plus 2678400 seconds"
</ifmodule>

# Cache Headers
<ifmodule mod_headers.c>
  # Cache specified files for 31 days
  <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
  Header set Cache-Control "max-age=2678400, public"
  </filesmatch>
  # Cache HTML files for a couple hours
  <filesmatch "\.(html|htm)$">
  Header set Cache-Control "max-age=7200, private, must-revalidate"
  </filesmatch>
  # Cache PDFs for a day
  <filesmatch "\.(pdf)$">
  Header set Cache-Control "max-age=86400, public"
  </filesmatch>
  # Cache Javascripts for 31 days
  <filesmatch "\.(js)$">
  Header set Cache-Control "max-age=2678400, private"
  </filesmatch>
</ifmodule>

Apache deflate-compression:

/etc/apache2/mods-enabled/deflate.conf

<IfModule mod_deflate.c>
        <IfModule mod_filter.c>
                # these are known to be safe with MSIE 6
                AddOutputFilterByType DEFLATE text/html text/plain text/xml

                # everything else may cause problems with MSIE 6
                AddOutputFilterByType DEFLATE text/css
                AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
                AddOutputFilterByType DEFLATE application/rss+xml
                AddOutputFilterByType DEFLATE application/xml
        </IfModule>
</IfModule>
19.6k
0
misiu posted Jan 6 '16 at 11:27 pm

List of Xenobot scripts included in folder:

Screenshot Taker
Script make screenshot when your lvl going up, when you die, when your stamina is below 14h, and when you get a skull.

Amulet changer
As title say, script equip amulet when actually is out.

Bolts Sorter
Moving bolts/arrows/start etc. to your ammo backpack.

Drop Flask
Drop on the ground empy flask when you have 50 or more.

Equip bow

Script change bow to one-hand weapon and shield when you are underattack by many monsters.

Equip Spear
Change small stone to spear or other weapon when your ammo is low.

Follow
You can use this if you want hunt with yourself by mc.

Gold to platinum
It's change gold to platinum and platinum to crystal when count is 100.
NOTE: Use this only on OTServer!

Looter
This is automatic looter when you hunting manualy, its open mobs and take loot for you.

ManasToManaBP
It's the same like bolts sorter script, no need to to write more.

NakuuHUD
Simply and easy to use HUD.

ReOpenBps
Use this script if you using reconnect. Backpacks must be sorted in the order you want them to get opened, so if you stack bp is open first, you must put it on the last position in your main bp.

Rings
Simply ring changer.

Sio healer
Advenced script for elder druid who using sio spell for healing friends.

Soft equiper
Soft boots equiper when your mana is below % what you set.

Sorting Items
Very usefull script for sorting items. It sort items for blue djinn, green djinn, rashid.

211
0
misiu posted Jan 6 '16 at 11:20 pm

This script adds the addon to the player in exchange for an item.

To install go to the folder OTFolder/data/talkactions/scripts, create a .lua file (addondoll.lua) and put this:

function onSay(player, words, param)

    local outfits =
    {
        --[outfit] = {id_female, id_male}
        ["citizen"] = {136, 128},
        ["hunter"] = {137, 129},
        ["mage"] = {138, 130},
        ["knight"] = {139, 131},
        ["noblewoman"] = {140, 132},
        ["summoner"] = {141, 133},
        ["warrior"] = {142, 134},
        ["barbarian"] = {147, 143},
        ["druid"] = {148, 144},
        ["wizard"] = {149, 145},
        ["oriental"] = {150, 146},
        ["pirate"] = {155, 151},
        ["assassin"] = {156, 152},
        ["beggar"] = {157, 153},
        ["shaman"] = {158, 154},
        ["norsewoman"] = {252, 251},
        ["nightmare"] = {269, 268},
        ["jester"] = {270, 273},
        ["brotherhood"] = {279, 278},
        ["demonhunter"] = {288, 289},
        ["yalaharian"] = {324, 325},
        ["warmaster"] = {336, 335},
        ["wayfarer"] = {366, 367},
        ["afflicted"] = {431, 430},
        ["elementalist"] = {433, 432},
        ["deepling"] = {464, 463},
        ["insectoid"] = {466, 465},
        ["red baron"] = {471, 472},
        ["crystal warlord"] = {513, 512},
        ["soil guardian"] = {514, 516},
        ["demon"] = {542, 541}
    }

    local param = string.lower(param)
    local addondoll_id = 9693

    if player:getItemCount(addondoll_id) > 0 then
        if param ~= "" and outfits[param] then
            if (not player:hasOutfit(outfits[param][1], 3)) or (not player:hasOutfit(outfits[param][2], 3)) then
                player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:removeItem(addondoll_id, 1)
                player:addOutfitAddon(outfits[param][1], 3)
                player:addOutfitAddon(outfits[param][2], 3)
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
            else
                player:sendCancelMessage("Voce ja tem este addon")
            end
        else
            player:sendCancelMessage("Digite novamente, algo esta errado!")
        end
    else
        player:sendCancelMessage("Voce nao tem addon doll!")
    end

    return true
end

After adding the script, go OTFolder/data/talkactions, in the file talkactions.xml, add:

<talkaction words="!addon" script="addondoll.lua"/>

Set the addondoll ID in:

local addondoll_id = 9693
Categories
Actions
Hide topic messages
Enable infinite scrolling
All posts under this topic will be deleted ?
Previous
Next
Pending draft ... Click to resume editing
Discard draft