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

Necr0
User Off Offline

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

old Re: Tibia level+money

Jarates
User Off Offline

Quote
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
edited 1×, last 28.08.13 04:00:24 pm

old Re: Tibia level+money

Necr0
User Off Offline

Quote
1. set the toll to 0 - disadvantage: the npc will still say the toll is $0
2.steroid rune:
instructions >
3.lolipop:
code >
edited 1×, last 28.08.13 08:23:47 pm

old Re: Tibia level+money

Jarates
User Off Offline

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

old Re: Tibia level+money

Necr0
User Off Offline

Quote
CODE >

this should work

old Re: Tibia level+money

Jarates
User Off Offline

Quote
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
edited 2×, last 28.08.13 07:14:48 pm

old Re: Tibia level+money

Necr0
User Off Offline

Quote
1. steroid rune >


2. wind rune >
edited 1×, last 28.08.13 09:05:20 pm

old Re: Tibia level+money

Necr0
User Off Offline

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

wind rune >

old Re: Tibia level+money

Jarates
User Off Offline

Quote
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

old Re: Tibia level+money

Necr0
User Off Offline

Quote
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 >

old Re: Tibia level+money

Necr0
User Off Offline

Quote
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")

old Re: Tibia level+money

Jarates
User Off Offline

Quote
Wow works but how to add image when I level up? I want 2 images when I level
edited 1×, last 29.08.13 09:26:44 am

old Re: Tibia level+money

Necr0
User Off Offline

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

old Re: Tibia level+money

Jarates
User Off Offline

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

old Re: Tibia level+money

Necr0
User Off Offline

Quote
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

old Re: Tibia level+money

Necr0
User Off Offline

Quote
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°
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview