English Tibia script thread (Post tibia requests here)

347 replies
Goto Page
To the start Previous 1 2 ... 9 10 11 ... 17 18 Next To the start
10.02.12 10:11:03 pm
Up
ExecL
User
Offline Off
all i dont know is where to put it like i tryed puting it here

Spoiler >


show me like that and with the HUD thing too.
edited 1×, last 10.02.12 10:28:26 pm
10.02.12 10:20:27 pm
Up
skillerLTU
User
Offline Off
@user ExecL:

cant you make spoiler or something? for long messages
edited 3×, last 10.02.12 10:24:01 pm
I scored 100% on the Minecraft Trivia Quiz. How much do you know about Minecraft?
10.02.12 10:21:29 pm
Up
Yates
Reviewer
Offline Off
@user skillerLTU: Remove the quote, use @ if you want to direct your post to someone (Right, if a mod or DC sees this then please note he didn't put it in a spoiler when I saw his post).
10.02.12 10:27:28 pm
Up
ExecL
User
Offline Off
sorry ill fix it
11.02.12 01:06:33 am
Up
4Vendetta
User
Offline Off
I' make a simple stats lua [str,spd,def,cash,honor] and when u level up you will get +1 in all stats. how i get + 1 in only one stats (Random) every level up???
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
11.02.12 07:14:51 am
Up
ExecL
User
Offline Off
all i need help with is where to put

Code:
1
2
3
4
5
6
7
8
if player(id, 'health') > 0 and PLAYERS[id] and PLAYERS[id].MP > (CONFIG.MAXMP - 5) and PLAYERS[id].MP < (CONFIG.MAXMP) then
PLAYERS[id].tmp.tmana = (CONFIG.MAXMP) - PLAYERS[id].MP
PLAYERS[id].MP = PLAYERS[id].MP + PLAYERS[id].tmp.tmana
updateMP(id)
elseif player(id, 'health') > 0 and PLAYERS[id] and PLAYERS[id].MP < (CONFIG.MAXMP) then
PLAYERS[id].MP = PLAYERS[id].MP + 5
updateMP(id)
end


Code:
1
updateMP(id)


Code:
1
2
3
4
function updateMP(id)
     hudtxt2(id,21, PLAYERS[id].MP, '255255000', 610,452,1)
     hudtxt2(id,22, "Mana", '255255255', 528,452,1)
end


like what line do i put them on show me hooks.lua so i can see, thanks.
11.02.12 10:36:57 am
Up
Infinite Rain
Reviewer
Offline Off
Go to hooks.lua, then join hook line 0. There will be PLAYERS[id].tmp = {random values... } then add there value mana
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
11.02.12 10:41:46 am
Up
ExecL
User
Offline Off
can you show me it?
11.02.12 11:23:13 am
Up
Infinite Rain
Reviewer
Offline Off
sure.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("join","EXPjoin")
function EXPjoin(id)
     if loadplayer(id) then
          print('-- loaded!')
     else
          print('-- unable to load!')
     end
     PLAYERS[id].tmp = {hp = 100, atk = 1, def = 1, spd = 0, usgn = player(id, "usgn"), equip = {}, exhaust = {}}
     PLAYERS[id].Recipes = {} --> ignore this, it's for my tibia
     for k, v in ipairs(CONFIG.SLOTS) do
          PLAYERS[id].tmp.equip[k] = {}
     end
     PLAYERS[id].name = player(id, "name")
end

PLAYERS[id].tmp = {hp = 100, atk = 1, def = 1, spd = 0, usgn = player(id, "usgn"), equip = {}, exhaust = {}}
You can add here mana or just make:
PLAYERS[id].Mana = 0
PUT IT IN JOIN HOOK!
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
11.02.12 04:59:18 pm
Up
Kantos
BANNED
Offline Off
i got problem with horses if i put on any of horses nobody of monsters can demage me did anyone know how fix it ?:)
11.02.12 08:00:03 pm
Up
Bobakrome
User
Offline Off
@user Kantos: Kenvo's file cs2d CS2DTibia - RPG [Fixed bugs] (17)

It removes all bugs found.
12.02.12 04:59:27 pm
Up
Kantos
BANNED
Offline Off
how to make like this >when u press f2 is open to choose menu inventory and equipments ???
12.02.12 05:37:38 pm
Up
Infinite Rain
Reviewer
Offline Off
Easy. Theres two funtions:
equipment(id) -> open equipment
inventory(id) -> open inventory
You can just make make menu.

if button == 1 then
     inventory(id)
elseif button == 2 then
     equipment(id)
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
21.02.12 12:15:16 am
Up
4Vendetta
User
Offline Off
Hi, anyone can say me if this math.random[5 colour, same monster] will work?

Spoiler >
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
21.02.12 12:42:43 am
Up
AbAeterno
User
Offline Off
Not sure, why don't you test it?

BTW, could someone explain how to create a new "hudtxt2"? Thanks in advance!
21.02.12 12:49:26 am
Up
4Vendetta
User
Offline Off
user AbAeterno has written:
Not sure, why don't you test it?

BTW, could someone explain how to create a new "hudtxt2"? Thanks in advance!


I not've tested yet because I'm in my uncle house, and here don't have cs2d and've 'download popup blocker' I've have that idea here now!...
----------------------------------------
Just copy all of hudtxt2 and change the name, not?
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
21.02.12 12:51:49 am
Up
agash2010
User
Offline Off
@user 4Vendetta: plz help me on item tibia make what he fire for 1 minute plz like this i try plz help                     addtimer(1000, parse, "effect "fire" " .. id .. ",x,y")
agash
21.02.12 12:52:07 am
Up
KenVo
User
Offline Off
@user AbAeterno: Find updateHUD(id) function in functions.lua and follow the pattern

Example:

Code:
1
2
hudtxt2(id, 21, "Attack", '255255255', 250, 410, 0)
     hudtxt2(id, 22, PLAYERS[id].tmp.atk, '255255000', 340, 410, 0)


Notice that each hudtxt has an id and they cant have the same id so make it like 21,22,23,24,... bla bla bla

@user 4Vendetta: I don't think that would work because the table is made when the server starts and it will only choose 1 random number until you restart the server. I'm not sure though.
edited 1×, last 21.02.12 12:59:57 am
21.02.12 12:56:35 am
Up
4Vendetta
User
Offline Off
user agash2010 has written:
@user 4Vendetta: plz help me on item tibia make what he fire for 1 minute plz like this i try plz help                     addtimer(1000, parse, "effect "fire" " .. id .. ",x,y")

Like one torch who expires and a fireplace?
He @user Infinite Rain: already has done this, he can tell you....

user KenVo has written:
I don't think that would work because the table is made when the server starts and it will only choose 1 random number until you restart the server. I'm not sure through.

Do not worry, I was ironic. [/quote]
IMG:http://orig12.deviantart.net/d660/f/2015/294/4/a/loki_free_icon_smite_by_cuti_chan-d9dwjst.gif
No one can play Masturball... IMG:http://orig08.deviantart.net/2bdc/f/2015/360/1/f/khepri_free_icon_smite_by_cuti_chan-d9llycr.gif
To the start Previous 1 2 ... 9 10 11 ... 17 18 Next To the start