The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item to be identified
Author Message
Osirirs
Journeyman
*

Posts: 73
Likes Given: 6
Likes Received: 4 in 2 posts
Joined: Feb 2014
Reputation: 2



Post: #21
RE: Item to be identified
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!! Big Grin
03-14-2014 07:11 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #22
RE: Item to be identified
Nope.
03-14-2014 07:22 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #23
RE: Item to be identified
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]
ID=i_katana
...
TEVENTS=e_magic_item
TAG.Category=Common
TAG.Rarity=60
TAG.SkillBonus.0=Blacksmithing,1000
TAG.SkillBonus.1=Tactics,1000
Using this way you're not creating "real" tags ingame, because the TAG goes directly on the ITEMDEF, so all i_magic_katana will have these same "global tags"

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
03-14-2014 01:02 PM
Find all posts by this user Like Post Quote this message in a reply
Osirirs
Journeyman
*

Posts: 73
Likes Given: 6
Likes Received: 4 in 2 posts
Joined: Feb 2014
Reputation: 2



Post: #24
RE: Item to be identified
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 ! Wink

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
(This post was last modified: 03-15-2014 03:20 AM by Osirirs.)
03-15-2014 03:05 AM
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)