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-nmm6 (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-nmm6 (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-nmm6 (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
HELP WITH sphere.ini
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
HELP WITH sphere.ini
Dear friends, once again i need a little of your help.

i know its possible to activate some new VARS for items/chars, ive seen for example items showing "LOWER REQUIREMENTS" or adding extra durability % and LUCK, elemental damage like DAMFIRE, etc.... how do i do that? this is my sphere.ini

please help!

Sphere.ini (Click to View)
(This post was last modified: 05-15-2014 08:33 AM by Ben.)
05-12-2014 11:16 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: HELP WITH sphere.ini
// FeatureAOS, used to control AOS expansion features ( default 0 )
// FEATURE_AOS_UPDATE_A 01 // AOS Monsters, Map
// FEATURE_AOS_UPDATE_B 02 // Tooltip, Fightbook, Necro/paladin on creation, Single/Six char selection screen, Skills, Newer spellbook support
// FEATURE_AOS_POPUP 04 // PopUp Menus
// FEATURE_AOS_DAMAGE 08
FeatureAOS = 01|02|04|08 <--- 02 (Tooltip) enable them, however you should add one event to show them, the Tooltips script uploaded by me or the one in scripts\items\sphere_items_typedef.scp would do it.
05-14-2014 09:09 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #3
RE: HELP WITH sphere.ini
Sorry about my ignorance, i am a begginer >.< .... what would be the EVENT instead t_equipitem with your tooltips Script?

thanks in advance!
(This post was last modified: 05-15-2014 06:10 AM by kn4tseb.)
05-15-2014 01:17 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: HELP WITH sphere.ini
If you use t_equipitem, ToolTips will show without any changes. If you use my script you need to add the event 'e_tooltips' to EventsPlayer in sphere.ini. They are doing the same job, I updated the t_equipitem to show everything updated, however my script is doing a full replacement of what the source is doing, so if you need more tweaking than the allowed in the t_equipitem use it... if not you are ok with t_equipitem Smile
05-15-2014 07:01 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #5
RE: HELP WITH sphere.ini
ok ok, works but im getting some errors, just changed the name of the scp file

19:00:ERROR:(sphere_item_tooltips.scp,374)Undefined symbol (Click to View)
(This post was last modified: 05-15-2014 08:36 AM by Ben.)
05-15-2014 08:02 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #6
RE: HELP WITH sphere.ini
I added a new tag to the editor... edited these posts to show what they can do Smile
It's the [ spoiler=title] [ /spoiler] tag (no spaces)

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
05-15-2014 08:40 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Ben's post
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #7
RE: HELP WITH sphere.ini
got it xD
05-15-2014 08:46 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #8
RE: HELP WITH sphere.ini
Updated the file, I missed to change it after some changes in the core Smile
05-15-2014 03:55 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #9
RE: HELP WITH sphere.ini
Ok, working and no errros @console, but it has its details, "durability" doesnt seem to be hardcored yet, and items with this attribute set shows this: Error [megaCliloc] : Stringld not Found : 1151780

the name of the maker shows: Crafted by '1_NAME'
and the lastone, some items dont show its name, for example Legs of honor or Breastplate of Justice.
everything else seems to be working just Great!
(This post was last modified: 05-15-2014 11:41 PM by kn4tseb.)
05-15-2014 11:39 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #10
RE: HELP WITH sphere.ini
Xun, looking at the new variable list posted by Khaos i see "DURABILITY <INT>% DURABILITY INCREASE" included, but it seems not to be hardcoded yet...
so, if i had the actual durability as a "HitPoints,MaxHitPoints" how could i code something like "extra Durability in porcent"... so if i set on the Create Trigger a value like: Durability 100
i get the actual Maxpoints + extra durability%

Example:
ON=@Create
HITPOINTS={100}

if "Durability = 50
hitpoints would be 100 + (100*50)/100) and that would be 100 hitpoints plus a 50% of its maxhitpoints

so tooltips should be showing when you click at the item, the "Extradurability" that would be 50 in this case and the maxhitpoints shall make the sum of both variables...

Puedes ayudarme con ésto?
05-26-2014 04:56 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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