Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On=@Click problem
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
On=@Click problem
Is this trigger working with the latest clients? (I use 7.0.23.1)

Because I use the next code:

[ITEMDEF i_sand]
ID = i_ore_iron
NAME = Sand
SKILLMAKE = MINING 5.0
VALUE = 1

ON=@Click
SERV.LOG Trigger activated
RETURN 1

But the trigger never fires, Is this and old trigger who only worked in the past, or what is it?
05-15-2012 03:37 AM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #2
RE: On=@Click problem
I do know Click became obsolete in the later clients, and i think it had something to do with the tooltip stuff.
If you were clicking to show a name or information in game id say use the tooltip.
To send a command like you have I would suggest using DClick it will work.
05-15-2012 06:17 AM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: On=@Click problem
Yes, the problem with tooltips is the server sends the packet information to every client who enter near of this object. I have tried, and @ClientTooltip fires when you enter aproximately at 20 tiles of range. so it´s very resource expensive.

So if I want to put a message in hundreds of items, the server would be laggy because it must to send information to every near client.

With one Click I would put a message easy only when is clicked, and with DClick I would interfer with other scripts who uses DClick, like smelting the ore. Confused
(This post was last modified: 05-16-2012 03:05 AM by Gil Amarth.)
05-16-2012 03:03 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #4
RE: On=@Click problem
I doubt that it would be that bad... EVERY equipable item in my server (I would guess several hundreds of thousands of items) has a LOT of code (over 400 lines) in the @ClientToolTip trigger and it doesn't appear to be overly lagged.
05-16-2012 03:29 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: On=@Click problem
With client 7.0.15.1 @click works , i'll try now with the latest one

With client 7.0.25.6 works too.


Well i have tooltips disabled Big Grin
(This post was last modified: 05-16-2012 07:28 AM by darksun84.)
05-16-2012 07:22 AM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #6
RE: On=@Click problem
I have discovered "my problem".

When you have tooltips activated, On=@Click doesn´t work on dynamics objects, the tooltip fires before. When you set an static object and disable .GM (GM off). Then there is no tooltip and @Click fires normally. Smile
05-20-2012 07:28 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)