SphereCommunity
Event problem - Printable Version

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

Pages: 1 2


Event problem - kevin465 - 05-19-2014 08:18 PM

ok i explain you... when i use my admin account and i click on a items all work on every items they give me the durability but when i use a player account some item dont say me the durability ?

Code:
[EVENTS e_player]
ON=@ITEMCLICK
if !(<act.maxhits>>10000)
IF (<act.maxhits>>0)
act.message @,3,1 [Durability : <ACT.HITS>/<ACT.MAXHITS>]
endif
endif
return 1



RE: Event problem - kn4tseb - 05-20-2014 02:15 AM

uhmm, have you tried tooltips.scp event at download section?


RE: Event problem - Extreme - 05-20-2014 02:16 AM

[EVENTS e_player]
ON=@ITEMCLICK
if <act.maxhits>
act.message @,3,1 [Durability : <ACT.HITS>/<ACT.MAXHITS>]
endif


RE: Event problem - kevin465 - 05-20-2014 02:41 AM

dont work with my personal armor script.. but when i am admin i can see all durability of items but when i try with a player just show me the name in gray color without durability ? dam thanks anyway


RE: Event problem - Extreme - 05-20-2014 05:40 AM

(05-20-2014 02:41 AM)kevin465 Wrote:  dont work with my personal armor script.. but when i am admin i can see all durability of items but when i try with a player just show me the name in gray color without durability ? dam thanks anyway

Do your player have the event e_player? Big Grin


RE: Event problem - kevin465 - 05-20-2014 06:59 PM

yes i dont understand why ... with my admin account its work..


RE: Event problem - Feeh - 05-21-2014 01:08 AM

Do you have any other ON=@ITEMCLICK anywhere in your scripts that returns 1? Some something that may avoid the trigge from calling ?


RE: Event problem - kevin465 - 05-21-2014 06:15 AM

No like i say ! when i use my admin account every items works fine i can see the durability but when i use a player account some items dont show me the durabilty when i click...


RE: Event problem - Alaric - 05-21-2014 06:19 AM

Better would be, if you showed us the certain way you apply the event. Show us what line you set in sphere.ini, what you have in a script. This trigger has nothing to do with plevel. Also, try it without the message parametres. Only act.message durability: <act.hits>/<act.maxhits>


RE: Event problem - Extreme - 05-21-2014 06:59 AM

Check multiples @ItemClick in your player events.

Are you sure you have the SAME events in your player and staff?