• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

outfit image in shop, self hosted znote

Jpstafe

Well-Known Member
Joined
Aug 8, 2011
Messages
507
Reaction score
68
Hello i host the images of the website in my server. Items are displayed correctly in store, but not the outfits at first, tried with an outfit.gif image it did not work, then tried another one, and the outfit don't want to be visible in website store, i tried using in replacemenr of outfits images, items like the crystal coin gif that already works, and it dont want to be visible if it is displayed as outfit

Code:
    ////////////
    /// SHOP ///
    ////////////
    // If useDB is set to true, player can shop in-game as well using Znote Lua shop system plugin.
    $config['shop'] = array(
        'enabled' => true,
        'loginToView' => false, // Do user need to login to see the shop offers?
        'enableShopConfirmation' => true, // Verify that user wants to buy with popup
        'useDB' => false, // Fetch offers from database, or the below config array
        'showImage' => true,
        'imageServer' => '127.0.0.1/layout/shop',
        'imageType' => 'gif',
    );
Lua:
*/
    $config['shop_offers'] = array(
        1 => array(
            'type' => 1,
            'itemid' => 2160, // item to get in-game
            'count' => 5, // Stack number (5x itemid)
            'description' => "5 x Crystal coin", // Description shown on website
            'points' => 100, // How many points this offer costs
        ),
        2 => array(
            'type' => 1,
            'itemid' => 2392,
            'count' => 1,
            'description' => "Fire sword",
            'points' => 10,
        ),
            3 => array(
            'type' => 2,
            'itemid' => 5153, // Item to display on page
            'count' => 7, // Days of premium account
            'description' => "Premium membership 15 days",
            'points' => 25,
        ),
                4 => array(
            'type' => 2,
            'itemid' => 5154, // Item to display on page
            'count' => 15, // Days of premium account
            'description' => "Premium membership 15 days",
            'points' => 25,
        ),
        5 => array(
            'type' => 2,
            'itemid' => 5155, // Item to display on page
            'count' => 7, // Days of premium account
            'description' => "Premium membership 30 days",
            'points' => 25,
        ),
        6 => array(
            'type' => 3,
            'itemid' => 12666, // Item to display on page
            'count' => 3,
            'description' => "Change character gender",
            'points' => 10,
        ),
        7 => array(
            'type' => 3,
            'itemid' => 12666, // Item to display on page
            'count' => 0, // 0 = unlimited
            'description' => "Change character gender",
            'points' => 20,
        ),
        8 => array(
            'type' => 4,
            'itemid' => 12666, // Item to display on page
            'count' => 1,
            'description' => "Change character name",
            'points' => 20,
        ),
        9 => array(
            'type' => 5,
            'itemid' => [132, 140], // Outfit ID
            'count' => 1, // Addon 0 = none, 1 = first, 2 = second, 3 = both
            'description' => "Noble outfit with both addons",
            'points' => 20,
        ),
        10 => array(
            'type' => 6,
            'itemid' => 32, // Mount ID
            'count' => 1,
            'description' => "Gnarlhound mount",
            'points' => 20,
        ),
        11 => array(
            'type' => 6,
            'itemid' => 17,
            'count' => 1,
            'description' => "War horse",
            'points' => 20,
            ),
            12 => array(
            'type' => 5,
            'itemid' => [128, 136], // Outfit ID
            'count' => 0, // Addon 0 = none, 1 = first, 2 = second, 3 = both
            'description' => "Normal outfit with both addons",
            'points' => 20,
        ),
                13 => array(
            'type' => 5,
            'itemid' => [128], // Outfit ID
            'count' => 0, // Addon 0 = none, 1 = first, 2 = second, 3 = both
            'description' => "Normal outfit with both addons",
            'points' => 20,
        ),
    );
 
does it display the mounts correctly? Am thinking that maybe because it says 'itemid' and an outfit is not rly an "item" ? Maybe "type" should be another number?
 
does it display the mounts correctly? Am thinking that maybe because it says 'itemid' and an outfit is not rly an "item" ? Maybe "type" should be another number?
yes, but i have not edit nothing outfits and mounts are not displayed, only items don't know the reason
 
Back
Top