![]() |
EVENTS TEVENTS on items - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: EVENTS TEVENTS on items (/Thread-EVENTS-TEVENTS-on-items) |
EVENTS TEVENTS on items - kn4tseb - 09-21-2014 04:51 AM Hey guys, hope you are all alright.. i need some help with this. as i understan TEVENTS is only for ITEMDEFS, its not possible to remove a tevent from an item ingame. im trying to make a itemidentification system based on the fallowing... when an item has special props which is defined in a function already scripted i want this item when created in the world to have a new color, remove all events, also tooltip clilocs and be unequipeable... but i have problem creating events for items, even when items wiki tells i can add a new a new event with events +e_whatever i suppose, do i have to make the event defname as event or typedef?? this is what i have already, i had to use a global event for players so any suggestions would be great. Code: [EVENTS E_NEEDSITEMID] i want this item to have the shape of the original item, have that black HUE and be unequipeable, but the most important thing is it only shows the clilock shown in the code. thanks in advance. RE: EVENTS TEVENTS on items - Extreme - 09-21-2014 05:37 AM TEVENTS -E_NEEDSITEMID But I'm not sure if you can remove it if its already on ITEMDEF section. You can add a TAG to tell this item isn't identified and remove it and fix its color when use ItemID. RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014 07:33 AM TEVENTS cant be removed once its in the itemdef section, so i cannot remove the T_EQUIPITEM TEVENT, i tried it... but i could add a new event for this item if i could know how it works.. for example. NEW.EVENTS +T_NEEDSITEMID // event for item [EVENTS OR TYPEDEF??? T_NEEDSITEMID] ??? about the tag, what do you suggest for it? cliclocs are also a problem, items receive the inhereted property from the ID of the original item, and what i'd like is no clilocs to be shown with the exception of the UNKOWN (ADDCLILOC 3000575) RE: EVENTS TEVENTS on items - Ben - 09-21-2014 07:39 AM Events for items are TYPEDEFS... I don't want to sound like a dick, but you could have saved yourself ALOT of time by just trying it. RE: EVENTS TEVENTS on items - Extreme - 09-21-2014 07:43 AM [TYPEDEF YOUR_ITEM_EVENT_NAME] But I suggest use TAG... [TYPEDEF T_EQUIPITEM] ON=@CREATE TAG0.UNIDENTIFIED 1 In your player event, @itemequiptest, @itemequip, @itemclick Check if it has the TAG0.UNIDENTIFIED, if yes, do what you want, else continue... On ItemID skill, when success, check if the item has the TAG and remove it. (09-21-2014 07:39 AM)Ben Wrote: Events for items are TYPEDEFS... I don't want to sound like a dick, but you could have saved yourself ALOT of time by just trying it. Yeah.. Not only him, but the other guys always do that... ask before test... In my case, If I come ask something, you know I tried everything else before. They even look the wiki! RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014 08:05 AM will try, to BEN you are right and i did try it, i was confuse, but nevermind.. and EXTREME yes i understand what you mean about the tag but the thing is that when item is created it receives the T_EQUIPITEM TEVENT and there's no way to remove it. Then i might have to modify this tevent ... thats what i'll do, thank you both. 19:05:ERROR:(sphere_events_itemid.scp,8)Undefined keyword 'TEVENTS' 19:05:ERROR:(sphere_events_itemid.scp,8)Undefined keyword 'TEVENTS' 19:05:ERROR:(sphere_events_itemid.scp,9)Undefined keyword 'TEVENTS' 19:05:ERROR:(sphere_events_itemid.scp,9)Undefined keyword 'TEVENTS' RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014 09:23 AM Okey, worked perfectly, due im using tooltip event was even easier to remove tooltips ! ;D (used tag as suggested) thanks! RE: EVENTS TEVENTS on items - Extreme - 09-21-2014 09:27 AM ![]() RE: EVENTS TEVENTS on items - kn4tseb - 09-21-2014 10:13 AM LOL wise advice about the steps but you have to admit that sometimes wiki is a little outdated, revision logs not always gives an answer and search button could be a little better, it doesnt accept 3 characters and several functions have that number, and there's a lot of threads which are created thinking in the needs of the thread creator and will not always be helpfull, which doesnt mean i could try harder with all of them before making a new thread ;D RE: EVENTS TEVENTS on items - Extreme - 09-21-2014 11:36 AM LOL? Go on all your threads, 90% of answers was given by these links. |