Jump to content

IeYasuru

Members
  • Content Count

    6
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Upvote
    IeYasuru got a reaction from buczak in Party Registration Board   
    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
  2. Upvote
    IeYasuru got a reaction from buczak in Server News System - Display your Server news to your Players   
    @@Max
     
    Not placing blame, but it seems someone (probably Aeromesi) changed the name of the function and forgot to change a callfunc() later in the script, so it was still trying to call the old function name. I just made a quick change and here's the updated script. And also, I did a complete recode of the script and it does include your topic idea. I also included an option to modify existing posts (useful since the new `topic` column in the table will all default to "Unknown"). Once I get it fully tested I'll upload it here as an alternate version.
     
     
    servernews.txt
×
×
  • Create New...

Important Information

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