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 Re: Tibia level+money

Necr0
User Off Offline

Zitieren
CODE >

Here you are. Don't forget to set an NPC because this only contains the script but not information like position or look of the NPC. You also have to set the position the player will be teleported to and the toll.

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
But if i want without toll i can remove it? Can you make food if you eat you get speed for 7 seconds and rune if you use it your atk+spd+def is increased for 10 secs ok? please
1× editiert, zuletzt 28.08.13 16:00:24

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
1. set the toll to 0 - disadvantage: the npc will still say the toll is $0
2.steroid rune:
instructions >
3.lolipop:
code >
1× editiert, zuletzt 28.08.13 20:23:47

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
Yes but I want to remove the toll without the npc say 0$. I need one npc with toll and one without

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
CODE >

this should work

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
can you add image to steroid rune? please? I want image on the whole screen of player I have 640x480 image
and I got error :
LUA ERROR: sys/lua/cs2dtibia/functions.lua:915: attempt to index field '?' (a nil value)

1
PLAYERS[id].tmp.atk=PLAYERS[id].tmp.atk+atk

and your wind rune says
1
LUA ERROR: sys/lua/cs2dtibia/items.lua:103: attempt to call local 'image' (a string value)

And when I want to remove a item with removeitem(targetid,-itemid[,amout,tell]) it says that my invenory is full
2× editiert, zuletzt 28.08.13 19:14:48

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
1. steroid rune >


2. wind rune >
1× editiert, zuletzt 28.08.13 21:05:20

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
didn't read that sry:
steroid rune item >

wind rune >

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
LUA ERROR: sys/lua/cs2dtibia/items.lua:107: attempt to call local 'image' (a string value)

1
local imgid=image(img,x,y,2,id)

necro after I use the steroid rune it still appears on my inventory and the image doesn't appears on the screen

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
make sure you have really use the 2 lasted versions.
if it doesnt work this means at some point of the script a string is saved to "image".

2 ways wich could solve the problem:
1.call the function from _G("_G.image" instead of "image") but this doesnt work if it is saved to the global variable image.
CODE >

2. if 1 doesnt work just remove the image
CODE >

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
i don't know what you mean, i thought you meant me to draw an image on the players head-up-display. the lolipop has only another image when dropped. if you ant that just edit the value of the variable "fimage". so you basicly have to change it to the path you want. (xmpl: "gfx/weiwen/rune.png" to "gfx/yourfolder/yourimage.yourformat")

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
Wow works but how to add image when I level up? I want 2 images when I level
1× editiert, zuletzt 29.08.13 09:26:44

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
in functions.lua replace the whole addexp function with this >


It should draw the two images "path" and "path2" to the head-up-display of every player who gets a level up. It removes the 2 images automatically after "dtime" milliseconds.

alt Re: Tibia level+money

Jarates
User Off Offline

Zitieren
And how to make first image go down and shrink slowly and the 2nd image rotate around me and come closer then dissapear? is that possible?

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
thats a little bit more difficult. i think the functions wich are needed are tween_move tween_scale and tween_rotate. just give me some time and i will edit it

alt Re: Tibia level+money

Necr0
User Off Offline

Zitieren
code >

This adds movement scaling and rotation to both images.

For any of these varibale "s" is the start and "e" is where it ends up after "dtime" ms.

Example:

-positioning:
1
positions={{s={100,100},e={200,100}},{s={50,50},e={50,50}}}
image 1 will start at 100,100 and move to 200,100
image 2 will start at 50,50 and stay there

-scaling:
1
scales={{s={1.0,1.0},e={0.5,0.5}},{s={1.0,1.0},e={2.0,2.0}}}
image 1 will start with it's original size and it shrinks to the half of it's original size
image 2 will start with it's original size and it grow to the double of it's original size

1
rotations={{s=0,e=180},{s=0,e=0}}
image 1 will start with an angle of 0° and ends up with an angle of 180°
image 1 will start with an angle of 0° and ends up with an angle of 0°
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht