If nobody give a chance never will know if it will work, if ppl dont support this, obv wont work
mana fluids are 55 gps, and rotworms drop 60 gps.
this server is not a 7.1, it's a bad hybrid between 7.1, 7.4 and 7.6 or something.
gogo sorc make bp gfb with manafluids for 2k/bp and get 2k cash by hunting rots in 15 min.
This were fixed, If you didnt notice?
yeah i saw that now, wasnt fixed when i posted though.
mana fluids still 55 gps?
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local topic
local count = 0
local m = 4294967296
local transfer = {}
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
function greetCallback(cid)
topic, count, transfer = nil, 0, nil
return true
end
npcHandler:setMessage(MESSAGE_GREET, "Yes? What may I do for you, |PLAYERNAME|?")
npcHandler:setMessage(MESSAGE_PLACEDINQUEUE, "It's not your turn |PLAYERNAME|. Wait please.")
npcHandler:setMessage(MESSAGE_WALKAWAY, "Have a nice day.")
npcHandler:setMessage(MESSAGE_IDLETIMEOUT, "Have a nice day.")
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "My name? Ebenizer!"})
keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am running this Bank"})
keywordHandler:addKeyword({'king'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hail to the king!"})
keywordHandler:addKeyword({'tibianus'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hail to the king!"})
keywordHandler:addKeyword({'army'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Soldiers have not that much money that I would care about."})
keywordHandler:addKeyword({'ferumbras'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "A true threat to wealth and trade."})
keywordHandler:addKeyword({'excalibug'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "This weapon, if real, might be worth a lot."})
keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "We are in constant contact with the city of Thais."})
keywordHandler:addKeyword({'tibia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "There are countless ways of profit in this world."})
keywordHandler:addKeyword({'carlin'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "It's underdeveloped and economically insignificant."})
keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The riches of our isle are its mineral resources."})
keywordHandler:addKeyword({'new'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only care about financial news."})
keywordHandler:addKeyword({'rumo'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only care about financial news."})
function creatureSayCallback(cid, type, msg)
if npcHandler.focus ~= cid then
return false
end
local t
if msgcontains(msg, "bye") or msgcontains(msg, "farewell") then
npcHandler:say("Have a nice day.")
npcHandler:releaseFocus()
elseif msgcontains(msg, "time") then
npcHandler:say("It is ".. time ..", precisely.")
elseif msgcontains(msg, "change gold") then
npcHandler:say("How many platinum coins would you like to get?")
t = 1
elseif msgcontains(msg, "change platinum") then
npcHandler:say("Do you want to change your platinum coins to gold or crystal?")
t = 3
elseif msgcontains(msg, "change crystal") then
npcHandler:say("How many crystal coins do you want to change to platinum?")
t = 8
elseif topic == 8 then
local a = getCount(msg)
if a < 1 then
t = 8
else
count = a
npcHandler:say("So I should change ".. a .." of your crystal coins to ".. a * 100 .." platinum coins for you?")
t = 9
end
elseif topic == 3 then
if msgcontains(msg, "gold") then
npcHandler:say("How many platinum coins do you want to change to gold?")
t = 4
elseif msgcontains(msg, "crystal") then
npcHandler:say("How many crystal coins do you want to get?")
t = 5
end
elseif topic == 4 then
local a = getCount(msg)
if a < 1 then
t = 4
else
count = a
npcHandler:say("So I should change ".. a .." of your platinum coins to ".. a * 100 .." gold coins for you?")
t = 6
end
elseif topic == 5 then
local a = getCount(msg)
if a < 1 then
t = 5
else
count = a
npcHandler:say("So I should change ".. a * 100 .." of your platinum coins to ".. a .." crystal coins for you?")
t = 7
end
elseif topic == 1 then
local a = getCount(msg)
if a < 1 then
t = 1
else
count = a
npcHandler:say("So I should change ".. a * 100 .." of your gold coins to " .. count .. " platinum coins for you?")
t = 2
end
elseif topic == 9 and msgcontains(msg, "yes") then
if doPlayerRemoveItem(cid, 2160, count) == TRUE then
npcHandler:say("Here you go")
doPlayerGiveItem(cid, 2152, count * 100)
else
npcHandler:say("You don't have ".. count .." crystal coins.")
end
elseif topic == 7 and msgcontains(msg, "yes") then
if doPlayerRemoveItem(cid, 2152, count * 100) == TRUE then
npcHandler:say("Here you go")
doPlayerGiveItem(cid, 2160, count)
else
npcHandler:say("You don't have ".. count * 100 .." platinum coins.")
end
elseif topic == 6 and msgcontains(msg, "yes") then
if doPlayerRemoveItem(cid, 2152, count) == TRUE then
npcHandler:say("Here you go")
doPlayerGiveItem(cid, 2148, count * 100)
else
npcHandler:say("You don't have ".. count * 100 .." platinum coins.")
end
elseif topic == 2 and msgcontains(msg, "yes") then
if doPlayerRemoveItem(cid, 2148, count * 100) == TRUE then
npcHandler:say("Here you go")
doPlayerGiveItem(cid, 2152, count)
else
npcHandler:say("You don't have ".. count * 100 .." gold coins.")
end
elseif isInArray({9,7,6,2}, topic) == TRUE then
npcHandler:say("Well, can I help you with something else?")
elseif msgcontains(msg, "deposit") then
npcHandler:say("Please tell me how much gold it is you would like to deposit.")
t = 10
elseif topic == 10 then
local a = getCount(msg)
if getPlayerMoney(cid) < a then
npcHandler:say("You do not have enough gold.")
else
if a < 1 or a > m then
npcHandler:say("You are joking, aren't you?")
else
count = a
npcHandler:say("Would you really like to deposit ".. a .." gold?")
t = 11
end
end
elseif topic == 11 then
if msgcontains(msg, "yes") then
doPlayerDepositMoney(cid, count)
npcHandler:say("Alright, we have added the amount of ".. count .." gold to your balance. You can withdraw your money anytime you want to.")
else
npcHandler:say("As you wish. Is there something else I can do for you?")
end
elseif msgcontains(msg, "transfer") then
npcHandler:say("Please tell me the amount of gold you would like to transfer.")
t = 12
elseif topic == 12 then
local a = getCount(msg)
if getPlayerBalance(cid) < a then
npcHandler:say("There is not enough gold on your account.")
else
if a < 1 or a > m then
npcHandler:say("Please think about it. Okay?")
else
count = a
npcHandler:say("Who would you like transfer ".. a .." gold to?")
t = 13
end
end
elseif topic == 13 then
transfer = msg
if playerExists(transfer) then
npcHandler:say("So you would like to transfer ".. count .. " gold to ".. transfer .."?")
t = 14
else
npcHandler:say("This player does not exist.")
t = 13
end
elseif topic == 14 then
if msgcontains(msg, "yes") then
doPlayerTransferMoneyTo(cid, transfer, count)
npcHandler:say("You have transferred ".. count .." gold to ".. transfer..".")
else
npcHandler:say("Ok. What is next?")
end
elseif msgcontains(msg, "withdraw") then
npcHandler:say("Please tell me how much gold you would like to withdraw.")
t = 15
elseif topic == 15 then
local a = getCount(msg)
if getPlayerBalance(cid) < a then
npcHandler:say("There is not enough gold on your account.")
else
if a < 1 or a > m then
npcHandler:say("Sure, you want nothing you get nothing!")
else
count = a
npcHandler:say("Are you sure you wish to withdraw ".. a .." gold from your bank account?")
t = 16
end
end
elseif topic == 16 then
if msgcontains(msg, "yes") then
doPlayerWithdrawMoney(cid, count)
npcHandler:say("Here you are, ".. count.. " gold. Please let me know if there is something else I can do for you.")
else
npcHandler:say("The customer is king! Come back anytime you want to if you wish to withdraw your money.")
end
end
topic = t
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Jeez.
Code:local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local topic local count = 0 local m = 4294967296 local transfer = {} 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 function greetCallback(cid) topic, count, transfer = nil, 0, nil return true end npcHandler:setMessage(MESSAGE_GREET, "Yes? What may I do for you, |PLAYERNAME|?") npcHandler:setMessage(MESSAGE_PLACEDINQUEUE, "It's not your turn |PLAYERNAME|. Wait please.") npcHandler:setMessage(MESSAGE_WALKAWAY, "Have a nice day.") npcHandler:setMessage(MESSAGE_IDLETIMEOUT, "Have a nice day.") npcHandler:setCallback(CALLBACK_GREET, greetCallback) keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "My name? Ebenizer!"}) keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I am running this Bank"}) keywordHandler:addKeyword({'king'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hail to the king!"}) keywordHandler:addKeyword({'tibianus'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Hail to the king!"}) keywordHandler:addKeyword({'army'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Soldiers have not that much money that I would care about."}) keywordHandler:addKeyword({'ferumbras'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "A true threat to wealth and trade."}) keywordHandler:addKeyword({'excalibug'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "This weapon, if real, might be worth a lot."}) keywordHandler:addKeyword({'thais'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "We are in constant contact with the city of Thais."}) keywordHandler:addKeyword({'tibia'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "There are countless ways of profit in this world."}) keywordHandler:addKeyword({'carlin'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "It's underdeveloped and economically insignificant."}) keywordHandler:addKeyword({'edron'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "The riches of our isle are its mineral resources."}) keywordHandler:addKeyword({'new'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only care about financial news."}) keywordHandler:addKeyword({'rumo'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only care about financial news."}) function creatureSayCallback(cid, type, msg) if npcHandler.focus ~= cid then return false end local t if msgcontains(msg, "bye") or msgcontains(msg, "farewell") then npcHandler:say("Have a nice day.") npcHandler:releaseFocus() elseif msgcontains(msg, "time") then npcHandler:say("It is ".. time ..", precisely.") elseif msgcontains(msg, "change gold") then npcHandler:say("How many platinum coins would you like to get?") t = 1 elseif msgcontains(msg, "change platinum") then npcHandler:say("Do you want to change your platinum coins to gold or crystal?") t = 3 elseif msgcontains(msg, "change crystal") then npcHandler:say("How many crystal coins do you want to change to platinum?") t = 8 elseif topic == 8 then local a = getCount(msg) if a < 1 then t = 8 else count = a npcHandler:say("So I should change ".. a .." of your crystal coins to ".. a * 100 .." platinum coins for you?") t = 9 end elseif topic == 3 then if msgcontains(msg, "gold") then npcHandler:say("How many platinum coins do you want to change to gold?") t = 4 elseif msgcontains(msg, "crystal") then npcHandler:say("How many crystal coins do you want to get?") t = 5 end elseif topic == 4 then local a = getCount(msg) if a < 1 then t = 4 else count = a npcHandler:say("So I should change ".. a .." of your platinum coins to ".. a * 100 .." gold coins for you?") t = 6 end elseif topic == 5 then local a = getCount(msg) if a < 1 then t = 5 else count = a npcHandler:say("So I should change ".. a * 100 .." of your platinum coins to ".. a .." crystal coins for you?") t = 7 end elseif topic == 1 then local a = getCount(msg) if a < 1 then t = 1 else count = a npcHandler:say("So I should change ".. a * 100 .." of your gold coins to " .. count .. " platinum coins for you?") t = 2 end elseif topic == 9 and msgcontains(msg, "yes") then if doPlayerRemoveItem(cid, 2160, count) == TRUE then npcHandler:say("Here you go") doPlayerGiveItem(cid, 2152, count * 100) else npcHandler:say("You don't have ".. count .." crystal coins.") end elseif topic == 7 and msgcontains(msg, "yes") then if doPlayerRemoveItem(cid, 2152, count * 100) == TRUE then npcHandler:say("Here you go") doPlayerGiveItem(cid, 2160, count) else npcHandler:say("You don't have ".. count * 100 .." platinum coins.") end elseif topic == 6 and msgcontains(msg, "yes") then if doPlayerRemoveItem(cid, 2152, count) == TRUE then npcHandler:say("Here you go") doPlayerGiveItem(cid, 2148, count * 100) else npcHandler:say("You don't have ".. count * 100 .." platinum coins.") end elseif topic == 2 and msgcontains(msg, "yes") then if doPlayerRemoveItem(cid, 2148, count * 100) == TRUE then npcHandler:say("Here you go") doPlayerGiveItem(cid, 2152, count) else npcHandler:say("You don't have ".. count * 100 .." gold coins.") end elseif isInArray({9,7,6,2}, topic) == TRUE then npcHandler:say("Well, can I help you with something else?") elseif msgcontains(msg, "deposit") then npcHandler:say("Please tell me how much gold it is you would like to deposit.") t = 10 elseif topic == 10 then local a = getCount(msg) if getPlayerMoney(cid) < a then npcHandler:say("You do not have enough gold.") else if a < 1 or a > m then npcHandler:say("You are joking, aren't you?") else count = a npcHandler:say("Would you really like to deposit ".. a .." gold?") t = 11 end end elseif topic == 11 then if msgcontains(msg, "yes") then doPlayerDepositMoney(cid, count) npcHandler:say("Alright, we have added the amount of ".. count .." gold to your balance. You can withdraw your money anytime you want to.") else npcHandler:say("As you wish. Is there something else I can do for you?") end elseif msgcontains(msg, "transfer") then npcHandler:say("Please tell me the amount of gold you would like to transfer.") t = 12 elseif topic == 12 then local a = getCount(msg) if getPlayerBalance(cid) < a then npcHandler:say("There is not enough gold on your account.") else if a < 1 or a > m then npcHandler:say("Please think about it. Okay?") else count = a npcHandler:say("Who would you like transfer ".. a .." gold to?") t = 13 end end elseif topic == 13 then transfer = msg if playerExists(transfer) then npcHandler:say("So you would like to transfer ".. count .. " gold to ".. transfer .."?") t = 14 else npcHandler:say("This player does not exist.") t = 13 end elseif topic == 14 then if msgcontains(msg, "yes") then doPlayerTransferMoneyTo(cid, transfer, count) npcHandler:say("You have transferred ".. count .." gold to ".. transfer..".") else npcHandler:say("Ok. What is next?") end elseif msgcontains(msg, "withdraw") then npcHandler:say("Please tell me how much gold you would like to withdraw.") t = 15 elseif topic == 15 then local a = getCount(msg) if getPlayerBalance(cid) < a then npcHandler:say("There is not enough gold on your account.") else if a < 1 or a > m then npcHandler:say("Sure, you want nothing you get nothing!") else count = a npcHandler:say("Are you sure you wish to withdraw ".. a .." gold from your bank account?") t = 16 end end elseif topic == 16 then if msgcontains(msg, "yes") then doPlayerWithdrawMoney(cid, count) npcHandler:say("Here you are, ".. count.. " gold. Please let me know if there is something else I can do for you.") else npcHandler:say("The customer is king! Come back anytime you want to if you wish to withdraw your money.") end end topic = t return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
Was unable to change any gold in Thais.
/Dapper Dan in game