• 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.3 (alpha 2)

Status
Not open for further replies.
o.0, Really, backpacks drop is 100% ;] There is no loss_backpack;D

Thats what i say :)
But it would be just logical if i say lose_items = 0% that i would not lose my backpack too.

btw ive found out how to set lose in database ingame!
Just use:

doPlayerSetLossPercent(cid, lossType, newPercent)
lossType can be 0,1,2,3
if you will set it on Playerstart, just use the file "firstitems" and put the missing code in:

Code:
local firstItems =
{
	2050,
	2382
}

function onLogin(cid)
	if getPlayerStorageValue(cid, 30001) == -1 then
		doPlayerSetLossPercent(cid, 0, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 1, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 2, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 3, 10) --- change 10 to your %
		for i = 1, table.maxn(firstItems) do
			doPlayerAddItem(cid, firstItems[i], 1)
		end
		if getPlayerSex(cid) == 0 then
			doPlayerAddItem(cid, 2651, 1)
		else
			doPlayerAddItem(cid, 2650, 1)
		end
		local bag = doPlayerAddItem(cid, 1987, 1)
		doAddContainerItem(bag, 2674, 1)
		setPlayerStorageValue(cid, 30001, 1)
	end
 	return TRUE
end

This way you will set the % just one time on the first login from the player :)

Baba
Virgel
 
TFS 0.3 Alpha 3 it's going to be able for Tibia 8.3X?
 
Yes. I've already finished 'Ignore capacity' and 'Buy with backpacks', just have to make it compatible with npc.lua function :)
 
Thats what i say :)
But it would be just logical if i say lose_items = 0% that i would not lose my backpack too.

btw ive found out how to set lose in database ingame!
Just use:

doPlayerSetLossPercent(cid, lossType, newPercent)
lossType can be 0,1,2,3
if you will set it on Playerstart, just use the file "firstitems" and put the missing code in:

Code:
local firstItems =
{
	2050,
	2382
}

function onLogin(cid)
	if getPlayerStorageValue(cid, 30001) == -1 then
		doPlayerSetLossPercent(cid, 0, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 1, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 2, 10) --- change 10 to your %
		doPlayerSetLossPercent(cid, 3, 10) --- change 10 to your %
		for i = 1, table.maxn(firstItems) do
			doPlayerAddItem(cid, firstItems[i], 1)
		end
		if getPlayerSex(cid) == 0 then
			doPlayerAddItem(cid, 2651, 1)
		else
			doPlayerAddItem(cid, 2650, 1)
		end
		local bag = doPlayerAddItem(cid, 1987, 1)
		doAddContainerItem(bag, 2674, 1)
		setPlayerStorageValue(cid, 30001, 1)
	end
 	return TRUE
end

This way you will set the % just one time on the first login from the player :)

Baba
Virgel

sounds logical to me should be made like that if its not already
 
elf why npc banker, healer and npc who change something for item dont work?;/ what i must do? i really need it;/
 
onAdvance Problem

Greetings Elf,

I try to give the player an textmessage when he get lvl5

Code:
function onAdvance(cid, LEVEL, oldlevel, newlevel)
	if newlevel == 5 then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have reached level 5.")
	end	
end

Code:
<event type="advance" name="LVLTEXT" script="lvltext.lua"/>

Ive found my misstake:
You need to register it on PlayerLogin!

Baba
Virgel
 
Last edited:
Have a sux bug..
Demon doesn't summon fire elemental if you thrown fire bomb ;p ( There is not enough room. I think ^^ )
The same in Orshabaal.. doens't summon the demons ^^

Waiting for a3 =]
 
NPC Bug. When I use the trade to sell the 'Crown Armor' he paid 100gp, when I use 'sell crown armor' he paid 10000gp.
 
can I look your npc script?

It won't help because I have exacly same bug, I put the price 10k but when u write trade and look into window price is 100gp. I think something is wrong in tfs with c armor, its sounds strange :d
 
It won't help because I have exacly same bug, I put the price 10k but when u write trade and look into window price is 100gp. I think something is wrong in tfs with c armor, its sounds strange :d
Here.. it's fine..
13:47 Npc: Do you want to sell 1 crown armor for 9000 gold coins?
In trade show the same thing..
;)
 
Waiting for beta version.
I fixed some bugs but some of them are complex that's why waiting for new version.

Anyway Thanks for great advance in alpha 02
almost perfect no doubt.
 
Status
Not open for further replies.
Back
Top