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

Some Npc Sellers

rodrigosch

New Member
Joined
Aug 20, 2008
Messages
77
Reaction score
0
Hello,

I'm owner of a fun server, and want npc's who sell:

Full Set Knights, Paladins, Sorcs and Druids..

The itens are:

-----------Knight Itens-------------
Demon Helmet
G legs
MPA
MMS
Boh
Emerald Sword/Thunder Hammer/Hellforged

------------Pala Itens--------------
DH
Yalahari Leg Piece
Boh
Mms
Mpa
Assassin Stars/Royal Crossbow/Infernal Bolts

------------Druid & Sorc Itens-------
Yalahari Mask
Focus Cape
Blue Legs
Boh
Wand Of Voodoo\Underworld Rod
Spellbook of Dark Mysteries

For free! :D

Can someone help? :) +REP
 
Knight Items NPC

data/npc/scripts create knigheq.lua and add
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'demon helmet'}, 3387, 0, 'demon helmet')
shopModule:addBuyableItem({'golden legs'}, 3364, 0, 'golden legs')

shopModule:addBuyableItem({'mpa'}, 3366, 0, 'mpa')
shopModule:addBuyableItem({'mms'}, 3414, 0, 'mms')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'emerald sword'}, xxx, 0, 'emerald sword')
shopModule:addBuyableItem({'thunder hammer'}, 3309, 0, 'thunder hammer')
shopModule:addBuyableItem({'hellforged axe'}, xxx, 0, 'hellforged axe')

local items = {[1] = 3387, [2] = 3364, [5] = 3366, [6] = 3414}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
you have to add the id of hellforged axe and emerald sword because i couldn't find it...
were the xxx add id for emerald sword and were the xxx add id for hellforged axe

then go to data/npc/ and create Knight Items.xml or what ever name you want.. and add

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Knight Items" nameDescription="Knight Items, the item giver" script="knighteq.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="129" head="39" body="122" legs="125" feet="57" addons="0"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I can give you knight eq the eq i have is 'mpa','mms','golden legs','demon helmet','hellforged axe','thunder hammer','emerald sword' and 'boh' all for free!!"/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>

I hope i helped...
If I have time tomorrow i can create the rest..
 
Knight Items NPC

data/npc/scripts create knigheq.lua and add

you have to add the id of hellforged axe and emerald sword because i couldn't find it...
were the xxx add id for emerald sword and were the xxx add id for hellforged axe

then go to data/npc/ and create Knight Items.xml or what ever name you want.. and add



I hope i helped...
If I have time tomorrow i can create the rest..

you didnt really have to make a script for that..
 
data/npc/scripts create palleq.lua and add this..

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'demon helmet'}, 3387, 0, 'demon helmet')
shopModule:addBuyableItem({'yalahari legs'}, xxxx, 0, 'yalahari legs')

shopModule:addBuyableItem({'mpa'}, 3366, 0, 'mpa')
shopModule:addBuyableItem({'mms'}, 3414, 0, 'mms')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'royal crossbow'}, 8023, 0, 'royal crossbow')
shopModule:addBuyableItem({'assassin star'}, 7368, 0, 100, 'assassin star')
shopModule:addBuyableItem({'infernal bolt'}, 6528, 0, 100,'infernal bolt')

local items = {[1] = 3387, [2] = 3366, [5] = 3079, [6] = 3414}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

I couldn't find id for yalahari legs so you will have to edit xxxxwith your id..

then go to data/npc/ and create Paladin Items.xml or whatever name... and add this..

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Paladin Items" nameDescription="Paladin Items, the item giver" script="knighteq.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="129" head="39" body="122" legs="125" feet="57" addons="0"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I can give you paladin eq the eq i have is 'mpa','mms','yalahari legs','demon helmet','infernal bolt','royal crossbow','assassin star' and 'boh' all for free!!"/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>


I will edit this post and add the rest of the scripts...

by the way what is the ip of your server ?? :)


Edit@

Druid and Sorc Script


go to data/npc/scripts create das.lua and add this:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'yalahari mask'}, xxxx, 0, 'yalahari mask')
shopModule:addBuyableItem({'focus cape'}, xxxx, 0, 'foucs cape')
shopModule:addBuyableItem({'blue legs'}, 7730, 0, 'blue legs')
shopModule:addBuyableItem({'wand of voodoo'}, xxxx, 0, 'wand of voodoo')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'underworld rod'}, xxxx, 0, 'underworld rod')
shopModule:addBuyableItem({'spellbook of dark mysteries'}, 8090, 0, 'spellbook of dark mysteries')


local items = {[1] = 7730, [2] = 3079, [5] = 8090}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
you have to add the id's of these items because i couldn't find the id's:
xxxx = yalahari mask
xxxx = focus cape
xxxx = wand of voodoo
xxxx = underworld rod

then go to data/npc and create whatevername.xml :p then add this (remember to change whatevername) :
<?xml version="1.0" encoding="UTF-8"?>
<npc name="whatevername" nameDescription="whatevername, the item giver" script="das.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="129" head="39" body="122" legs="125" feet="57" addons="0"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I can give you druid and sorcerer eq the eq i have is 'yalahar mask','focus cape','blue legs','wand of voodoo','underworld rod','spellbook of dark mysteries' and 'boh' all for free!!"/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>

Finished :D
 
Last edited:
Hey bro, I got this error:

[11/01/2010 11:47:36] [Error - LuaScriptInterface::loadFile] data/npc/scripts/knighteq.lua:32: '<eof>' expected near 'end'
[11/01/2010 11:47:36] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/knighteq.lua
[11/01/2010 11:47:36] data/npc/scripts/knighteq.lua:32: '<eof>' expected near 'end'
[11/01/2010 11:47:40] [Error - LuaScriptInterface::loadFile] data/npc/scripts/palleq.lua:32: '<eof>' expected near 'end'
[11/01/2010 11:47:40] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/palleq.lua
[11/01/2010 11:47:40] data/npc/scripts/palleq.lua:32: '<eof>' expected near 'end'
 
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Paladin Items" nameDescription="Paladin Items, the item giver" script="palleq.lua" walkinterval="2000" floorchange="0" skull="green">
<health now="100" max="100"/>
<look type="129" head="39" body="122" legs="125" feet="57" addons="0"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I can give you paladin eq the eq i have is 'mpa','mms','yalahari legs','demon helmet','infernal bolt','royal crossbow','assassin star' and 'boh' all for free!!"/>
<parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you? Get out of here!"/>
</parameters>
</npc>
First of all change paladin items.xml to this /\

and for change palleq.lua to
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'demon helmet'}, 3387, 0, 'demon helmet')
shopModule:addBuyableItem({'yalahari legs'}, xxxx, 0, 'yalahari legs')
shopModule:addBuyableItem({'mpa'}, 3366, 0, 'mpa')
shopModule:addBuyableItem({'mms'}, 3414, 0, 'mms')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'royal crossbow'}, 8023, 0, 'royal crossbow')
shopModule:addBuyableItem({'assassin star'}, 7368, 0, 100, 'assassin star')
shopModule:addBuyableItem({'infernal bolt'}, 6528, 0, 100,'infernal bolt')

local items = {[1] = 3387, [2] = 3366, [5] = 3079, [6] = 3414}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

and knighteq.lua to:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'demon helmet'}, 3387, 0, 'demon helmet')
shopModule:addBuyableItem({'golden legs'}, 3364, 0, 'golden legs')
shopModule:addBuyableItem({'mpa'}, 3366, 0, 'mpa')
shopModule:addBuyableItem({'mms'}, 3414, 0, 'mms')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'emerald sword'}, xxx, 0, 'emerald sword')
shopModule:addBuyableItem({'thunder hammer'}, 3309, 0, 'thunder hammer')
shopModule:addBuyableItem({'hellforged axe'}, xxx, 0, 'hellforged axe')

local items = {[1] = 3387, [2] = 3364, [5] = 3366, [6] = 3414}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

and remember you have to add the id's... for it to work..

and tell me if it's working..
 
Errors again:

[11/01/2010 15:08:38] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/palleq.lua
[11/01/2010 15:08:38] data/npc/scripts/palleq.lua:32: '<eof>' expected near 'end'
[11/01/2010 15:13:33] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/knighteq.lua
[11/01/2010 15:13:33] data/npc/scripts/knighteq.lua:31: '<eof>' expected near 'end'
 
It doesn't show the warning in das.lua..

try deleting
one of the 'end'
in both of them..

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'demon helmet'}, 3387, 0, 'demon helmet')
shopModule:addBuyableItem({'golden legs'}, 3364, 0, 'golden legs')
shopModule:addBuyableItem({'mpa'}, 3366, 0, 'mpa')
shopModule:addBuyableItem({'mms'}, 3414, 0, 'mms')
shopModule:addBuyableItem({'boh'}, 3079, 0, 'boh')
shopModule:addBuyableItem({'emerald sword'}, xxx, 0, 'emerald sword')
shopModule:addBuyableItem({'thunder hammer'}, 3309, 0, 'thunder hammer')
shopModule:addBuyableItem({'hellforged axe'}, xxx, 0, 'hellforged axe')

local items = {[1] = 3387, [2] = 3364, [5] = 3366, [6] = 3414}
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
end


return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Back
Top