Pet Naming Script 
		
		
		Would anyone happen to have a pet renaming script they could share? Looking for a way to let players rename their summoned pets. 
	 | 
		
 This comes from intercepting a command like !petname <name>.  I was flowing those through a universal world script at the time so that a player could just type it in chat without needing an NPC receiver, but these days I gather there are more convenient ways to do it. 
	Code: 
	    if($text =~/^!petname/i)Code: 
	    if($text =~/^!petsize/i) | 
		
 Doesn't stay after zoning I assume, nor does it retain after relogging, right? 
	 | 
		
 You could just use a permanent quest global with a custom #-based Perl command. Don't have time to write an example right now, but if I get some time and you don't have it done I'll write it up for you. 
	 | 
		
 That sounds like a really cool way of doing it, Kingly. Right now I'm using a temporary naming script but your way sounds much nicer. If you get the chance, I would love to see what you come up with 
	 | 
		
 Heading out the door, so untested to say the least: 
	makecustompetnamestable.sql Code: 
	DROP TABLE IF EXISTS `custom_petnames`;Code: 
	sub EVENT_SPAWN {Code: 
	sub EVENT_SAY {Code: 
	sub EnterPetName { | 
		
 Untested, but try this. 
	global_player.pl: Code: 
	sub EVENT_SAY {Code: 
	sub EVENT_SPAWN { | 
		
 Someone should just implement this in the source, it would be super simple. 
	#command, save to DB, make it a rule based feature  | 
		
 This is my old pet naming code. I can post the rest of it if anyone even cares. 
	Code: 
	void command_petname(Client *c, const Seperator *sep) { | 
| All times are GMT -4. The time now is 10:47 PM. | 
	Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.