SphereCommunity
DropOnGround - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: DropOnGround (/Thread-DropOnGround)



DropOnGround - Runcuks - 01-30-2013 02:40 AM

Hello i have found two bug in my server with houses, the first bug is if player who is not registered in house go out of house region he will be able to drop items inside house region, but if he is in house region he can't drop items inside house region the second bug is for example in house are 50 bandages if player who is not registered in house drop bandage on those 50 bandages all bandages will be droped in his backpack the question is how to fix those two bugs i am using this function -->

ON=@ITEMDROPON_GROUND
IF (<UID.<ACT.REGION.UID>.TYPE> = T_MULTI)
IF !(<ISNOTALLOWED <ACT.REGION.UID>>)
RETURN 0
ELSE
SRC.SYSMESSAGE @50 You are not member of this house.
act.cont = <findlayer(layer_pack)>
RETURN 1
ENDIF
ENDIF


Thanks, and sorry for my bad English.


RE: DropOnGround - darksun84 - 01-30-2013 02:59 AM

It's the = in the first if a type error ? othwerise it should be ==


RE: DropOnGround - Runcuks - 01-30-2013 04:06 AM

(01-30-2013 02:59 AM)darksun84 Wrote:  It's the = in the first if a type error ? othwerise it should be ==

Nop nopthing changes Sad