![]() |
Item to be identified - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Item to be identified (/Thread-Item-to-be-identified) |
RE: Item to be identified - Osirirs - 03-14-2014 07:11 AM oooh that's exactly exactly what I was trying to do at first >.< I finished my script now .. but. I might want to do that cause I did copy paste everything lolll xD And I have around 300 weapons, won't it make the server lag if I start using tags on every one of them? o.o Thanks for your answer!! ![]() RE: Item to be identified - Alaric - 03-14-2014 07:22 AM Nope. RE: Item to be identified - Coruja - 03-14-2014 01:02 PM TAGs wont cause lag, they just take some time on worldsave if you have tons of them the key to prevent this is use tags directly at the ITEMDEF base, not on @Create Code: [ITEMDEF i_magic_katana] but if you set the tag on @Create then the server will count it as "individual tags" on each created item and will need more time to save/load it on worldsave RE: Item to be identified - Osirirs - 03-15-2014 03:05 AM Oooh okay okay I get it! That looks perfect for the kind of thing I'm trying to do xD tho I'm still not sure how I can do it, for example, I have my categories, lets say they go like this, 0-100 = Common 100 - 200 = Rare 200 - 300 = Epic 300 - 400 = legendary etc etc. I can tag the rarity and it would directly enter the specific category? Cause right now what I have on my 300+ items is just a description, not a real item category. They all seperately go like this: ON=@Create Attr=attr_magic Hitpoints={500 600} Color=0 ON=@Click if (<attr>&(attr_identified)) Color=02cb src.sysmessage @041 Item Category: Uncommon src.sysmessage @041 Rarity: 60 src.sysmessage @041 Weapon Speed: 56 message @041 Swift Pitchfork of Ruin Return 1 endif ON=@Equip if !(<attr>&(attr_identified)) src.sysmessage You can't use this item until it is identified. return 1 endif ON=@Dclick if !(<attr>&(attr_identified)) src.sysmessage You can't use this item until it is identified. return 1 endif So, in other words, everything is set as sysmessage, just for show. You know what I mean? I might be 'walking around the pot' a little bit, srry about that xD I'm just trying to fully understand what I'm doing instead of copy paste what everyone tells me to write xD Thanks guys ! ![]() Wow.. I just kept reading the script you wrote and woaaah, I get it even more, so I thougt about doing five different events, one for each category, so I'd like to know: Lets say my item is meant to be in the rare category, I'd like to do something like, if I set a number between 100-200 in the TAG0.Rarity, it will be part of the rare item category, so the name and the info will also avec the category color |