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

Request your npcs here!!

Status
Not open for further replies.

Mokerhamer

Retired Global Mod
Senator
Joined
Aug 6, 2007
Messages
1,767
Reaction score
35
What you cant request, ALready released npc's like addon npc and blesser, npc like that that are already can be founded in this forum.

Ofcourse the npc's that i make will get released on otland.net! ANd i only make npc's for The Forgotten Server!



========~~~~~~~How to request~~~~~~~========
What for npc:

What should the npc be able to do:

What advanced functions do u want:
 
Last edited:
Hello Moker~

Now i need one npc of promotion. But that it looks at if the player is premium.

this it does not verify here \/

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



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

local node1 = keywordHandler:addKeyword({'promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to be promoted in your vocation for 20000 gold?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, promotions = {[1] = 5, [2] = 6, [3] = 7, [4] = 8}, cost = 20000, level = 20, text = 'Congratulations! You are now promoted.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Allright then. Come back when you are ready.', reset = true})

npcHandler:addModule(FocusModule:new())

Cya! and help-me. =)
 
How do I make that the rune seller will sell bp of runes?
I use umbyevo
tell me what wrong with this code :


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)
    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    if(npcHandler.focus ~= cid) then
        return false
    end

        if msgcontains(msg, 'bp sd') or msgcontains(msg, 'backpack sd') or msgcontains(msg, 'backpack of sudden death runes') then
            selfSay('Do you want buy bacpack of sudden death runes for 6000gp?')
            talk_state = 1
        elseif msgcontains(msg, 'bp uh') or msgcontains(msg, 'backpack uh') then
            selfSay('Do you want buy backpack of ultimate healing runes for 3000gp?')
            talk_state = 2
        elseif msgcontains(msg, 'bp explo') or msgcontains(msg, 'backpack explo') or msgcontains(msg, 'bp explosion') or msgcontains(msg, 'bacpack explosion') then
            selfSay('Do you want buy bacpack of explosion runes for 4000gp?')
            talk_state = 3
        elseif msgcontains(msg, 'bp hmm') or msgcontains(msg, 'backpack hmm') then
            selfSay('Do you want buy backpack of heavy magic missile runes for 2000gp?')
            talk_state = 4
        elseif msgcontains(msg, 'bp gfb') or msgcontains(msg, 'backpack gfb') then
            selfSay('Do you want buy backpack of great fireball runes for 3000gp?')
            talk_state = 5
        elseif msgcontains(msg, 'bp manafluids') or msgcontains(msg, 'backpack manafluids') then
            selfSay('Do you want buy backpack of manafluids for 1100gp?')
            talk_state = 6
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 1 then
                    buyContainer(cid,2003,2268,1,6000)
                talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 2 then
                    buyContainer(cid,2002,2273,1,3000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 3 then
                    buyContainer(cid,2001,2313,3,4000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 4 then
                    buyContainer(cid,2001,2311,5,2000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 5 then
                    buyContainer(cid,2000,2304,2,3000)
            talk_state = 0
            
            elseif msgcontains(msg, 'yes') and talk_state == 6 then
                    buyContainer(cid,2000,2006,7,1100)
            talk_state = 0

------------------------------------------------ confirm no ------------------------------------------------
        elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then
            selfSay('Ok than.')
            talk_state = 0
        end

    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
when i'm trying to talk to the npc it won't answer
 
How do I make that the rune seller will sell bp of runes?
I use umbyevo
tell me what wrong with this code :


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)
    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    if(npcHandler.focus ~= cid) then
        return false
    end

        if msgcontains(msg, 'bp sd') or msgcontains(msg, 'backpack sd') or msgcontains(msg, 'backpack of sudden death runes') then
            selfSay('Do you want buy bacpack of sudden death runes for 6000gp?')
            talk_state = 1
        elseif msgcontains(msg, 'bp uh') or msgcontains(msg, 'backpack uh') then
            selfSay('Do you want buy backpack of ultimate healing runes for 3000gp?')
            talk_state = 2
        elseif msgcontains(msg, 'bp explo') or msgcontains(msg, 'backpack explo') or msgcontains(msg, 'bp explosion') or msgcontains(msg, 'bacpack explosion') then
            selfSay('Do you want buy bacpack of explosion runes for 4000gp?')
            talk_state = 3
        elseif msgcontains(msg, 'bp hmm') or msgcontains(msg, 'backpack hmm') then
            selfSay('Do you want buy backpack of heavy magic missile runes for 2000gp?')
            talk_state = 4
        elseif msgcontains(msg, 'bp gfb') or msgcontains(msg, 'backpack gfb') then
            selfSay('Do you want buy backpack of great fireball runes for 3000gp?')
            talk_state = 5
        elseif msgcontains(msg, 'bp manafluids') or msgcontains(msg, 'backpack manafluids') then
            selfSay('Do you want buy backpack of manafluids for 1100gp?')
            talk_state = 6
------------------------------------------------ confirm yes ------------------------------------------------
        elseif msgcontains(msg, 'yes') and talk_state == 1 then
                    buyContainer(cid,2003,2268,1,6000)
                talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 2 then
                    buyContainer(cid,2002,2273,1,3000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 3 then
                    buyContainer(cid,2001,2313,3,4000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 4 then
                    buyContainer(cid,2001,2311,5,2000)
            talk_state = 0
            
         elseif msgcontains(msg, 'yes') and talk_state == 5 then
                    buyContainer(cid,2000,2304,2,3000)
            talk_state = 0
            
            elseif msgcontains(msg, 'yes') and talk_state == 6 then
                    buyContainer(cid,2000,2006,7,1100)
            talk_state = 0

------------------------------------------------ confirm no ------------------------------------------------
        elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then
            selfSay('Ok than.')
            talk_state = 0
        end

    -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
when i'm trying to talk to the npc it won't answer

I can advace you tp use my BuyContainer it's in lua section and it's way bether than this way
 
I don't want posts...
I want a NPC for TFS that says '/B Server has been online for 24 hours' after 24 hours.

Please post it exactly like it sais on the first post!


Anywais you are the last one who is able to request it
 
What for npc: ???

What should the npc be able to do:
After 24 hours it broadcasts 'server has been online for 24 hours'
What advanced functions do u want:
No advanced functions, just <refer up>

Nothing more... :)
 
What for npc: ???

What should the npc be able to do:
After 24 hours it broadcasts 'server has been online for 24 hours'
What advanced functions do u want:
No advanced functions, just <refer up>

Nothing more... :)


Requesting thread has been closed your the last one
 
Good i hate those freaking freaking noob people.

That ask for the same npc 100 times and so stupid npc's.

I know,and in the first post the can read how to request and what the can request, anywais he's the last one.

The people that aren't happy with the npc's i posted here or are bugged please msg me you have till 4-10-2007 till (Gmt 3:00) The time! (Only count for the people who requested)
 
Moker~

Look up on my post ^^

Of npc promotion.


Cya!

Lol oyu serious want it eh? then gimmy 1 min

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

local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
	node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, text = 'Congratulations! You are now promoted.'})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Allright then. Come back when you are ready.', reset = true})

	function creatureSayCallback(cid, type, msg)
	if(npcHandler.focus ~= cid) then
		return false
	end

-----------------------------------------------------ONLY CHANGES THIS!!!!--------------------------------	
      prise = 2000  ------2000 Means  2k for eatch day change it if u want
------------------------------------------DONT CHANGE ANYTHING ELSE!!!!-------------------
	  
	 days_error = 'You cant buy more then 50 days of premium.'
     no_money = 'You do not have enough of money'
		
if msgcontains(msg, 'days') or msgcontains(msg, 'day')and ShopModule:getCount(msg) <= 20 then
days = ShopModule:getCount(msg)
total = prise*days
selfSay('Are u sure you want to buy '..days..' premium days for '..total..' gold coins?')
talk_state = 1	

elseif msgcontains(msg, 'yes') and talk_state == 1 then
if doPlayerRemoveMoney(cid, total) == TRUE then
doPlayerAddPremiumDays(cid, days)
selfSay('You have successfully bought '..days..' day(s) of premium for '..total..' Gold pieces.')
else
selfSay(no_money)
end
		
		elseif msgcontains(msg, 'no') and talk_state == 1 then
			selfSay('Get out of my sight!')
			talk_state = 0
			end
	    return true
           end
	
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
Up: you didn't understand... i have the script of promotion, but it's bugged, it does promotion with the char no premium. This is the script bug, do you know fix it?


Cya!
 
Status
Not open for further replies.
Back
Top