Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2020, 08:19 AM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default How to get owners race?

First let me start by explaining what I'm after here. I am looking to use a .pl file in the quests/globals folder named the spells ID. Mainly I'm trying to change the Beastlord's pet without hard coding.

What I have so far is:

Code:
sub EVENT_SPAWN
{
my $NPCRace = $npc->GetRace();
if($NPCRace == 76){quest::npcrace(64);quest::npctexture(1);quest::npcsize(8);}   #Woodelf
if($NPCRace == 163){quest::npcrace(16);quest::npctexture(1);quest::npcsize(7);}   #Dwarf
if($NPCRace == 232){quest::npcrace(297);quest::npctexture(1);quest::npcsize(4);}   #Darkelf
if($NPCRace == 50){quest::npcrace(348);quest::npctexture(1);quest::npcsize(8);quest::npcgender(2);}   #Human
if($NPCRace == 87){quest::npcrace(559);quest::npctexture(1);quest::npcsize(10);}   #Halfling
if($NPCRace == 63){quest::npcrace(285);quest::npctexture(1);quest::npcsize(6);}   #Halfelf
if($NPCRace == 40){quest::npcrace(473);quest::npctexture(1);quest::npcsize(4);}   #Highelf
if($NPCRace == 39){quest::npcrace(570);quest::npctexture(1);quest::npcsize(4);}   #Gnome
if($NPCRace == 35){quest::npcrace(602);quest::npctexture(1);quest::npcsize(8);}   #Erudite
if($NPCRace == 31){quest::npcrace(473);quest::npctexture(1);quest::npcsize(4);}   #Drakkin
if($NPCRace == 48){quest::npcrace(473);quest::npctexture(1);quest::npcsize(4);}   #Froglok
if($NPCRace == 91){quest::npcrace(321);quest::npctexture(0);quest::npcsize(6);}   #Troll
if($NPCRace == 43){quest::npcrace(388);quest::npctexture(0);quest::npcsize(10);}   #Ogre
if($NPCRace == 41){quest::npcrace(415);quest::npctexture(1);quest::npcsize(8);}   #Barbarian
if($NPCRace == 42){quest::npcrace(389);quest::npctexture(1);quest::npcsize(3);}   #Iksar
}
**I found this at: http://www.eqemulator.org/forums/showthread.php?t=37594

With this it only searches for the pets race and then changes it based off the pets race with another race. The problem I have is that most races are given the "wolf" as default so I was curious if anyone would know how to make the pet race search for the owners race and allow me to change the pets based off the race of the owner instead of the pet?

I've only managed to find this topic on anything near what I'm looking for: http://www.eqemulator.org/forums/showthread.php?t=39581

Sorry if I didn't explain that well and thank you all for the help, much appreciated!
Reply With Quote
  #2  
Old 10-13-2020, 09:28 AM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

Could I do something like this?

Code:
sub EVENT_SPAWN {
    #:: Match BLpet70 (528)
    if ($mob->GetNPCTypeID() == 528) {
        #:: Create a scalar variable to store the pet owner's entity list ID
        my $PetOwner = $entity_list->GetClientByID($npc->GetOwnerID());
        #:: Match owner race 1 - Human
        if ($PetOwner->GetRace() == 1) {
            #:: Set race 22 - Beetle
            $npc->SetRace(22);
        }
        #:: Etc.
    }
    #:: Etc.
}
This doesn't seem to work. I get the wolf every time still.
Reply With Quote
  #3  
Old 10-13-2020, 06:31 PM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

Ok after hours and hours if trying these, I got some effects to work.

Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
        }
    }
}

sub EVENT_SPAWN {
	if ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
        }
	}
}
When I do it this way the Barbarian actually works, but if I put anymore code (other races) below it then it won't work on the Barbarian. It's like only the last one works.

I then tried this:

Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
        }
    }
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 5) { # High Elf
            $npc->SetRace(473);
            $npc->ChangeSize(5);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 6) { # Dark Elf
            $npc->SetRace(365);
            $npc->ChangeSize(8);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 7) { # Half Elf
            $npc->SetRace(560);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 8) { # Dwarf
            $npc->SetRace(16);
            $npc->ChangeSize(6);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 9) { # Troll
            $npc->SetRace(259);
            $npc->ChangeSize(8);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 10) { # Ogre
            $npc->SetRace(135);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 11) { # Halfling
            $npc->SetRace(321);
            $npc->ChangeSize(6);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 12) { # Gnome
            $npc->SetRace(570);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 128) { # Iksar
            $npc->SetRace(389);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 330) { # Froglok
            $npc->SetRace(245);
            $npc->ChangeSize(7);
        }
	}
	elsif ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 522) { # Drakkin
            $npc->SetRace(611);
            $npc->ChangeSize(7);
        }
	}
}
But it doesn't work at all.

So I tried to come up with this one:

Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
		elsif ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
		elsif ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
		elsif ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
          }
	    }
      }
    }
  }
}
Again, it doesn't work. This is my very first attempt at perl, but as I stated I managed to get the first one somewhat working, but it fails if anything is below the first code (only the last one works).

So, anyone know where I am going wrong and how to make it work so that all the races work in one file?
Reply With Quote
  #4  
Old 10-13-2020, 06:57 PM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

FINALLY GOT IT FIGURED OUT!! WOOHOO!!! <--- Not bad for someone who has only been messing with the PEQ database, private server and .pl files for a week, eh? :P

**Special Thanks to: TurmoilToad and Huppy for helping me figure this out.

To anyone who wants to use a .pl file instead of hard coding or messing up the actual beastlord pet spells, here you are

Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 837) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
		}
		elsif ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
		}
		elsif ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
		}
		elsif ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 5) { # High Elf
            $npc->SetRace(473);
            $npc->ChangeSize(5);
        }
		elsif ($petowner->GetRace() == 6) { # Dark Elf
            $npc->SetRace(365);
            $npc->ChangeSize(8);
        }
        elsif ($petowner->GetRace() == 7) { # Half Elf
            $npc->SetRace(560);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 8) { # Dwarf
            $npc->SetRace(16);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 9) { # Troll
            $npc->SetRace(259);
            $npc->ChangeSize(8);
        }
		elsif ($petowner->GetRace() == 10) { # Ogre
            $npc->SetRace(135);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 11) { # Halfling
            $npc->SetRace(321);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 12) { # Gnome
            $npc->SetRace(570);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 128) { # Iksar
            $npc->SetRace(389);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 330) { # Froglok
            $npc->SetRace(245);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 522) { # Drakkin
            $npc->SetRace(611);
            $npc->ChangeSize(7);
        }
    }
}
Tested and working great as of today
Reply With Quote
  #5  
Old 10-13-2020, 07:06 PM
Sturm
Hill Giant
 
Join Date: Dec 2015
Posts: 116
Default

You're going to want to add an "else" statement on that incase the player is in an illusion, so they get a desired pet race there as well.

I've been considering doing it this way as well, but you just saved me the time. Thanks!

Edit*
Quickly added the functionality to its own sub routine to make adding pet NPCID's less blocky:

Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 837) {
        PET_RACE();
    }
	# Next NPC ID here:
	
}

sub PET_RACE {
	my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
		}
		elsif ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
		}
		elsif ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
		}
		elsif ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 5) { # High Elf
            $npc->SetRace(473);
            $npc->ChangeSize(5);
        }
		elsif ($petowner->GetRace() == 6) { # Dark Elf
            $npc->SetRace(365);
            $npc->ChangeSize(8);
        }
        elsif ($petowner->GetRace() == 7) { # Half Elf
            $npc->SetRace(560);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 8) { # Dwarf
            $npc->SetRace(16);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 9) { # Troll
            $npc->SetRace(259);
            $npc->ChangeSize(8);
        }
		elsif ($petowner->GetRace() == 10) { # Ogre
            $npc->SetRace(135);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 11) { # Halfling
            $npc->SetRace(321);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 12) { # Gnome
            $npc->SetRace(570);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 128) { # Iksar
            $npc->SetRace(389);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 330) { # Froglok
            $npc->SetRace(245);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 522) { # Drakkin
            $npc->SetRace(611);
            $npc->ChangeSize(7);
        }
		else {
			$npc->SetRace(611); # Change this to desired pet race
            $npc->ChangeSize(7); # Change this to suit size
		}
}
__________________
Developer of the Imperium Server.
https://imperium-eq.com/
Reply With Quote
  #6  
Old 10-13-2020, 07:30 PM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

Ah. Sorry I am brand spanking new to this guys. If you see anything wrong or can improve it by all means do so. I am posting it to help others being I spent 3 full days searching and could only get answers to the hard code with pets.cpp file.

So, I took it upon myself to go around it ... I am sure I am missing a LOT of bells and whistles, so I give ANY and EVERYONE permission to make it better, all I ask is to please share with everyone and make it easy to find
Reply With Quote
  #7  
Old 10-13-2020, 07:58 PM
Sturm
Hill Giant
 
Join Date: Dec 2015
Posts: 116
Default

Quote:
Originally Posted by macdaddy02 View Post
Ah. Sorry I am brand spanking new to this guys. If you see anything wrong or can improve it by all means do so. I am posting it to help others being I spent 3 full days searching and could only get answers to the hard code with pets.cpp file.

So, I took it upon myself to go around it ... I am sure I am missing a LOT of bells and whistles, so I give ANY and EVERYONE permission to make it better, all I ask is to please share with everyone and make it easy to find
Don't be sorry! I'm still new as well

You publicly posted it, so permission was already implied. heh

Cheers!
__________________
Developer of the Imperium Server.
https://imperium-eq.com/
Reply With Quote
  #8  
Old 10-14-2020, 06:00 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Here is my contribution to your project: replace "GetClientByID" with "GetMobByID"
Result: the script now works not only for players but also for npcs
Reply With Quote
  #9  
Old 10-14-2020, 10:20 PM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

@ChaosSlayer - But that doesn't work in this case, unless you hard code each individual beastlord race being that it's hard coded with most of them getting the wolf, UNLESS you want them all to get the same pet with the script you provide.

I know you get confused easily, so I'll give you examples.

Barbarian Beastlord = wolf pet and your script changes it to beetle.

That means every other beastlord race that gets the wolf would now have a beetle if they casted that same spell.

That's how the very first post I posted has it, if you'd take a look at it
Reply With Quote
  #10  
Old 10-14-2020, 10:46 PM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

I'm going to try and explain this carefully so that a new player can understand how this works. My entire reason for even starting this was because there is no information on scripts UNLESS you hard code the beastlord pets through the pets.cpp file.

I wanted to avoid that! So, I attempted to make a script that anyone could use without having to take months to learn how every process works.

Steps: (This is assuming that you've already downloaded the emulator/peq/etc to run your own servers, that is a completely different topic)

1) You must create .pl files in your (emulator/server directory) quests/global folder.

2) Depending on if you use my method or Huppy's method (I will provide it) to what you name these files. Mine would be the actual spell / NPC ID and Huppy's would be the name of the spell.

3) Examples:
My Method: 515.pl, 516.pl, 517.pl, 518.pl, etc.
Huppy's Method: BLpet09, BLpet16, BLpet22, BLpet26, BLpet31, etc.

4) All you do is copy/paste the codes into these .pl files and place them into the quests/global folder.

5) My method requires a little more work than Huppy's, so depending on how you want to do it, they both work flawlessly as I tried both methods on every race as a beastlord at every level of the pets.
I.E. My method requires you to change the: if ($npc->GetNPCTypeID() == 837) to if ($npc->GetNPCTypeID() == 515) or if ($npc->GetNPCTypeID() == 516), etc. Depending on what spell you're casting.
Huppy's Method: All you have to do is name the .pl files and use the SAME code in each

MY METHOD:
Code:
sub EVENT_SPAWN {
    if ($npc->GetNPCTypeID() == 515) {
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
		}
		elsif ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
		}
		elsif ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
		}
		elsif ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 5) { # High Elf
            $npc->SetRace(473);
            $npc->ChangeSize(5);
        }
		elsif ($petowner->GetRace() == 6) { # Dark Elf
            $npc->SetRace(365);
            $npc->ChangeSize(8);
        }
        elsif ($petowner->GetRace() == 7) { # Half Elf
            $npc->SetRace(560);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 8) { # Dwarf
            $npc->SetRace(16);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 9) { # Troll
            $npc->SetRace(259);
            $npc->ChangeSize(8);
        }
		elsif ($petowner->GetRace() == 10) { # Ogre
            $npc->SetRace(135);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 11) { # Halfling
            $npc->SetRace(321);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 12) { # Gnome
            $npc->SetRace(570);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 128) { # Iksar
            $npc->SetRace(389);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 330) { # Froglok
            $npc->SetRace(245);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 522) { # Drakkin
            $npc->SetRace(611);
            $npc->ChangeSize(7);
        }
    }
}
REMEMBER TO CHANGE THE 515 to the number of the ID in EACH .pl file.

HUPPY'S METHOD (BE SURE TO GIVE HIM CREDIT)

Code:
sub EVENT_SPAWN {
	
        my $petowner = $entity_list->GetClientByID($npc->GetOwnerID());
		
        if ($petowner->GetRace() == 1) { # Human
            $npc->SetRace(468);
            $npc->ChangeSize(12);
		}
		elsif ($petowner->GetRace() == 2) { # Barbarian
            $npc->SetRace(528);
            $npc->ChangeSize(4);
		}
		elsif ($petowner->GetRace() == 3) { # Erudite
            $npc->SetRace(602);
            $npc->ChangeSize(8);
		}
		elsif ($petowner->GetRace() == 4) { # Wood Elf
            $npc->SetRace(64);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 5) { # High Elf
            $npc->SetRace(473);
            $npc->ChangeSize(5);
        }
		elsif ($petowner->GetRace() == 6) { # Dark Elf
            $npc->SetRace(365);
            $npc->ChangeSize(8);
        }
        elsif ($petowner->GetRace() == 7) { # Half Elf
            $npc->SetRace(560);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 8) { # Dwarf
            $npc->SetRace(16);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 9) { # Troll
            $npc->SetRace(259);
            $npc->ChangeSize(8);
        }
		elsif ($petowner->GetRace() == 10) { # Ogre
            $npc->SetRace(135);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 11) { # Halfling
            $npc->SetRace(321);
            $npc->ChangeSize(6);
        }
		elsif ($petowner->GetRace() == 12) { # Gnome
            $npc->SetRace(570);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 128) { # Iksar
            $npc->SetRace(389);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 330) { # Froglok
            $npc->SetRace(245);
            $npc->ChangeSize(7);
        }
		elsif ($petowner->GetRace() == 522) { # Drakkin
            $npc->SetRace(611);
            $npc->ChangeSize(7);
        }
}
Remember to name each .pl file the name of the spell.

NOTE: PLEASE NOTE THAT YOU MUST CREATE ALL THE SPELL/ID FILES NO MATTER WHICH METHOD YOU USE.

I.E.
BLpet47p15, BLpet49p15, etc (HUPPY'S METHOD).
894, 895, 896, 897, etc (MY METHOD).

Both methods list all races except the Vah Shir. So you'd have to add these with the race ID of the Vah Shir. I figured we'd keep them traditional.

You can find these in the npc_types using a database editor. I use HeidiSQL.

Please enjoy the beastlords
Reply With Quote
  #11  
Old 10-14-2020, 11:58 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by macdaddy02 View Post
@ChaosSlayer - But that doesn't work in this case, unless you hard code each individual beastlord race being that it's hard coded with most of them getting the wolf, UNLESS you want them all to get the same pet with the script you provide.

I know you get confused easily, so I'll give you examples.

Barbarian Beastlord = wolf pet and your script changes it to beetle.

That means every other beastlord race that gets the wolf would now have a beetle if they casted that same spell.

That's how the very first post I posted has it, if you'd take a look at it
Important point - there are NO npc Beastlords in game =) AT ALL.
No one will be casting these spells unless you actually give them that, and if you DO - you can specify which race pet they get.
Also, they still all get Wolf by default - so my methods doesn't turn EVERYTHING into beetle, only those who match the proper owner race.
Reply With Quote
  #12  
Old 10-15-2020, 12:09 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Here is a demonstration of what my method can do, that yours can't

https://imgur.com/a/ekVQQrD
Reply With Quote
  #13  
Old 10-15-2020, 12:29 AM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
Here is a demonstration of what my method can do, that yours can't

https://imgur.com/a/ekVQQrD
You're changing the pet's pet or NPC (that you don't control) pet. There are much EASIER way's of doing this through HeidiSQL or similar database programs with far less time.

Besides, to what point? I mean you can even literally create a NPC with whatever pet you want using the GM commands as well.

I'm personally starting to realize that you just have to put your two cents into everyone's conversation even if it doesn't fit just for the sake of the argument. You obviously love to argue, so I'll choose to ignore it from here on out.

But, if I had your script from 10 years ago, I guess we could already have had everything that live EQ doesn't. If only .... It's funny how everyone comes out of the wood work to say they had this already or did it, but yet there are ZERO information on it at all.

EDIT: As I stated earlier, you still don't understand this. Change it to how YOU think it should be and try it and see what happens on every race as a beastlord and THEN come back to argue when it makes sense.
Reply With Quote
  #14  
Old 10-15-2020, 12:39 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

Quote:
Originally Posted by macdaddy02 View Post
You're changing the pet's pet or NPC (that you don't control) pet. There are much EASIER way's of doing this through HeidiSQL or similar database programs with far less time.

Besides, to what point? I mean you can even literally create a NPC with whatever pet you want using the GM commands as well.
/facepalm
WHY would I want to create dozens or even hundreds npcs/pets in DB for every npc/pet instance when this script does it automatically???

Quote:
I'm personally starting to realize that you just have to put your two cents into everyone's conversation even if it doesn't fit just for the sake of the argument. You obviously love to argue, so I'll choose to ignore it from here on out.

But, if I had your script from 10 years ago, I guess we could already have had everything that live EQ doesn't. If only .... It's funny how everyone comes out of the wood work to say they had this already or did it, but yet there are ZERO information on it at all.
The ONLY reason I choose to "put my 2 cents" as you nicely put it, because you were trying to do exactly what I did years back. My script does exactly what YOU WANT + something extra. You just fail to see the benefits.

And macdaddy02 - I don't have to prove anything to you.
Reply With Quote
  #15  
Old 10-15-2020, 02:37 AM
macdaddy02
Fire Beetle
 
Join Date: Oct 2020
Posts: 13
Default

*Sigh* again!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:22 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3