Forum

> > CS2D > Scripts > [tibia] CS2D for lefties?
Forums overviewCS2D overview Scripts overviewLog in to reply

English [tibia] CS2D for lefties?

5 replies
To the start Previous 1 Next To the start

old [tibia] CS2D for lefties?

Shtrihovsky
User Off Offline

Quote
Hello, I have a problem in tibia.
I dont know english and i attach picture
ty
PS: I did not find the necessary code in Tibia
PS2: I'm right handed
IMG:https://s27.postimg.org/o74dtto0z/help.jpg

old Re: [tibia] CS2D for lefties?

Alistaire
User Off Offline

Quote
I'm pretty sure you can't detect whether player(id) is lefthanded, so you'll need a saycommand or menu to make players indicate what setting they use.
Another problem is that if one player is lefthanded, CS2D shows all other players lefthanded for that one player, which means that every sprite on every player for that one player must be different from the sprites the righthanded players see.

old Re: [tibia] CS2D for lefties?

Shtrihovsky
User Off Offline

Quote
user Alistaire has written
I'm pretty sure you can't detect whether player(id) is lefthanded, so you'll need a saycommand or menu to make players indicate what setting they use.
Another problem is that if one player is lefthanded, CS2D shows all other players lefthanded for that one player, which means that every sprite on every player for that one player must be different from the sprites the righthanded players see.

The fact is that the default settings already left arm.
If I turn on the left hand in the settings, but now I'm right handed.
DELIRIUM

old Re: [tibia] CS2D for lefties?

VADemon
User Off Offline

Quote
If cs2d lua cmd imagescale does accept negative values (needed for mirroring) then it'd be possible to rewrite parts of tibia code. I doubt that anyone is willing to invest so much time into this little gfx bug

old Re: [tibia] CS2D for lefties?

Shtrihovsky
User Off Offline

Quote
@user VADemon:
you true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if ITEMS[newitems[i]].eimage then 
				if not PLAYERS[id].tmp.equip[i].image then
					PLAYERS[id].tmp.equip[i].image = image(ITEMS[newitems[i]].eimage, ITEMS[newitems[i]].static and 0 or 1, 0, (ITEMS[newitems[i]].ground and 100 or 200)+id)
					if ITEMS[newitems[i]].r then
						imagecolor(PLAYERS[id].tmp.equip[i].image, ITEMS[newitems[i]].r, ITEMS[newitems[i]].g, ITEMS[newitems[i]].b)
					end
					local scalex, scaley = ITEMS[newitems[i]].escalex or 1, ITEMS[newitems[i]].escaley or 1
					scalex = scalex * -1+2
					imagescale(PLAYERS[id].tmp.equip[i].image, scalex, scaley)
					if ITEMS[newitems[i]].blend then
						imageblend(PLAYERS[id].tmp.equip[i].image, ITEMS[newitems[i]].blend)
					end
				end
			end

old Re: [tibia] CS2D for lefties?

Infinite Rain
Reviewer Off Offline

Quote
You can indeed detect if player is lefthanded. See cs2d lua cmd reqcld.

Edit: Nevermind, I thought that you could check player's settings via reqcld... but it seems like you cannot. Which is strange because I swear I remember DC adding it.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview