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
(Solved!) Anyway to trick the client to skip the entire character creation process?
Author Message
Rayvolution
Journeyman
*

Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1

Aetharia

Post: #8
RE: Anyway to trick the client to skip the entire character creation process?
(07-23-2012 05:46 PM)darksun84 Wrote:  For checking if the account should "create" the new players you can use on f_onaccount_login

if !<serv.account.<args>.chars> //I have 0 players, create 5 of them
//code for creating the newplayers here
endif

Unfortunately i cannot find a way to do the linking Sad

When I get home from work, I'll see if I can tackle it.

I know in-game, .set account <Accountname> will set any character (NPC or otherwise) to that account's ownership.

So, I imagine it would be something like:
serv.add c_generic_newbie
serv.act.p <Starting coords> // Move NPC to starting coords
serc.act.name New Character // I guess if you just named c_generic_newbie would be able to skip this
serv.act.account <ARGS> // Account name of user.
serv.act.disconnect // "Disconnects" the NPC so it isn't wandering around the game world, but still exists.

I'm not sure if that will work though, the trick is to create the creature via serv and I'm not sure if serv can properly use "add".

A long time ago I wrote a pretty complicated paintball script in 51a, it required a UNIQUE npc ID to "run" some of the scripts (like above) but I've long lost that code, and have no clue how I did it. But basically I created a fake NPC and stuck him in a corner of GM Land. When the paintball script needed to, it called on that specific NPC's ID to run the commands. I wonder if the same could be done with this, if my method doesn't work?

Any help would be great! I can't wait to get this working. I think it'll be a pretty cool way to skip the default creation process. I can provide all the tutorials needed for others when it's completed.

[Image: 4_Logo.png]
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
(This post was last modified: 07-23-2012 11:03 PM by Rayvolution.)
07-23-2012 11:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Anyway to trick the client to skip the entire character creation process? - Rayvolution - 07-23-2012 11:01 PM
flamethrower - darksun84 - 02-18-2013, 08:18 AM
RE: flamethrower - sagitariuz2 - 02-18-2013, 11:49 AM

Forum Jump:


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