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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.add dialog
Author Message
XuN
Sphere Developer
*****

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



Post: #1
.add dialog
I have done this dialog to update the old-prehistoric menu using deflists.

Note: A release version that supports DefLists is needed. and also adding this to sphere.ini

Code:
[RESOURCELIST]
ITEMDEF
CHARDEF

To install it type .f_add_setup and wait ~30seconds until it finishes.
Once installed you can go to the script and remove the COMMENT on f_oncommand to use .add and overwrite de default .add function or type .add1 directly.

Code:
Normal Version
V1.1: Updated the whole lists names and reworked the full system, uses ~250kb less in spheredata. Note if you are updating from version 1.0 use .f_add_update, if not f_add_setup

V1.2: Removed tilepic from items/chars selections, now they have a button that creates another block more with info about items and a small and simple entry for spawn that npc.

v1.3: Using tags instead of args to  create the lists, so categories,etc with commas doesn't get fucked up in the proccess (This fixes some categories wrong sorted).
        -Now each block is showing 1 entry less so it shows a header of the menu you are on and a count of entry/total entries and page/totalpages in the items/chars section, also removed this from the top of the dialog in preparation for search box

v1.4: Added search function, it is not as fast as it should so it comes with a def to enable/disable for living servers.


http://forum.spherecommunity.net/sshare.php?download=267

Code:
SQLite Version
V1.1: Fixed items/chars not being created because of uncomplete transaction from lists to sql.
http://forum.spherecommunity.net/sshare.php?download=281 (SQLite version)

[Image: tzio.png]

[Image: w9zr.png]
(This post was last modified: 03-01-2014 01:10 AM by XuN.)
11-01-2013 04:11 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Post Reply 


Messages In This Thread
.add dialog - XuN - 11-01-2013 04:11 AM
RE: .add dialog - Extreme - 11-01-2013, 05:34 AM
RE: .add dialog - Monty - 11-04-2013, 01:02 AM
RE: .add dialog - Rattlehead - 11-04-2013, 07:23 AM
RE: .add dialog - XuN - 11-04-2013, 11:50 PM
RE: .add dialog - XuN - 11-05-2013, 04:52 AM
RE: .add dialog - amonvangrell - 11-05-2013, 08:17 AM
RE: .add dialog - XuN - 11-05-2013, 08:46 AM
RE: .add dialog - XuN - 11-05-2013, 09:03 PM
RE: .add dialog - XuN - 11-08-2013, 01:26 AM
RE: .add dialog - XuN - 11-12-2013, 05:34 AM
RE: .add dialog - Avatar - 11-14-2013, 02:21 AM
RE: .add dialog - XuN - 11-21-2013, 06:03 AM
RE: .add dialog - Soulless - 12-16-2013, 08:38 AM
RE: .add dialog - XuN - 12-16-2013, 06:48 PM
RE: .add dialog - Soulless - 12-17-2013, 01:16 AM
RE: .add dialog - XuN - 12-17-2013, 07:54 AM
RE: .add dialog - Soulless - 12-18-2013, 01:22 PM
RE: .add dialog - XuN - 01-22-2014, 08:30 PM
RE: .add dialog - XuN - 03-01-2014, 01:09 AM

Forum Jump:


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