Forum

> > CS2D > Scripts > Tibia level+money
Forums overviewCS2D overview Scripts overviewLog in to reply

English Tibia level+money

41 replies
Page
To the start Previous 1 2 3 Next To the start

old Tibia level+money

Jarates
User Off Offline

Quote
Hi I need help with the tibia script how to implement add level to player and give money to player in the admins.lua? Thanks.

old Re: Tibia level+money

Necr0
User Off Offline

Quote
give xp
1
!l addexp(id,amount)
give money
1
!l addmoney(id,amount)

-- EDIT
code >

add this to your admin.lua and it should add a set level command
1
!g <targetid> <level>

PS: make sure you fixed the bug(droping NaN or Inf)
edited 2×, last 26.08.13 12:20:19 pm

old Re: Tibia level+money

Necr0
User Off Offline

Quote
More >


Now it changes the level. For the money :

More >

old Re: Tibia level+money

Jarates
User Off Offline

Quote
Thanks but how to add or remove item of player?
Omg I can change only my level not others lvl it is bugged
edited 2×, last 26.08.13 04:35:39 pm

old Re: Tibia level+money

Necr0
User Off Offline

Quote
1
2
!l removeitem(targetid,itemid[,amout,tell])
!l additem(targetid,itemid[,amout,tell])

or if you want to have a function for it:

More >


I have no idea if this works maybe there is a bug when it tries to get the amount. (just try it out)
1
2
3
4
5
6
7
8
9
10
Usage:
	!k <targetid> <itemid> [amount]
Example
	!k 2 306 3
	-> adds 3 of 306 to the inventory of id 2 (if it isn't full)
	!k 7 302
	-> adds 1 of 302 to the inventory of id 7 (if it isn't full)
	!k 1 304 -2
	-> removes 2 of 304 from the inventory of id 1
		(if it contains them elsewise it will remove as much as possible)

old Re: Tibia level+money

Necr0
User Off Offline

Quote
this can have many reasons:
> no targetid
> player with targetid doesnt exist
> amount is 0
> no itemid

> a bug
      > any errors?
      > any changes you made to it?

old Re: Tibia level+money

Jarates
User Off Offline

Quote
No changes. I used the command on myself and is not working
There is no error in console
Do you know how to make a trading system? O.o

old Re: Tibia level+money

Necr0
User Off Offline

Quote
More >

this one works(even tested this time)

if you want to have a trading system ask someone else
edited 3×, last 27.08.13 06:16:58 pm

old Re: Tibia level+money

Necr0
User Off Offline

Quote
CODE >


this should work. usage:

1
!x <targetid>

output:
1
2
3
4
(name) :
-IP adress : (ip)
-USGN ID : (usgnid)
-money : (money)

example:
1
2
3
4
Necr0[GER] :
-IP adress : 217.247.61.16
-USGN ID : 16689
-money : 0

old Re: Tibia level+money

Jarates
User Off Offline

Quote
I want to create an item that gives you speed for 10 seconds and creates an image on the player screen for 10 seconds. It would be cool if this would be possible

old Re: Tibia level+money

Necr0
User Off Offline

Quote
CODE >

this should work have fun with this "wind rune"

the speed resets if the player equips/strips an item and after the 10 seconds the player will be slower than before
(to fix that just die or equip/strip an item)

the effect is written so that it shouldn't(not tested) make you slower than before when you reach a speedmod over 100

--
CODE >

user Jarates has written
Omg I can change only my level not others lvl it is bugged


sry i didn't read that. i've fixed that.

old Re: Tibia level+money

Necr0
User Off Offline

Quote
code >


Usage :
-Ban:
1
!y <targetid>
-Kick:
1
!z <targetid>

PS:
Muting comes later 'cause it's already 11.45pm in Germany and i am about to get a little bit tierd.
It's not that i can't do it but at the moment i don't have the nerves to script inside the EXPsay function and set a variable inside of the player saves.

Important your server should be USGN-only because otherwise you can't ban players without USGN-id.
Furthermore it will be important for the muting function that i planned.
(I will also edit the !x command. So it will show if a player is muted)

Btw next commands will be something like "!1" or "!!" because we have just completed the alphabet

old Re: Tibia level+money

Jarates
User Off Offline

Quote
How to add a rune that gives you atk+spd+def? And how to add food that gives spd? I want when I eat the lolipop then I get more spd. is this possible?! tnx

old Re: Tibia level+money

Necr0
User Off Offline

Quote
instructions >

Usage:
1
!! <targetid>
toggles between muted and not muted

CODE >

1
!x <targetid>

output:
1
2
3
4
5
(name) :
-IP adress : (ip)
-USGN ID : (usgnid)
-money : (money)
-muted : (muted)

example:
1
2
3
4
5
Necr0[GER] :
-IP adress : 217.247.61.16
-USGN ID : 16689
-money : 0
-muted : false

old Re: Tibia level+money

Jarates
User Off Offline

Quote
Can you make a npc that allows only level 1 to 10 to enter the zone? O.o lvl 10+ are not allowed!
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview