• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC Sword Buyer [10.38+]

E

Evil Puncker

Guest
Sword Buyer.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Sword Buyer" script="Sword Buyer.lua" walkinterval="2000" floorchange="0">
    <health now="150" max="150"/>
    <look type ="139" head ="97" body ="121" legs ="22" feet ="114" addons ="1" mount ="402"/>
</npc>

Sword Buyer.lua
PHP:
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 shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'assassin dagger'}, 7404, 20000)
shopModule:addSellableItem({'berserker'}, 7403, 40000)
shopModule:addSellableItem({'blacksteel sword'}, 7406, 6000)
shopModule:addSellableItem({'blade of corruption'}, 12649, 60000)
shopModule:addSellableItem({'bloody edge'}, 7416, 30000)
shopModule:addSellableItem({'bone sword'}, 2450, 20)
shopModule:addSellableItem({'bright sword'}, 2407, 6000)
shopModule:addSellableItem({'broadsword'}, 2413, 500)
shopModule:addSellableItem({'carlin sword'}, 2395, 118)
shopModule:addSellableItem({'combat knife'}, 2404, 1)
shopModule:addSellableItem({'crystal sword'}, 7449, 600)
shopModule:addSellableItem({'dagger'}, 2379, 2)
shopModule:addSellableItem({'demonrage sword'}, 7382, 36000)
shopModule:addSellableItem({'djinn blade'}, 2451, 15000)
shopModule:addSellableItem({'dragon slayer'}, 7402, 15000)
shopModule:addSellableItem({'energy spike sword'}, 7869, 1000)
shopModule:addSellableItem({'epee'}, 2438, 8000)
shopModule:addSellableItem({'fire sword'}, 2392, 4000)
shopModule:addSellableItem({'giant sword'}, 2393, 17000)
shopModule:addSellableItem({'haunted blade'}, 7407, 8000)
shopModule:addSellableItem({'heavy machete'}, 2486, 90)
shopModule:addSellableItem({'ice rapier'}, 2396, 1000)
shopModule:addSellableItem({'katana'}, 2412, 35)
shopModule:addSellableItem({'longsword'}, 2397, 51)
shopModule:addSellableItem({'machete'}, 2420, 6)
shopModule:addSellableItem({'mercenary sword'}, 7386, 12000)
shopModule:addSellableItem({'mystic blade'}, 7384, 30000)
shopModule:addSellableItem({'nightmare blade'}, 7418, 35000)
shopModule:addSellableItem({'pharaoh sword'}, 2446, 23000)
shopModule:addSellableItem({'poison dagger'}, 2411, 50)
shopModule:addSellableItem({'rapier'}, 2384, 5)
shopModule:addSellableItem({'ratana'}, 20092, 500)
shopModule:addSellableItem({'relic sword'}, 7383, 25000)
shopModule:addSellableItem({'runed sword'}, 7417, 45000)
shopModule:addSellableItem({'sabre'}, 2385, 12)
shopModule:addSellableItem({'sai'}, 11306, 16500)
shopModule:addSellableItem({'scimitar'}, 2419, 150)
shopModule:addSellableItem({'serpent sword'}, 2409, 900)
shopModule:addSellableItem({'short sword'}, 2406, 10)
shopModule:addSellableItem({'silver dagger'}, 2402, 500)
shopModule:addSellableItem({'spike sword'}, 2383, 1000)
shopModule:addSellableItem({'sword'}, 2376, 25)
shopModule:addSellableItem({'templar scytheblade'}, 3963, 200)
shopModule:addSellableItem({'thaian sword'}, 7391, 16000)
shopModule:addSellableItem({'the avenger'}, 6528, 42000)
shopModule:addSellableItem({'the justice seeker'}, 7390, 40000)
shopModule:addSellableItem({'twiceslicer'}, 12613, 28000)
shopModule:addSellableItem({'twin hooks'}, 11309, 500)
shopModule:addSellableItem({'two handed sword'}, 2377, 450)
shopModule:addSellableItem({'wyvern fang'}, 7408, 1500)
shopModule:addSellableItem({'Zaoan sword'}, 11307, 30000)

npcHandler:addModule(FocusModule:new())
 
Back
Top