• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Yaman - Alesar Npc's

Tribalzx Czyesk

New Member
Joined
Apr 22, 2015
Messages
2
Reaction score
0
Hey guys, I wanted to know if any of you could send me the .xml files and .lua, Yaman and Alesar of NPCs, who do not need the mission of the djinn factions. Only selling and buying items, be very grateful. see you soon.
 
Alesar.xml -
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>

Alesar.lua -

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)            end
function onCreatureSay(cid, type, msg)        npcHandler:onCreatureSay(cid, type, msg)        end
function onThink()        npcHandler:onThink()        end

local voices = { {text = 'Hello, how are you.'} }
npcHandler:addModule(VoiceModule:new(voices))


keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, text = "I buy everything!. I love itens!"})

npcHandler:setMessage(MESSAGE_GREET, 'What do you want from me, |PLAYERNAME|?')
npcHandler:setMessage(MESSAGE_FAREWELL, 'Finally.')
npcHandler:setMessage(MESSAGE_WALKAWAY, 'Finally.')
npcHandler:setMessage(MESSAGE_SENDTRADE, 'At your service, just browse through my wares.')

npcHandler:setCallback(CALLBACK_ONTRADEREQUEST, onTradeRequest)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

local focusModule = FocusModule:new()
focusModule:addGreetMessage('hi')
focusModule:addGreetMessage('hello')
focusModule:addGreetMessage('djanni\'hah')
npcHandler:addModule(focusModule)

Yaman.xml -

Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Yaman" script="Yaman.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100" />
    <look type="103" />
    <parameters>
        <parameter key="module_shop" value="1" />
        <parameter key="shop_buyable" value="
            dragon necklace, 2201, 1000;
            dwarven ring, 2213, 2000;
            energy ring, 2167, 2000;
            life ring, 2168, 900;
            might ring, 2164, 5000;
            protection amulet, 2200, 700;
            ring of healing, 2216, 2000;
            silver amulet, 2170, 100;
            strange talisman, 2161, 100;
            time ring, 2169, 2000" />
        <parameter key="shop_sellable" value="
            dragon necklace, 2201, 100;
            dwarven ring, 2213, 100;
            energy ring, 2167, 100;
            life ring, 2168, 50;
            might ring, 2164, 250;
            protection amulet, 2200, 100;
            ring of healing, 2216, 100;
            silver amulet, 2170, 50;
            strange talisman, 2161, 30;
            time ring, 2169, 100;
            ankh, 2327, 100;
            glacial rod, 18412, 6500;
            hailstorm rod, 2183, 3000;
            moonlight rod, 2186, 200;
            muck rod, 18411, 6000;
            mysterious fetish, 2194, 50;
            necrotic rod, 2185, 1000;
            northwind rod, 8911, 1500;
            snakebite rod, 2182, 100;
            springsprout rod, 8912, 3600;
            terra rod, 2181, 2000;
            underworld rod, 8910, 4400" />
    </parameters>
</npc>

Yaman.lua -
Code:
npcHandler:setMessage(MESSAGE_GREET, 'What do you want from me, |PLAYERNAME|?')
npcHandler:setMessage(MESSAGE_FAREWELL, 'Finally.')
npcHandler:setMessage(MESSAGE_WALKAWAY, 'Finally.')
npcHandler:setMessage(MESSAGE_SENDTRADE, 'At your service, just browse through my wares.')

npcHandler:setCallback(CALLBACK_ONTRADEREQUEST, onTradeRequest)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

local focusModule = FocusModule:new()
focusModule:addGreetMessage('hi')
focusModule:addGreetMessage('hello')
focusModule:addGreetMessage('djanni\'hah')
npcHandler:addModule(focusModule)
 
Back
Top