Forum

> > CS2D > Scripts > Tibia Requests
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia Requests

60 replies
Page
To the start Previous 1 2 3 4 Next To the start

old Tibia Requests

Jynxxx
User Off Offline

Quote
Yes I know there is a thread about this but the person who made it no longer posts so why not make one so I can help people.

This thread is so people can request or ask for help in their tibia edit, Yes I will do full work of what you will request but please all I ask is to just explain fully of what you want.

So recent thread of people asking about fishing/classes/etc.

Classes is just like the classes in the sample folder, in my opinion if it works then use it, It doesn't need to look all good or work efficiently, it just needs to work!

So to show people how to make their fishing...

Fishing >


Now on to classes...

Like I said before the classes don't have to look all good or well coded, they just have to work!

Classes >


I have seen people say how do they check the players next exp needed till the next level. So below is the hudtext to show what the experience need for the player to level up.

Experience Needed >


This is all I remember right now, if you would like to request something please do so hopefully this thread will not get closed, I'm just trying to help people because the dickheads in this community won't help anyone but themselves.

If there is something you don't understand please post below. Thank you for reading, if you actually did read it.

Also please do not post some bullshit on this thread, please keep it clean. If you have nothing nice to say, don't say it.

(Edit: If a mod closes this thread or deletes it please at least move this to the already created Tibia help thread.)

• Other Links:

> Certain Weapons for Classes
edited 1×, last 09.12.12 07:30:59 am

old Re: Tibia Requests

EndDead
User Off Offline

Quote
Nice thing you posted there. I hope it doesn't get deleted or somethin..
But unfourtunatly noobs will add these scripts you said to their shitty tibias. Thanks for this info anyway

old Re: Tibia Requests

EndDead
User Off Offline

Quote
user Jynxxx has written
@user EndDead: That's the point, this thread was made to stop useless tibia threads.
Finally. Thanks for helping reducing spam (And spare me some time, cause I always read every new post)

BTW: Does anyone need any permission from you to use these? Or is it 'Public'? (I mean add you in credits, etc)
If so, add that to your post

old Re: Tibia Requests

EndDead
User Off Offline

Quote
user Jynxxx has written
It is for public, why else would I post it
Oh, I see. But I will add you in credits if I used it in anyway (Server, etc)

old Re: Tibia Requests

Yates
Reviewer Off Offline

Quote
I saw thread and thought, I'm lazy, so here goes:

Tell me how I know whether an item is on the ground or not. - As I am sick of idiots dropping 100 items in one spot causing the server to spew out errors because it is trying to free an image which does not exist. As my max drop pile is 5 (The maximum images of items displayed on the ground).

Go, go, go!

old Re: Tibia Requests

Infinite Rain
Reviewer Off Offline

Quote
@user Yates:
#GROUNDITEMS[x][y]

That will give you the ammount of items dropped in this position.

Edit:

1
2
3
if #GROUNDITEMS[x][y] == 0 then --If there's no items on this position then... 

end

old Re: Tibia Requests

Yates
Reviewer Off Offline

Quote
Does not work due to shitload of GROUNDITEMS[playerx][playery][height] = nil

I am using;
1
2
3
4
local ground = GROUNDITEMS[PLAYERS[id].y][PLAYERS[id].x]
local height = #ground

if height < MAXHEIGHT then
At the moment but the items still get dropped while my message of "You cannot drop any more items here" is displayed. I'm going to take a further look in this now.

old Re: Tibia Requests

Jynxxx
User Off Offline

Quote
@user Yates: Open your functions.lua file and find function dropitem and replace it with this.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function dropitem(id, itemslot, equip)
	local removed = false
	local inv = (equip and PLAYERS[id].Equipment or PLAYERS[id].Inventory)
	local ground = GROUNDITEMS[PLAYERS[id].y][PLAYERS[id].x]
	local height = #ground
	if height < MAXHEIGHT then
		if spawnitem(inv[itemslot], PLAYERS[id].x, PLAYERS[id].y) then
			message(id, "You have dropped " .. fullname(inv[itemslot]) .. ".", "255255255", "255255255")
			if equip then
				updateEQ(id, {[itemslot] = 0}, {[itemslot] = inv[itemslot]})
				inv[itemslot] = nil
			else
				table.remove(inv, itemslot)
			end
		else
			message(id, "You may not drop something here.", "255255255", "255255255")
		end
	else
		message(id, "You can't drop anymore items here!", "255000000")
	end
end

old Re: Tibia Requests

Yates
Reviewer Off Offline

Quote
Basically the same.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function dropitem(id, itemslot, equip)
	local removed = false
	local inv = (equip and PLAYERS[id].Equipment or PLAYERS[id].Inventory)
	local ground = GROUNDITEMS[PLAYERS[id].y][PLAYERS[id].x]
	local height = #ground
	if height < 5 then
		if spawnitem(inv[itemslot], PLAYERS[id].x, PLAYERS[id].y) then
			message(id, "You have dropped " .. fullname(inv[itemslot]) .. ".", "255255255")
			if equip then
				updateEQ(id, {[itemslot] = 0}, {[itemslot] = inv[itemslot]})
				inv[itemslot] = nil
			else
				table.remove(inv, itemslot)
			end
		else
			message(id, "You may not drop anything here.", "255255255")
		end
	elseif height >= 5 then
		message(id, "Stop being an annoying cunt by dropping fuckillions of items in one spot!","255255255")
	end
	updateHUD(id)
end
Edit: What the fuck. It works now, this is some weird shit guys. I am confused.

I guess I should thank you for posting the same as me.

Edit 2: Hehe, I did not save it last time. Woops! - /Fixes own problem but cannot remember to save the script.

old Re: Tibia Requests

NutShell
User Off Offline

Quote
Tanks man

eimage = "gfx/rpp_tibia/items/pole_e.png",
fimage = "gfx/rpp_tibia/items/pole_d.png",

You upload this images for me please?
edited 3×, last 03.12.12 09:14:53 pm

old Re: Tibia Requests

NutShell
User Off Offline

Quote
an error in this line:
1
if PLAYERS[id].class > 0 then

1
[21:27:32] LUA ERROR: sys/lua/cs2dtibia/hooks.lua:46: attempt to compare number with nil
how to fix

old Re: Tibia Requests

Jynxxx
User Off Offline

Quote
If you added everything I posted then your PLAYERINIT table should look like this.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PLAYERINIT = {
	Experience = 0,
	Level = 1,
	Money = 50,
	HP = 100,
	MP = 100,
	FISHLevel = 1,
	FISHExp = 0,
	cAtk2 = 0,
	cDef2 = 0,
	cSpd = 0,
	class = 0,
	Inventory = {}, 
	Equipment = {}, 
	Spawn = {784, 240}, 
	Tutorial = {},
	Info = {},
},

old Re: Tibia Requests

EndDead
User Off Offline

Quote
user NutShell has written
It's an good or bad?
Good or bad? Thats not even a question related to this topic!
---
Open 'Config.lua' find the line which says 'PLAYERINIT' and replace all of it (Untill the '}') with what user Jynxxx said.

old Re: Tibia Requests

NutShell
User Off Offline

Quote
an error has try fish

1
] LUA ERROR: sys/lua/cs2dtibia/items.lua:73: attempt to perform arithmetic on field 'FISHLevel' (a nil value)
how to fix?
To the start Previous 1 2 3 4 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview