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

[7.72] OTHire 0.0.1b - Based in OTServ Trunk (Latest)

You restarted the server? I don't know if it reloads lib files. Try those:

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

-- OTServ event handling functions start
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
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg) msg = string.lower(msg)
  if(npcHandler.focus ~= cid) then
  return false
  end
  if msgcontains(msg, 'vial') then
  NPCSay("I will give you 5 gold for every empty vial of yours, accept?", 1)
  npc01_talk_state = 857
  elseif npc01_talk_state == 857 and msgcontains(msg, 'yes') then
  if SellPlayerEmptyVials(cid) == true then
  NPCSay("Here's your money!", 1)
  npc01_talk_state = 0
  else
  NPCSay("You don't have any empty vials!", 1)
  npc01_talk_state = 0
  end
  end
end

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

-- Spell Book

shopModule:addBuyableItem({'spellbook'}, 2175, 150,   'spellbook')

-- Fluids

shopModule:addBuyableItem({'life fluid','lifefluid','health potion','healthpotion','health'}, 2006, 60,10,'life fluid')
shopModule:addBuyableItem({'mana fluid','manafluid','mana potion','manapotion','mana'},2006,55,7,'mana fluid')

-- Runes
shopModule:addBuyableItem({'blank', 'rune'},2260, 10,'blank rune')


npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
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
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg) msg = string.lower(msg)
  if(npcHandler.focus ~= cid) then
  return false
  end
  if msgcontains(msg, 'vial') then
  NPCSay("I will give you 5 gold for every empty vial of yours, accept?", 1)
  npc01_talk_state = 857
  elseif npc01_talk_state == 857 and msgcontains(msg, 'yes') then
  if SellPlayerEmptyVials(cid) == true then
  NPCSay("Here's your money!", 1)
  npc01_talk_state = 0
  else
  NPCSay("You don't have any empty vials!", 1)
  npc01_talk_state = 0
  end
  end

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

-- Spell Book

shopModule:addBuyableItem({'spellbook'}, 2175, 150,   'spellbook')

-- Fluids

shopModule:addBuyableItem({'life fluid','lifefluid','health potion','healthpotion','health'}, 2006, 60,10,'life fluid')
shopModule:addBuyableItem({'mana fluid','manafluid','mana potion','manapotion','mana'},2006,55,7,'mana fluid')

-- Runes
shopModule:addBuyableItem({'blank', 'rune'},2260, 10,'blank rune')
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Peonso could you tell me if have libs for compiling OldGuilcera for ubuntu 12 or 14?
Sources at oldguilcera github project are just normal OTHire without the last commit. I have no libs for it.
 
I'm guessing the only issues are the ones at GitHub is that correct?
 
How to use Remere's Map Editor in this OTServ
  1. Download the following .rar containing clients.xml & items.otb (Do not use the OTB in your data pack)
  2. https://anonfiles.com/file/b67a70eac4cf47186709384a5c3c01f9
  3. Replace clients.xml in your RME folder with the one in the compressed package.
  4. Place items.otb in the corresponding folder.
  5. Open your map or create a new one.
  6. Go to Map -> Properties -> Map Version -> Select 0.6.0, then Client Version -> 7.60
  7. Save
This anonfiles.com isn't working i cant download @Peonso
 
How to use Remere's Map Editor in this OTServ
  1. Download the following .rar containing clients.xml & items.otb (Do not use the OTB in your data pack)
  2. https://anonfiles.com/file/b67a70eac4cf47186709384a5c3c01f9
  3. Replace clients.xml in your RME folder with the one in the compressed package.
  4. Place items.otb in the corresponding folder.
  5. Open your map or create a new one.
  6. Go to Map -> Properties -> Map Version -> Select 0.6.0, then Client Version -> 7.60
  7. Save
This anonfiles.com isn't working i cant download @Peonso

You can download the files at my last post.
 
How to use Remere's Map Editor in this OTServ
  1. Download the following .rar containing clients.xml & items.otb (Do not use the OTB in your data pack)
  2. https://anonfiles.com/file/b67a70eac4cf47186709384a5c3c01f9
  3. Replace clients.xml in your RME folder with the one in the compressed package.
  4. Place items.otb in the corresponding folder.
  5. Open your map or create a new one.
  6. Go to Map -> Properties -> Map Version -> Select 0.6.0, then Client Version -> 7.60
  7. Save
This anonfiles.com isn't working i cant download @Peonso

Peonso uploaded the files that were in that link.
 
I try to follow the "Compiling under Windows (Visual Studio 2010 2013)"

I can't complete it self, there are errors.

First question, wich source code I Should use? and wich libs?
I took this Source "https://github.com/TwistedScorpio/OTHire/tree/master/source"
and this libraries HERE

it is right?

and next question, what is meaning with "Setting project up" in the Compiling

Sorry for the noobish question, I really want learn this! Wourld be perfect, if anyone can help me.

I use Visual Studio 2013. Thanks!!!
 
I try to follow the "Compiling under Windows (Visual Studio 2010 2013)"

I can't complete it self, there are errors.

First question, wich source code I Should use? and wich libs?
I took this Source "https://github.com/TwistedScorpio/OTHire/tree/master/source"
and this libraries HERE

it is right?

and next question, what is meaning with "Setting project up" in the Compiling

Sorry for the noobish question, I really want learn this! Wourld be perfect, if anyone can help me.

I use Visual Studio 2013. Thanks!!!
in the guide setting project up is just a new step like adding files, etc. Gonna edit if I can.
I compiled it on mac and debian so it should work for windows, idk rly.
 
in the guide setting project up is just a new step like adding files, etc. Gonna edit if I can.
I compiled it on mac and debian so it should work for windows, idk rly.


mmhh okay, thanks. And the sources wich i used, are the right one?
 
mmhh okay, thanks. And the sources wich i used, are the right one?
I tried in MSVC 2013 and couldn't do it, its all setup for MSVC 2010, you need to change settings at MSVC 2013 for it to work as 2010, but I don't really know how this shit works, you won't be able to set Platform Toolset 'v100' at default MSVC 2013. My best tip is using MSVC 2010.
 
I tried in MSVC 2013 and couldn't do it, its all setup for MSVC 2010, you need to change settings at MSVC 2013 for it to work as 2010, but I don't really know how this shit works, you won't be able to set Platform Toolset 'v100' at default MSVC 2013. My best tip is using MSVC 2010.

Thank you, I'll try it soon with MSVC 2010
 
Back
Top