English Tibia Requests

60 replies
Goto Page
To the start Previous 1 2 3 4 Next To the start
03.12.12 05:11:33 pm
Up
Jynxxx
User
Offline Off
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
03.12.12 06:09:28 pm
Up
EndDead
User
Offline Off
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
03.12.12 06:23:35 pm
Up
Jynxxx
User
Offline Off
@user EndDead: That's the point, this thread was made to stop useless tibia threads.
03.12.12 06:25:15 pm
Up
EndDead
User
Offline Off
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
03.12.12 06:27:18 pm
Up
Jynxxx
User
Offline Off
It is for public, why else would I post it
03.12.12 06:29:55 pm
Up
EndDead
User
Offline Off
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)
03.12.12 06:51:13 pm
Up
Yates
Reviewer
Offline Off
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!
03.12.12 07:16:43 pm
Up
Infinite Rain
Reviewer
Offline Off
@user Yates:
#GROUNDITEMS[x][y]

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

Edit:

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

end
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
03.12.12 07:20:11 pm
Up
Yates
Reviewer
Offline Off
Does not work due to shitload of GROUNDITEMS[playerx][playery][height] = nil

I am using;
Code:
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.
03.12.12 07:25:57 pm
Up
Jynxxx
User
Offline Off
@user Yates: Open your functions.lua file and find function dropitem and replace it with this.
Code:
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
03.12.12 07:35:37 pm
Up
Yates
Reviewer
Offline Off
Basically the same.
Code:
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.
03.12.12 07:40:56 pm
Up
Jynxxx
User
Offline Off
@user Yates: lol It happens
03.12.12 08:58:03 pm
Up
NutShell
User
Offline Off
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
No annoying animated sigs please. /DC
03.12.12 10:22:16 pm
Up
Jynxxx
User
Offline Off
@user NutShell: Make your own images, I gave you the info and it really isn't hard to make them. It's just a STICK!
04.12.12 12:31:30 am
Up
NutShell
User
Offline Off
an error in this line:
Code:
1
if PLAYERS[id].class > 0 then


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

how to fix
No annoying animated sigs please. /DC
04.12.12 12:34:30 am
Up
Jynxxx
User
Offline Off
If you added everything I posted then your PLAYERINIT table should look like this.
Code:
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 = {},
},
04.12.12 12:55:30 am
Up
NutShell
User
Offline Off
It's an good or bad?
No annoying animated sigs please. /DC
04.12.12 07:46:22 am
Up
EndDead
User
Offline Off
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.
08.12.12 05:48:58 pm
Up
NutShell
User
Offline Off
an error has try fish

Code:
1
] LUA ERROR: sys/lua/cs2dtibia/items.lua:73: attempt to perform arithmetic on field 'FISHLevel' (a nil value)

how to fix?
No annoying animated sigs please. /DC
09.12.12 04:46:24 am
Up
Jynxxx
User
Offline Off
@user NutShell: You most likely didn't add FISHLevel in your PLAYERINIT in the config file.
To the start Previous 1 2 3 4 Next To the start