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
Auto Events Help
Author Message
jeem
Apprentice
*

Posts: 33
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 3



Post: #1
Auto Events Help
Yes, I'm making automated events for SCP.. I'm adding two screenshots to better reflect the concept I have in mind. Calendar thing is pretty much done, I'll probably tweak the layout a bit because it's ugly as hell and optimise the code some. The other dialog is just a crude example and in no way done.

What I can't figure out is how to store the events.

Imagine adding events to Google Calendar or whatever you're using, but through a dialog in UO client. You select the event type (pvp, bomberman etc.), you type in player limits, rewards, entry fee, date and time, other stuff. Below that is the repetition section, you can select weekly, monthly and every X days, below that is until which date the repetition will occur. When you press the apply button, the event will be stored in some way. Repetitions will be stored separately so they can appear on the calendar.

So far I've considered these methods of storage:
LISTs - dismissed because they are not practical and flexible.
MySQL - would be the best options but I want to keep the system drag-and-drop.
Defnames - this was khaos' recommendation but dismissed because events can't be altered ingame which contradicts my idea above.
VARs - this is the idea I'm currently entertaining. Better control than LIST, doesn't have MySQL's ease-to-use and features like sort, and unlike DEFs, can easily be altered ingame.

So help me choose or recommend a new way I haven't thought of.

PS: With VARs I made this test function to add events:
Code:
[function deneme] // date, time, type, buyin, reward, minplayer, maxplayer
var.events_5.3.2012 = 3
var.events_5.3.2012_0 = 13:00,Death Match,10000,100000,8,64
var.events_5.3.2012_1 = 15:00,1v1 Tournament,20000,100000,8,64
var.events_5.3.2012_2 = 21:00,Bomberman,20000,5,10,1000


Attached File(s) Thumbnail(s)
       
(This post was last modified: 05-03-2012 09:32 AM by jeem.)
05-03-2012 09:29 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Auto Events Help - jeem - 05-03-2012 09:29 AM
RE: Auto Events Help - RanXerox - 05-03-2012, 09:33 AM
RE: Auto Events Help - jeem - 05-03-2012, 09:54 AM
RE: Auto Events Help - jeem - 05-03-2012, 09:37 AM
RE: Auto Events Help - Valios - 05-03-2012, 09:43 AM
RE: Auto Events Help - Khaos - 05-03-2012, 10:05 AM
RE: Auto Events Help - Reflex - 05-03-2012, 10:14 AM
RE: Auto Events Help - Valios - 05-03-2012, 10:18 AM
RE: Auto Events Help - jeem - 05-03-2012, 10:21 AM
RE: Auto Events Help - Valios - 05-03-2012, 06:57 PM
RE: Auto Events Help - dagger4k - 05-03-2012, 09:03 PM
RE: Auto Events Help - Alias - 05-04-2012, 03:22 AM
RE: Auto Events Help - Khaos - 05-04-2012, 04:37 PM
RE: Auto Events Help - Valios - 05-04-2012, 11:18 PM
RE: Auto Events Help - Alias - 05-22-2012, 09:41 PM
RE: Auto Events Help - dagger4k - 05-22-2012, 11:48 PM
RE: Auto Events Help - admin phoenix - 05-24-2012, 08:04 PM
RE: Auto Events Help - jeem - 05-25-2012, 04:25 AM
RE: Auto Events Help - Valios - 05-25-2012, 05:16 AM
RE: Auto Events Help - CraftMaster - 05-25-2012, 05:30 PM
RE: Auto Events Help - smoce - 05-25-2012, 07:19 PM
RE: Auto Events Help - Q23A - 07-05-2012, 11:25 PM

Forum Jump:


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