English Tibia level+money

41 replies
Goto Page
To the start Previous 1 2 3 Next To the start
28.08.13 03:25:09 pm
Up
Necr0
User
Offline Off
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.
28.08.13 03:48:28 pm
Up
Jarates
User
Offline Off
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
28.08.13 04:31:27 pm
Up
Necr0
User
Offline Off
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
28.08.13 05:04:48 pm
Up
Jarates
User
Offline Off
Yes but I want to remove the toll without the npc say 0$. I need one npc with toll and one without
28.08.13 05:19:41 pm
Up
Necr0
User
Offline Off
CODE >

this should work
28.08.13 06:38:31 pm
Up
Jarates
User
Offline Off
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)

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


and your wind rune says
Code:
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
28.08.13 08:21:40 pm
Up
Necr0
User
Offline Off
1. steroid rune >


2. wind rune >
edited 1×, last 28.08.13 09:05:20 pm
28.08.13 08:49:06 pm
Up
Jarates
User
Offline Off
you dont get it I want for steroid rune image and for wind rune no image
28.08.13 09:04:37 pm
Up
Necr0
User
Offline Off
didn't read that sry:
steroid rune item >

wind rune >
28.08.13 09:11:04 pm
Up
Jarates
User
Offline Off
LUA ERROR: sys/lua/cs2dtibia/items.lua:107: attempt to call local 'image' (a string value)

Code:
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
28.08.13 09:36:21 pm
Up
Necr0
User
Offline Off
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 >
28.08.13 10:49:29 pm
Up
Jarates
User
Offline Off
No it should work like the lolipop image because it works!
28.08.13 10:58:32 pm
Up
Necr0
User
Offline Off
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")
29.08.13 09:06:49 am
Up
Jarates
User
Offline Off
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
29.08.13 12:35:00 pm
Up
Necr0
User
Offline Off
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.
29.08.13 01:03:29 pm
Up
Jarates
User
Offline Off
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?
29.08.13 03:04:21 pm
Up
Necr0
User
Offline Off
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
29.08.13 03:41:26 pm
Up
Jarates
User
Offline Off
Ok
29.08.13 04:41:16 pm
Up
Necr0
User
Offline Off
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:
Code:
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:
Code:
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

Code:
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°
29.08.13 05:11:11 pm
Up
Jarates
User
Offline Off
How to make a double xp potion or a triple xp potion? is it possible?
To the start Previous 1 2 3 Next To the start