PDA

View Full Version : Custom playerlist functions


coreys
07-14-2007, 04:58 AM
It would be nice to add your own options in the playerlist. There's the warpto in the playerlist, but it would nice to be able to script a summon option that could show up in the drop down menu as well, and whatever else you might want to add (reconnect, disconnect, etc). This would be a really great feature to have. :)

There could be an option in the serverops where you would put the name of the weapon that has the special function for playerlist options. The function could go like this:

public function playerlistOptions(selection, selector) {
//selection is the account name being selected
//selector is the account name that's doing the selecting
new PlayerListOption("Summon") {
doSummon(selection,selector);
}
}
function doSummon(selection, selector) {
//do summon stuff here
}

Twinny
07-14-2007, 09:54 AM
It would be nice to add your own options in the playerlist. There's the warpto in the playerlist, but it would nice to be able to script a summon option that could show up in the drop down menu as well, and whatever else you might want to add (reconnect, disconnect, etc). This would be a really great feature to have. :)

There could be an option in the serverops where you would put the name of the weapon that has the special function for playerlist options. The function could go like this:

public function playerlistOptions(selection, selector) {
//selection is the account name being selected
//selector is the account name that's doing the selecting
new PlayerListOption("Summon") {
doSummon(selection,selector);
}
}
function doSummon(selection, selector) {
//do summon stuff here
}

That would be awesome! It would be cool to also edit the current ones ,say, make profile open your own scripted profile which may add more information while hiding other (such as level :D)