• 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:
Use your advanced bp system. fill in the id from the parcel insteed of the bp and then the id from the label insteed of the runeid ;o

it wont work because if u look in modules.lua you'll see this

Code:
		elseif(parentParameters.eventType == SHOPMODULE_BUY_ITEM) then
			local ret = doPlayerBuyItem(cid, parentParameters.itemid, module.amount, parentParameters.cost*module.amount, parentParameters.charges)
			if(ret == LUA_NO_ERROR) then
[COLOR="Red"]				if parentParameters.itemid == 2595 then
					doPlayerAddItem(cid, 2599, parentParameters.amount, 0)[/COLOR]

That means if u buy an parcel u will get an label to, but if i take an bether lok at it i see it will only give u 1 label even is u buy 500 parcels it will give u 1 so i'm going to check if can change it to give label IN the parcel =)
 
Last edited:
Could you create a bed npc, like on TheSiteICannotName, topic no 71530. I've got the npc itself working, but the door is acting weird..

Thanks ^^
 
local parcel = doPlayerAddItem(cid, PARCELID, 1)
doAddContainerItem(parcel, LABELID, 1)

Nah it wont work if u ask for 2 parcels it will give you 3 parcels 2 empty and 1 with label inside It's not that i tested but it's how the code works..



Could you create a bed npc, like on TheSiteICannotName, topic no 71530. I've got the npc itself working, but the door is acting weird..

Thanks ^^

Post the npc here so i can look at it
 
Hello Again!

What for npc: Ghostship

What should the npc be able to do: I need npc ghostship with random for the ghostship and other city.

What advanced functions do u want: I don't know =\

Ps: Post one example of npc =)


Cya!
 
Hello Again!

What for npc: Ghostship

What should the npc be able to do: I need npc ghostship with random for the ghostship and other city.

What advanced functions do u want: I don't know =\

Ps: Post one example of npc =)


Cya!

Nice idea, can i use your idea in World of Therran?

Ps: It's just maybe.
 
Nice idea, can i use your idea in World of Therran?

Ps: It's just maybe.

Hmm just to tell you i'v seen it i'm going to use and "Rand" function but i need to know somting

How mutch % change should the player have to go to the ghost ship? like 10%?
 
Hello Again!

What for npc: Ghostship

What should the npc be able to do: I need npc ghostship with random for the ghostship and other city.

What advanced functions do u want: I don't know =\

Ps: Post one example of npc =)


Cya!

As u can see i'm working on it but i have some problems here is the script untail now i just made it on 6 minut's so i need to work on it :p
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
	
	rand = math.random(1,10)
		
	if msgcontains(msg, 'crap') then
	selfSay('Are u sure you want to go to crap, for 1gp?')
	destination = {x=741, y=935, z=7}
	cost = 1
	talk_state = 1
	
	elseif msgcontains(msg, 'lol') then
	selfSay('Are u sure you want to go to lol, for 1gp?')
    destination = {x=753, y=936, z=7}
	cost = 1
	talk_state = 1
	
	elseif msgcontains(msg, 'yes') and talk_state == 1 then
	if rand <= 1 then
	if doPlayerRemoveMoney(cid, cost) == TRUE then
	if doTeleportThing(cid,destination, 0) then
	else
    if doTeleportThing(cid,{x=749, y=940, z=7}, 0) then
	else
			selfSay("You don't have enough money.")
			talk_state = 0
		end
		end
	elseif msgcontains(msg, 'no') and talk_state == 1 then
		selfSay("Then not.")
		talk_state = 0
	end
	end
	end
	return TRUE
end

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

The npc wont teleport you to the other pos for some reason going to check it out later need to eat now =)


A summoner npc that says pig is coming in 3 2 1~
Is it possible?

Post it how you want it exactly! (Look at first post how
 
Last edited:
Status
Not open for further replies.
Back
Top