• 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!

Linux TFS 1.2 - Disable quest to sell itens Rashid / Djinn / Etc

RRRIKARDO

New Member
Joined
Oct 1, 2015
Messages
38
Reaction score
2
Hi all,
There's possible to disable the feature to do the quest to sell itens in Rashid, Djinn, Etc?

atm, there's only possible to sell itens if do the quest.
thank you.
 
Rashid

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Rashid" script="Rashid.lua" walkinterval="2000" floorchange="0" walkradius="3">
    <health now="100" max="100" />
    <look type="146" head="100" body="100" legs="119" feet="115" addons="2" />
    <parameters>
        <parameter key="module_shop" value="1" />
        <parameter key="shop_sellable" value="
            abyss hammer, 7414, 20000;
            amber staff, 7426, 8000;
            ancient amulet, 2142, 200;
            assassin dagger, 7404, 20000;
            bandana, 5917, 150;
            beastslayer axe, 3962, 1500;
            beetle necklace, 11374, 1500;
            berserker, 7403, 40000;
            blacksteel sword, 7406, 6000;
            blessed sceptre, 7429, 40000;
            bone shield, 2541, 80;
            bonelord helmet, 3972, 7500;
            brutetamer's staff, 7379, 1500;
            buckle, 20109, 7000;
            castle shield, 2535, 5000;
            chain bolter, 8850, 40000;
            chaos mace, 7427, 9000;
            cobra crown, 12630, 50000;
            coconut shoes, 9931, 500;
            composite hornbow, 8855, 25000;
            cranial basher, 7415, 30000;
            crocodile boots, 3982, 1000;
            crystal crossbow, 18453, 35000;
            crystal mace, 2445, 12000;
            crystal necklace, 2125, 400;
            crystal ring, 2124, 250;
            crystal sword, 7449, 600;
            crystalline armor, 8878, 16000;
            daramian mace, 2439, 110;
            daramian waraxe, 2440, 1000;
            dark shield, 2521, 400;
            death ring, 6300, 1000;
            demon shield, 2520, 30000;
            demonbone amulet, 2136, 32000;
            demonrage sword, 7382, 36000;
            devil helmet, 2462, 1000;
            diamond sceptre, 7387, 3000;
            divine plate, 8885, 55000;
            djinn blade, 2451, 15000;
            doll, 2110, 200;
            dragon scale mail, 2492, 40000;
            dragon slayer, 7402, 15000;
            dragonbone staff, 7430, 3000;
            dreaded cleaver, 7419, 10000;
            dwarven armor, 2503, 30000;
            earth cranial basher, 7866, 30000;
            earth dragon slayer, 7858, 15000;
            earth headchopper, 7862, 6000;
            earth heroic axe, 7861, 30000;
            earth mystic blade, 7856, 30000;
            earth orcish maul, 7867, 6000;
            earth relic sword, 7855, 25000;
            earth war axe, 7863, 12000;
            elvish bow, 7438, 2000;
            emerald bangle, 2127, 800;
            energy cranial basher, 7881, 30000;
            energy dragon slayer, 7873, 15000;
            energy headchopper, 7877, 6000;
            energy heroic axe, 7876, 30000;
            energy mystic blade, 7871, 30000;
            energy orcish maul, 7882, 6000;
            energy relic sword, 7870, 25000;
            energy war axe, 7878, 12000;
            epee, 2438, 8000;
            fiery cranial basher, 7756, 30000;
            fiery dragon slayer, 7748, 15000;
            fiery headchopper, 7752, 6000;
            fiery heroic axe, 7751, 30000;
            fiery mystic blade, 7746, 30000;
            fiery orcish maul, 7757, 6000;
            fiery relic sword, 7745, 25000;
            fiery war axe, 7753, 12000;
            flower dress, 9929, 1000;
            flower wreath, 9927, 500;
            fur boots, 7457, 2000;
            furry club, 7432, 1000;
            glacier amulet, 7888, 1500;
            glacier kilt, 7896, 11000;
            glacier mask, 7902, 2500;
            glacier robe, 7897, 11000;
            glacier shoes, 7892, 2500;
            gold ring, 2179, 8000;
            golden armor, 2466, 20000;
            golden legs, 2470, 30000;
            guardian halberd, 2427, 11000;
            hammer of wrath, 2444, 30000;
            headchopper, 7380, 6000;
            heavy mace, 2452, 50000;
            heavy machete, 2442, 90;
            heavy trident, 13838, 2000;
            helmet of the lost, 20132, 2000;
            heroic axe, 7389, 30000;
            hibiscus dress, 8873, 3000;
            icy blacksteel sword, 7766, 6000;
            icy cranial basher, 7775, 30000;
            icy dragon slayer, 7767, 15000;
            icy headchopper, 7771, 6000;
            icy heroic axe, 7770, 30000;
            icy mystic blade, 7765, 30000;
            icy orcish maul, 7776, 6000;
            icy relic sword, 7764, 25000;
            icy war axe, 7772, 12000;
            jade hammer, 7422, 25000;
            krimhorn helmet, 7461, 200;
            lavos armor, 8877, 16000;
            leaf legs, 9928, 500;
            leopard armor, 3968, 1000;
            leviathan's amulet, 10220, 3000;
            light shovel, 5710, 300;
            lightning boots, 7893, 2500;
            lightning headband, 7901, 2500;
            lightning legs, 7895, 11000;
            lightning pendant, 7889, 1500;
            lightning robe, 7898, 11000;
            lunar staff, 7424, 5000;
            magic plate armor, 2472, 90000;
            magma amulet, 7890, 1500;
            magma boots, 7891, 2500;
            magma coat, 7899, 11000;
            magma legs, 7894, 11000;
            magma monocle, 7900, 2500;
            mammoth fur cape, 7463, 6000;
            mammoth fur shorts, 7464, 850;
            mammoth whopper, 7381, 300;
            mastermind shield, 2514, 50000;
            medusa shield, 2536, 9000;
            mercenary sword, 7386, 12000;
            mycological bow, 18454, 35000;
            mystic blade, 7384, 30000;
            naginata, 2426, 2000;
            nightmare blade, 7418, 35000;
            noble axe, 7456, 10000;
            norse shield, 7460, 1500;
            orcish maul, 7392, 6000;
            pair of iron fists, 20108, 4000;
            paladin armor, 8891, 15000;
            patched boots, 2641, 2000;
            pharaoh sword, 2446, 23000;
            pirate boots, 5462, 3000;
            pirate hat, 6096, 1000;
            pirate knee breeches, 5918, 200;
            pirate shirt, 6095, 500;
            pirate voodoo doll, 5810, 500;
            platinum amulet, 2171, 2500;
            ragnir helmet, 7462, 400;
            relic sword, 7383, 25000;
            ring of the sky, 2123, 30000;
            royal axe, 7434, 40000;
            ruby necklace, 2133, 2000;
            ruthless axe, 6553, 45000;
            sacred tree amulet, 10219, 3000;
            sapphire hammer, 7437, 7000;
            scarab amulet, 2135, 200;
            scarab shield, 2540, 2000;
            shockwave amulet, 10221, 3000;
            silver brooch, 2134, 150;
            silver dagger, 2402, 500;
            skull helmet, 5741, 40000;
            skullcracker armor, 8889, 18000;
            spiked squelcher, 7452, 5000;
            steel boots, 2645, 30000;
            swamplair armor, 8880, 16000;
            taurus mace, 7425, 500;
            tempest shield, 2542, 35000;
            terra amulet, 7887, 1500;
            terra boots, 7886, 2500;
            terra hood, 7903, 2500;
            terra legs, 7885, 11000;
            terra mantle, 7884, 11000;
            the justice seeker, 7390, 40000;
            tortoise shield, 6131, 150;
            vile axe, 7388, 30000;
            voodoo doll, 2322, 400;
            war axe, 2454, 12000;
            war horn, 2079, 8000;
            witch hat, 10570, 5000;
            wyvern fang, 7408, 1500 " />
    </parameters>
</npc>



Alessar
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Alesar" script="Alesar.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100" />
    <look type="80" />
    <parameters>
        <parameter key="module_shop" value="1" />
        <parameter key="shop_buyable" value="
            ancient shield, 2535, 5000;
            dark armor, 2489, 1500;
            dark helmet, 2490, 1000;
            ice rapier, 2396, 5000;
            serpent sword, 2409, 6000 " />
        <parameter key="shop_sellable" value="
            ancient shield, 2535, 900;
            dark armor, 2489, 400;
            dark helmet, 2490, 250;
            serpent sword, 2409, 900;
            black shield, 2529, 800;
            bonebreaker, 7428, 10000;
            dragon hammer, 2434, 2000;
            dreaded cleaver, 7419, 15000;
            earth knight axe, 7860, 2000;
            energy knight axe, 7875, 2000;
            fiery knight axe, 7750, 2000;
            giant sword, 2393, 17000;
            haunted blade, 7407, 8000;
            icy knight axe, 7769, 2000;
            knight armor, 2476, 5000;
            knight axe, 2430, 2000;
            knight legs, 2477, 5000;
            mystic turban, 2663, 150;
            onyx flail, 7421, 22000;
            ornamented axe, 7411, 20000;
            poison dagger, 2411, 50;
            skull staff, 2436, 6000;
            strange helmet, 2479, 500;
            titan axe, 7413, 4000;
            tower shield, 2528, 8000;
            vampire shield, 2534, 15000;
            warrior helmet, 2475, 5000 " />
    </parameters>
</npc>
 
Mate, Rashid its not djinn. Rashid is rashid.
And if you want to post long scripts, do it here: pastebin.com
 
Search for NPCNAME.lua in npc/scripts folder then paste it here or to pastebin.
 
For Rashid: look on line 219.
Code:
if Player(cid):getStorageValue(Storage.TravellingTrader.Mission07) ~= 1 then

This means if player has Rashid missions completed then rashid will trade with him else not.

You can remove this line or change "return false" to return true
 
There's right now ?

Code:
local function onTradeRequest(cid)
    if Player(cid):getStorageValue(Storage.TravellingTrader.Mission07) ~= 1 then
        npcHandler:say('Sorry, but you do not belong to my exclusive customers. I have to make sure that I can trust in the quality of your wares.', cid)
        return true
 
Code:
local function onTradeRequest(cid)
    if Player(cid):getStorageValue(Storage.TravellingTrader.Mission07) ~= 1 then
        return true


You can remove whole function too :)
But remember to delete correct amount of ends.
 
Every quest NPC is working on storages. Storages means quest. So if NPC requires storage(quest) to do something you can simply remove the "check" and it will work without it.
 
Thank you.
It worked fine in Rashid.

Now i'll try it with djinn and others seller NPC.
after it, will try add it in temple/deport.

can u give me a ideia how to add it in another position from maps ? ( Deport / Temple / Etc ) ?
thank you so much.
 
Back
Top