#11
|
|||
|
So Tserrina's master key should work for any mirror in the zone? (Including the non-7th floor mirrors?). i.e. Can I zone in, go to right portal, click it with Tserrina's Key and be on floor 2?
In the mirror room on floor 7, must you click the mirrors with keys to be transported to the respective level? Or are no keys required? Should the individual keys be required to click 7th floor mirrors/does Tserrina's key work for these? Here's an example of a possible script for the doors. Since the click is to move players within the keyholders group, I'm using perl. Script borrowed heavily from Shin Noir on eqemulator. Code:
sub EVENT_CLICKDOOR { if ($client->IsGrouped()) { my $destx = 0; my $desty = 0; my $destz = 0; my $d_id = ($doorid % 256); if ($d_id == 2) { #First Floor Door if ($oncursor(20033)) { $destx = 660; $desty = 100; $destz = 40; } } if ($d_id == 4) { #Second Floor Door if ($oncursor(20034)) { $destx = 670; $desty = 750; $destz = 75; } } if ($d_id == 16) { #Third Floor Door if ($oncursor(20035)) { $destx = 170; $desty = 755; $destz = 175; $desth = 0; } } if ($d_id == 27) { #Fourth Floor Door if ($oncursor(20036)) { $destx = -150; $desty = 160; $destz = 217; } } if ($d_id == 34) { #Fifth Floor Door if ($oncursor(20037)) { $destx = -320; $desty = 725; $destz = 12; } } if ($d_id == 157) { #6b Gem if ($oncursor(20038)) { $destx = 20; $desty = 250; $destz = 355; } } if ($d_id == 1) { #Left portal on 1st level to 7th if ($oncursor(20039)) { #tserrina master key $destx = 20; $desty = 250; $destz = 355; } } if ($destx != 0) { my $tmpclient = 0; for ($i = 0; $i < 2000; $i++) { $tmpclient = $entity_list->GetClientByID($i); if (defined($tmpclient)) { if ($tmpclient->GetGroup()->IsGroupMember($client) #Grouped with key holder? && $tmpclient->CalculateDistance($client->GetX(), $client->GetY(), $client->GetZ()) < 40) { $tmpclient->CastToClient()->MovePC(111, $destx, $desty, $destz, 0); } } undef($tmpclient); } } } } | ||
Last edited by nilbog; 06-05-2012 at 02:24 PM..
|
|
#12
|
|||
|
Yes master key will let you use all the mirrors like they normally would work but also bring you to top floor if you click the left one on first floor. Also remember being able to zone up group members if they were with you by mirror. At least the normal mirrors the direct to top might have been key holder only.
__________________
Mithaniel Marr:
Muergan Valiantheart <Altered Vision> 72 Paladin Project 1999: Blue Muergan Valiantheart <Altered Vision> 52 Paladin Battlemage Omnipotent <Altered Vision> 26 Magician Project 1999: Green Pooks <The Drift> 60 Rogue Muergan Valiantheart <The Drift> 49 Paladin | ||
|
#13
|
||||
|
Quote:
| |||
|
#14
|
|||
|
omg get rid of those hardcoded literals!
__________________
The Ancient Ranger
Awake again. | ||
|
#15
|
|||||||||
|
Still curious about the mirrors on floor 7.
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Seems the oldest information I can find supports the room of mirrors not taking you floor to floor. | ||||||||
|
#16
|
|||
|
It smells like community in here, I like it.
Best of lucks on the Velious box Nilb. | ||
|
#17
|
|||
|
linky,linky
http://thedruidsgrove.org/archive/eq/t-3884.html
according to the post from Scirocco "07-02-2001, 10:53 AM" the room had 6 mirrors. hope this helps. Slothbynature Lazybutt | ||
Last edited by Schnuller; 06-13-2012 at 12:44 PM..
|
|
#19
|
|||
|
Well, I was actually just teasing, but if you are seriously asking, its bad programming style. If you ever need to change the way something is defined that you've hardcoded, (in this case its an item id), you'll have to go hunt through all the source for occurrences and make sure you get them all. If they are centrally defined somewhere you can just change that one spot.
Code:
$oncursor(20039) Code:
$oncursor(LEFT_PORTAL_KEY) Now, I don't know if in the specific case of EQ EMU scripting it is important or not ( ie., there is NO chance the ID numbers would ever change and you have them all memorized ), but it's still considered generally bad coding practice.
__________________
The Ancient Ranger
Awake again. | ||
Last edited by fadetree; 06-14-2012 at 10:21 AM..
|
|
#20
|
||||
|
Quote:
__________________
| |||
|
|
|