Forum

> > CS2D > Scripts > Tibia level+money
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Tibia level+money

41 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

alt Tibia level+money

Jarates
User Off Offline

Zitieren
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.

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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)
2× editiert, zuletzt 26.08.13 12:20:19

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
Mehr >


Now it changes the level. For the money :

Mehr >

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
Thanks but how to add or remove item of player?
Omg I can change only my level not others lvl it is bugged
2× editiert, zuletzt 26.08.13 16:35:39

alt Re: Tibia level+money

Necr0
User Off Offline

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

or if you want to have a function for it:

Mehr >


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)

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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?

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
Mehr >

this one works(even tested this time)

if you want to have a trading system ask someone else
3× editiert, zuletzt 27.08.13 18:16:58

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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 hat geschrieben
Omg I can change only my level not others lvl it is bugged


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

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
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

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
Can you make a npc that allows only level 1 to 10 to enter the zone? O.o lvl 10+ are not allowed!
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht