SphereCommunity
How can I block flip? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: How can I block flip? (/Thread-How-can-I-block-flip)



How can I block flip? - Eledrian - 02-05-2013 01:11 AM

Hi,
I need help with some sort of flip restriction. Im looking for way to block flip at all for some special items - i prefer ingame settings + script workaround.

Do you have some idea?


RE: How can I block flip? - Shaklaban - 02-05-2013 01:43 AM

add flip=0 to item like:

[itemdef i_noflipkatana]
id=i_katana
flip=0

also if all items flipping you can set this ini setting to 0:

// Flip dropped items
FlipDroppedItems=0


RE: How can I block flip? - Eledrian - 02-05-2013 01:48 AM

Ok, this is little bit misunderstanding. I know about this possibility of course, but I need change some item, which is normally flipping items to NONflipping item IN game.

I have two long sword - Im searching for the way how I can make one of them flippable and second one - with same baseID - not.


RE: How can I block flip? - Shaklaban - 02-05-2013 02:08 AM

hmm, you can try:

PHP Code:
on=@dropon_ground
if <tag0.noflip> = 1
    dispid
=<baseid>
endif 

or you can set flip=0 to long sword then:

PHP Code:
on=@dropon_ground
if <tag0.noflip> = 0
    flip
endif 



RE: How can I block flip? - Ultima One - 02-05-2013 02:10 AM

Shaklaban - please use == in if statements, not single ones, although it may work, it is bad practice and not right to use a single = when comparing, especially when suggesting code for others to use Smile


RE: How can I block flip? - Shaklaban - 02-05-2013 02:19 AM

im always using = in sphere its a habit i can't let it go Big Grin