finding doors
is there an easier way to find out a door id other then just lookin in the db, and messin with them 1 by 1?
|
Yes.
Add a player.pl file to the zone you're working with and put this code into it: Code:
sub EVENT_CLICKDOOR { |
ingenious script! but whats with the -256 part?
|
$doorids for some reason increment the number by 256 automatically. That's why most of the sub EVENT_CLICKDOOR scripts you see automatically account for it by accepting both say door 1 and door 257. Even while using this script you may see an erroneous number, since it'll display the real door ID less 256 (so -255 instead of 1, for example). Just a quirky thing, apparently. KLS originally explained that it was quirky when she introduced player.pl files, but I don't recall any explanation for why it was so.
|
Quote:
|
awesome, ty for the script.
|
Ok, got a weird one. Mine are 256 x 2?!
Any thoughts on that? I used this script to debug, found out its +512! So my door 24 in the database was really 536! (was happening in PoTimeB) |
If you check out http://www.eqemulator.org/forums/showthread.php?t=29697 you'll notice my $d_id = ($doorid % 256);
This code can be used e.g. Code:
sub EVENT_CLICKDOOR { |
I have also noticed that if you set a script to specific door with sub EVENT_CLICKDOOR ect where a player clicks it and something happens you need to make sure you use both possible doorid's in an or statement ect
Code:
sub EVENT_CLICKDOOR { |
All times are GMT -4. The time now is 10:43 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.