English Tibia script thread (Post tibia requests here)

347 replies
Goto Page
To the start Previous 1 2 ... 14 15 16 17 18 Next To the start
14.08.14 04:26:19 am
Up
lenovo
GAME BANNED
Offline Off
How to add hudinfo with ATK DEF SPEED
and if possible hudimage to use with hudinfo
Banned again, how many accounts i will need create?
14.08.14 10:54:10 am
Up
TrialAndError
User
Offline Off
@user lenovo:

CLICK HERE!

READ THE POST! Seriously, read before commenting.
15.08.14 05:31:08 am
Up
lenovo
GAME BANNED
Offline Off
thanks thed
Banned again, how many accounts i will need create?
15.08.14 01:41:09 pm
Up
rokeliuxas
GAME BANNED
Offline Off
Remember back in 2011-2012 tibia was good now kids f it
27.10.14 02:02:40 pm
Up
Salem97
User
Offline Off
hurting a monster if shotting walls
i mean monster get hurt if u shot him outside monster area with walls
27.10.14 02:29:25 pm
Up
Yates
Reviewer
Offline Off
@user Salem97: You want to disable or enable this feature? If you actually mean that you can shoot monsters through walls or not.
27.10.14 02:31:19 pm
Up
Salem97
User
Offline Off
i want disbale it how ?
27.10.14 03:08:37 pm
Up
Yates
Reviewer
Offline Off
This file: file cs2d CS2DTibia - RPG [Fixed bugs] (17), fixes most of the known Tibia bugs.

Also to answer your PM, go to the config.lua and edit this table to insert weapon ranges.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
WEAPONRANGE = { -- range of cs2d weapons. e.g. [50] = 27 means wpnid 50 has range of 27 pixels. i should get around to change this to ingame ids some time
          [1] = 350, 
          [3] = 350, 
          [4] = 350, 
          [5] = 350, 
          [6] = 350, 
          [24] = 350, 
          [32] = 350, 
          [46] = 128, 
          [47] = 128, 
          [50] = 32, 
          [69] = 32, 
          [78] = 32, 
     },

Note: This table uses CS2D weapon ID's, NOT Tibia item ID's.
29.10.14 12:35:37 am
Up
Salem97
User
Offline Off
yates thx but i dont use cs2dtibia weiwen script i use my script so can help me ? just give me code and i add it and thx for help in range wepons
29.10.14 12:37:35 am
Up
Yates
Reviewer
Offline Off
You're posting in the Tibia script request/help thread which means your post is in the wrong place which now means I can't help you if I don't have any code to look at.

Same goes for your PM by the way:
IMG:http://i.imgur.com/5q7fZLP.png


To Tibia or not to Tibia, it's not a question. It's just not a Tibia either.
09.11.14 05:41:53 am
Up
Salem97
User
Offline Off
when i use my wings its dont work speed is 40

but on my hud its show speed is 40 but wings dont give speed

and too all wings don't work so please help


Here Example of wing

Spoiler >
09.11.14 10:27:46 am
Up
VerteX
User
Offline Off
Does anyone know on how to change runes' damage and heal?
Also can someone help me how to put cooldown on an infinite rune?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[100] = {
          name = "ember rune", 
          desc = "You may use it every x seconds", 
          r = 128, g = 0, b = 0, 
          action = {"cast","hold"}, 
          slot = 9, 
          fimage = "gfx/weiwen/rune.png", 
          func = {function(id,itemslot,itemid,equip)
               radiusmsg(player(id,"name") .. " casts a fireball rune.", player(id,"x"), player(id,"y"))
               explosion(player(id, "x"), player(id,"y"), 64, 15, id)
               local pos = player(id,"x") .. " " .. player(id,"y")
               parse("effect \"colorsmoke\" " .. pos .. " 100 64 255 128 0;")
               parse("effect \"colorsmoke\" " .. pos .. " 75 64 255 0 0")
               --destroyitem(id, itemslot, equip)
          end,equip},
     },
09.11.14 06:00:33 pm
Up
ead
User
Offline Off
I want a script to block so the player does not speak for all that appears in the middle of the game screen.
I'm back
09.11.14 08:10:39 pm
Up
Alpha Beta
User
Offline Off
user VerteX has written:
Does anyone know on how to change runes' damage and heal?
Also can someone help me how to put cooldown on an infinite rune?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[100] = {
          name = "ember rune", 
          desc = "You may use it every x seconds", 
          r = 128, g = 0, b = 0, 
          action = {"cast","hold"}, 
          slot = 9, 
          fimage = "gfx/weiwen/rune.png", 
          func = {function(id,itemslot,itemid,equip)
               radiusmsg(player(id,"name") .. " casts a fireball rune.", player(id,"x"), player(id,"y"))
               explosion(player(id, "x"), player(id,"y"), 64, 15, id)
               local pos = player(id,"x") .. " " .. player(id,"y")
               parse("effect \"colorsmoke\" " .. pos .. " 100 64 255 128 0;")
               parse("effect \"colorsmoke\" " .. pos .. " 75 64 255 0 0")
               --destroyitem(id, itemslot, equip)
          end,equip},
     },


Well, look at the function-part of that piece of code. It says
Code:
1
explosion(player(id, "x"), player(id,"y"), 64, 15, id)


Which is >this< function in CS2D. So the damage is 15. If you put a negative value (like in the healing rune), you receive lifepoints instead.

And the cooldown stuff, not sure. I think that's not part of default Tibia, is it?
17.11.14 02:22:52 pm
Up
VerteX
User
Offline Off
Thanks! I did not know it was a parameter.
Anyways, I think you can put cooldown on runes using exhaust but can't seem to make it work >_<
20.08.16 09:43:52 pm
Up
Mami Tomoe
User
Offline Off
user KenVo has written:
There might be some bugs so tell me if you find any.

config.lua

Add this code to the CONFIG table
Code:
1
2
--minutes delay until dropped items are automatically remove from the map (except items in houses)
     CLEANITEMSDELAY= 5,


functions.lua

1. Under function updateTileItems(x,y), find local heightoffset. Add this code under it:

Code:
1
2
local heightoffset = (height < MAXHEIGHT and height or MAXHEIGHT)*3
          item[4] = CONFIG.CLEANITEMSDELAY --this code


2. Add this function to functions.lua:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function cleanitems()
     for k,v in pairs (GROUNDITEMS) do
          local x,y,height
          for a,b in pairs (v) do
               for c,d in pairs (b) do
                    d[4] = d[4] -1
                    y=k
                    x=a
                    height=c
                    if d[4] <= 0 and not TILEZONE[y][x].HOUSE then
                         local item = d
                         if item[1] == 1337 then
                              if item[2] then freeimage(item[2]) end
                              GROUNDITEMS[y][x][height] = nil
                         else
                              local tile = gettile(x*32, y*32)
                              if tile.HEAL and ITEMS[item[1]].heal then
                                   tile.HEAL = tile.HEAL - ITEMS[item[1]].heal
                                   if tile.HEAL == 0 then
                                        tile.HEAL = nil
                                   end
                              end
                              if item[2] then freeimage(item[2]) end
                              GROUNDITEMS[y][x][height] = nil
                         end
                    end
               end
          end
     end
     
end


hooks.lua
Find function EXPminute(). Add cleanitems() under it.

Code:
1
2
3
4
5
6
7
8
addhook("minute","EXPminute")
function EXPminute()
     cleanitems()
     MINUTES = MINUTES+1
     if game'sv_password' == '' and MINUTES%5 == 0 then
          saveserver()
     end
end


This doesn't work IDK if I did something wrong
Code:
1
2
3
4
LUA ERROR: sys/lua/cs2dtibia/functions.lua:345: attempt to index field '?' (a nil value)
 -> sys/lua/cs2dtibia/functions.lua:345: in function 'gettile'
 -> sys/lua/cs2dtibia/functions.lua:683: in function 'cleanitems'
 -> sys/lua/cs2dtibia/hooks.lua:242: in function <sys/lua/cs2dtibia/hooks.lua:241>


(for new people this is meant to despawn items after ? minutes)

I had to wait 5 minutes for the cooldown ( it felt a lot longer than 5 minutes )
20.08.16 10:10:34 pm
Up
TrialAndError
User
Offline Off
@user Mami Tomoe: Look at my post from 1 PAGE BEFORE THIS ONE.

(Hint: Scroll down)
20.08.16 10:25:03 pm
Up
Mami Tomoe
User
Offline Off
user TrialAndError has written:
@user Mami Tomoe: Look at my post from 1 PAGE BEFORE THIS ONE.

(Hint: Scroll down)


Thanks it worked

Now I need the same thing (I think) for monsters
For example every monster will despawn every 1 hour
20.08.16 10:31:08 pm
Up
Masea
Super User
Offline Off
Code:
1
2
3
for _, m in ipairs(MONSTERS) do
     m.destroy(m)
end

Try this.
Create your UI easy and fast: UI Framework | Go deeper into the darkness and test your bravery: file cs2d Outlast II Modification (28)
To the start Previous 1 2 ... 14 15 16 17 18 Next To the start