Jump to content
Sign in to follow this  
IeYasuru

Party Registration Board

Recommended Posts

Name: Party Board Registration NPC

Location: Every town (New World towns commented out)
Coded by: Me! (IeYasuru)

 

What it does:

A registration board with a sign above it showing "# Registrations) sits in each town. Players seeking a party can register themselves, which stores their name, job, and base/job levels.
Party leaders can talk to the board and look through any registered members and chose who they want to invite to party.
Script breaks away to invitee and asks if they want to join <Party Leader>'s party. If they chose yes, they get warped ~ 2 cells away from the party leader, and the party leader gets warped back to where he was when he activated the invitation.

 

Features:

 - Uses attachrid/detachrid to run script execution between two different players

 - Checks party size of party leader to make sure party isn't already full (stored in $@Max_Party_Size under OnInit, set to max party size allowed on your server)

 - Main menu is dynamic, stored in .Menu_Ops[] set in OnInit. Just add .Menu_Ops[2] = "foobar"; to add new menu item, and you can add a new callsub label without having to worry about breaking any existing code. Make sure you add a new case #: callsub "<label>"; inside the switch() at line 59

 - Waitingroom chatbox over NPC displays number of players registered looking for party. A one second timer constantly runs in the background refreshing the list, removing players that are already in a party, offline, or revoke their registration.

 - Duplicates set for all towns (except Novice Grounds and Prison for obvious reasons). There are duplicates set for mid_camp, manuk, and splendide, but they are commented out by default for servers that require the New World quest to access those maps so party leaders can't warp low level players to New World maps without the quest having been done. If you do not require this quest and wish to activate these duplicates, simply uncomment lines 253-255

 

The script uses a temporary global array named $@PB_PartyBoard$[]. It -could- be written to use SQL, but with as often as parse_party_list() runs, executing SQL queries to the database that frequently isn't the best idea, and since arrays now hold INT_MAX (roughly 2.1 billion) values, the likeliness of the array filling up are infinitesimally small. 

 

Special thanks goes to Aeromesi for the idea for this script.

partyboard.txt

Edited by IeYasuru

Share this post


Link to post
Share on other sites

Thanks for the share , but 

 

getpartymember <party id>{,<type>}; 

 

 

post-454-0-49366700-1429056954_thumb.png

Share this post


Link to post
Share on other sites

@@Max

 

Yeah yeah sorry about that. I was finished the edits on my phone while at work. I removed the comma and reuploaded the file.  That's what I get for making a few edits then not running it though before uploading lol -_- Sorry.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.