Results 1 to 6 of 6

Thread: Want to eliminate mounts from spawnpoints

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    160

    Want to eliminate mounts from spawnpoints

    disclaimer: I am a network guy. I am very weak on C/C++

    I want to eliminate mounts from showing as spawnpoints, but I need help. I found this part of code in spawnmonitor.cpp:

    void SpawnMonitor::checkSpawnPoint(const Spawn* spawn )
    {
    // ignore everything but mobs
    if ( ( spawn->NPC() != SPAWN_NPC ) || ( spawn->petOwnerID() != 0 ) )
    return;


    but I don't know what to add on to the if statement to ignore mounts.

    Thanks,

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    69
    how about a nice filter??

    that should do the trick.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    160
    Although a filter might "do the trick" it's not what I am after. There is no use nor need for spawnpoint tracking of mounts, that is why I am trying to eliminate them from even being recorded. Much like the pet spawnpoints.

    Monster

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    54
    replace

    if ( ( spawn->NPC() != SPAWN_NPC ) || ( spawn->petOwnerID() != 0 ) )
    return;

    with.....

    if ( (spawn->NPC() != SPAWN_NPC) || (spawn->petOwnerID() != 0 ) || (spawn->level() == 20 && spawn->race() == 216) )
    return;

    (replace the 20 with the horse level (i believe its 20 or 30, but been a while since I looked), and race# 216 should be horsies, but again i could be mistaken ;)

    (I have not tried this so don't blame me when it doesn't work ;) just a quick suggestion :)

    Belith/UnGod

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    160
    Thanks UnGod, that worked great.

    The level for horses is 30 and I created a patch against 4.3.13.

    Monster

  6. #6
    Registered User
    Join Date
    Jan 2002
    Posts
    1,508
    Could you eliminate the level check and just compare against the race or is there other mobs that use that race?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On