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

The Forgotten Server v0.2 (Mystic Spirit)

Status
Not open for further replies.
Hello I have bug,
Orginal TFS npcs says on default channel, but npcs must says on npcs channel.
OMG... Read all posts first. Didn't you read that Talaturen deleted NPC Channel because of bugs that will be fixed soon? He made npc system in default and this is not bug. Your fault
 
Talaturen, can show how to set up "Advanced BuyContainer" in this new system of NPCs?
http://otland.net/showthread.php?t=1375&highlight=buyContainer

Is there any way to put self clean with warning message?

And the problem of houses, that when the server is closed for some reason this when he cleared the loading houses. That has not been concerted or solution?

And is there any way to ask the NPC to runas to sell by X loads in place of fixed loads?

It was removed or changed the "doPlayerSay"?



Thank you and congratulations on optimal work.

Try this script:
Code:
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:addBuyableItemContainer({'bp sd'}, 2003, 2268, 6500, 6, 'backpack of sudden death')
shopModule:addBuyableItemContainer({'bp uh'}, 2002, 2273, 3500, 2, 'backpack of ultimate healing')

npcHandler:addModule(FocusModule:new())

It isn't possible to make auto clean in 0.2 unless you edit sourcecode.

There isn't any bug with houses, it's you who forget to save the server before you close it.

I don't think it's possible to make the NPC give x runes instead of a rune with x charges with the current NPC system.

doPlayerSay is deprecated, use doCreatureSay.
 
About the server!

Hey I got a problem.
This seams to be a XML server, but I think it's a SQL right?

But where are the account and players maps?

Or do I need to goto my routers internet page to add a GM etc?

I made a player and I can't find the account and the player I made.
 
He was using it;
function creatureSayCallback(cid, type, msg)
if(npcHandler.focus ~= cid) then
return FALSE
end
if msgcontains(msg, 'runes') then
selfSay("I sell heavy magic missiles runes, explosion runes, great fireball runes, ultimate healing runes, sudden death runes, mana runes and blank runes.")
talk_state = 0
elseif msgcontains(msg, 'heavy magic missile') or msgcontains(msg, 'hmm') and ShopModule:getCount(msg) <= 100 then
charges = ShopModule:getCount(msg)
price = 10*charges
selfSay('Do you want a heavy magic missile rune with '..charges..' charges for '..price..' gold coins?')
talk_state = 1
itemid = 2311
elseif msgcontains(msg, 'yes') and talk_state == 1 then
if doPlayerRemoveMoney(cid, price) == TRUE then
doPlayerGiveItem(cid, itemid, 1, charges)
selfSay("You have bought this rune.")
talk_state = 0
else
selfSay("You don't have enough money.")
talk_state = 0
end
elseif msgcontains(msg, 'no') and talk_state == 1 then
selfSay("Then not.")
talk_state = 0
end
return TRUE
end

I tried to use, does not appear the error message but does not work.
 
He was using it;


I tried to use, does not appear the error message but does not work.

The error is here:
if(npcHandler.focus ~= cid) then
return FALSE
end

Change it to:
if(npcHandler.focuses ~= cid) then
return FALSE
end
 
Talaturen,
Thank you very much, now that running 100%. Then I will share the NPC.

Still speaking of NPC, there is some Banker working for this compilation?
 
0.2 Patch 10 has been released. View first post for more information.
 
TY for the fix tala :) everyones happy... now to fix my addon npc and promo npc.. >.<
 
Hmm, cant find a oracle example and im having troubles with a script:S

PHP:
<interact keywords="1citzen" topic="2">
	<keywords>first citizen</keywords>

			<!--Premium account, b1 is set in above-->



	<response>

	  <action name="script">

<![CDATA[
	
	if isPremium(cid) == TRUE then
		if getPlayerItemCount(cid,5878) < 100 then 
		selfSay("I need 100 minotaur leather, to give you the first citizen addon. Come back when you have them.")
					_state.isidle = true
						
		else

		selfSay("Did you bring me 100 minotaur leathers?")
							_state.n1 = 1
          	_state.topic = 3
		end

	elseif isPremium(cid) == FALSE
	selfSay(addon_need_premium)
 
	end
]]>

	  </action>

	</response>

</interact>

When i try and make it check for premium it don't work and also i can't have spaces in keywords either or the npc just ignores you, maybe its a bug, maybe its my fault.

Anyhelp appreciated.
 
About the server!

Because you all did not answer me I post it again...

I got a problem.
This seams to be a XML server, but I think it's a SQL right?




But where are the account and players maps?


Or do I need to goto my routers internet page to add a GM etc?



I made a player and I can't find the account and the player I made.
 
Because you all did not answer me I post it again...

I got a problem.
This seams to be a XML server, but I think it's a SQL right?




But where are the account and players maps?


Or do I need to goto my routers internet page to add a GM etc?



I made a player and I can't find the account and the player I made.

Yes it's SQL.
You made the players from your database, website right?
Now you must use phpmyadmin to edit them.

go to

localhost/phpmyadmin

log in with root and the PW you put in your config.

from there you should prob look at a TUT for the rest.
 
Got the server and all and everything is cool, but how do i edit character and make my staff chars? theres no character folders...
 
try reading some Tutorials in the Tutorial section of the forum.

hit some SQL threads and read what you can and maybe you'll understand some :p
 
Respect for u tala, no asslicking or such, but ur tha MAN! U make the best ots ever xD fuck ****** it sucks donkeyfuck :D


HAHAHAH EDIT: POSTED Today, 13:37
 
Status
Not open for further replies.
Back
Top