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

[8.60] The Forgotten Server 0.3.6 (Crying Damson) V8

Whats wrong with potions?

- - - Updated - - -

Do what zakius told you.

I didnt even think about that, i aimed for the most annoying bug out there. House bug. This bug cause the server crash. So i fixed it, now none can be crashed by the house bug.



Have you fixed the elfbot bug?

Using 10 hotkeys on a creature makes cpu 100%
 
Otswe = Scammer.

Lol, he is mad about his ddos theard xD

Also how can i be a scammer i dont even sell the product and also it have been checked by mod.

- - - Updated - - -

Have you fixed the elfbot bug?

Using 10 hotkeys on a creature makes cpu 100%

How do you mean?

That server is protected with auto combo detector. Your PC should not get 100% cpu maybe your comp?
 
otswe.
i know perfect how to run an otserv (basicaly)
i've an otserv online and i downloaded yours cuz they say that your distro is stable.
but i change all ports and world id to open as a test (my ot is online, yours for test.) and it shows any char on account manager account, and incorrect password if i use my database.
already tried sqlite, mysql or my mysql.

what can be?
 
make sure at config.lua that account manager is true

Lua:
-- Account manager
	accountManager = true
 
it is .-.
i need to try on default ports, but then i need to close my server.
 
Thanks, I used the potion script in page 17 :) its possible to keep empty vial?

Also can I add own actionid to make lvl reqired teleporter so low oblige can't enter strong teleporter?
 
Try this ;-p

Lua:
local config = {
	removeOnUse = "no",
	usableOnTarget = "yes", -- can be used on target? (fe. healing friend)
	splashable = "no",
	realAnimation = "no", -- make text effect visible only for players in range 1x1
	healthMultiplier = 1.0,
	manaMultiplier = 1.0
}
 
config.removeOnUse = getBooleanFromString(config.removeOnUse)
config.usableOnTarget = getBooleanFromString(config.usableOnTarget)
config.splashable = getBooleanFromString(config.splashable)
config.realAnimation = getBooleanFromString(config.realAnimation)
 
local POTIONS = {
	[8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
	[7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
	[7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8, 11, 12}, vocStr = "knights and paladins"}, -- strong health potion
	[7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- great health potion
	[8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8, 12}, vocStr = "knights"}, -- ultimate health potion
 
	[7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion
	[7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10 ,11}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
	[7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6, 9, 10}, vocStr = "sorcerers and druids"}, -- great mana potion
 
	[8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7, 11}, vocStr = "paladins"} -- great spirit potion
}
 
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local potion = POTIONS[item.itemid]
	if(not potion) then
		return false
	end
 
	if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then
		if(not config.splashable) then
			return false
		end
 
		if(toPosition.x == CONTAINER_POSITION) then
			toPosition = getThingPos(item.uid)
		end
 
		doDecayItem(doCreateItem(2016, potion.splash, toPosition))
		doTransformItem(item.uid, potion.empty)
		return true
	end
 
	if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return true
	end
 
	if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and
		not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES))
	then
		doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return true
	end
 
	local health = potion.health
	if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then
		return false
	end
 
	local mana = potion.mana
	if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then
		return false
	end
 
	doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
	if(not realAnimation) then
		doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
   	        setPlayerStorageValue(cid, 21066, getCreatureStorage(cid, 21066) + 1)
	else
		for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do
			if(isPlayer(tid)) then
				doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid)
			end
		end
	end
 
	doAddCondition(cid, exhaust)
	if(not potion.empty or config.removeOnUse) then
		doRemoveItem(item.uid, 1)
		return true
	end
	doRemoveItem(item.uid, 1)
	doPlayerAddItem(cid, potion.empty, 1)
    pot_count = getPlayerItemCount(cid, potion.empty)
    doPlayerRemoveItem(cid, potion.empty, pot_count)
    doPlayerAddItem(cid, potion.empty, pot_count)
	return true
end

- - - Updated - - -

Also can I add own actionid to make lvl reqired teleporter so low oblige can't enter strong teleporter?

I think that script in movement's will be the best ;-)
 
It's prob more of a map question but how can I stop training monks from moving into space when player enters the door for trainers?
I want the 2 monks to stay there 2 tiles but still attack player and be attacked
 
OTSWE I sent u a msg but I think that you missd it so I will post it here.

I've been using your version of The Forgotten Server V5 and I have a problem with NPC's. They catching a player conversation from maximum 2 squares. I have also downloaded source but I have problems with compiling a TFS with changed value so can you change in npc.cpp "talkRadius = 2;" to "talkRadius = 3;" and send me a link to download ;-p?

Thanks for any help,
Nutaharion
 
I thougt that is editable at npc/scripts then open a lua file you want edit try to edit this line Ex:
Code:
(getDistanceToCreature(cid) <= 4))
 
I tried that ;-/
It's must be sth with distribution. I checked a few things in you source and I'm thinking that it's that so can you change it for me please?
 
I think that script in movement's will be the best ;-)
you can help me with this? tried editing itemid 1387 in movement.xml but not working, i dont want all teleporters to be req lvl but only selected porters with selected levels, im going to try add a special tile that u cant walk over under the porter to see if that works.

also its possible to add animated text over teleporter?
 
Omg deadli if your going to make a teleport which require level then you need do it with actionid.

Code:
<movevent type="StepIn" actionid="1000" event="script" value="teleport.lua"/>

Then go to mapeditor and put the actionid you 1000 on the teleport.

For the text above there is many scripts just use search:

Add this at globalevent.xml
Code:
<globalevent name="effects]" interval="1" event="script" value="effects.lua"/>

Then goto globalevent/scripts and make a new lua name it "effects" and paste the script below!
Lua:
local config = {
positions = {
["Hunt"] = { x = 350, y = 1994, z = 9 }, -- Edit the Pos of the teleport and Text! Max 9 letters!
["Training"] = { x = 350, y = 1994, z = 9 },
["Depot"] = { x = 350, y = 1994, z = 9 },
},

effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA
},

colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_BLUE
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
end
return TRUE
end
 
Back
Top