Page 1 of 1

Issue with registerRegion

Posted: Thu Nov 10, 2016 7:16 pm
by bluesolarflare
Hello,

I am trying to setup Salvage on my server and I am coding Bhaflau Remnants at the moment. I am trying to get the teleporter to work on the first floor to take players up to the second floor. I already have the event ID that causes the warp to the proper floor, however, I am trying to get registerRegion to work. Below is my code that I have

Code: Select all

-----------------------------------
--  onInitialize
-----------------------------------

function onInitialize(zone)
	zone:registerRegion(1,336.711,-1,-416.384,343.571,-1,-423.319); -- First Floor Teleporter

end;


-----------------------------------
-- onRegionEnter          
-----------------------------------

function onRegionEnter(player,region)
	 
	 if(region:GetRegionID() == 1) then
			player:startEvent(0x00d1); 
         end
end;

When I get to the teleporter at 339, -1, -420, nothing happens. I have even tried inputing a print to player so it prints something to the console so I know it is working, but nothing happens. Any help would be greatly appreciated. Thanks.

Re: Issue with registerRegion

Posted: Thu Nov 10, 2016 7:26 pm
by kjLotus

Re: Issue with registerRegion

Posted: Fri Nov 11, 2016 11:38 am
by bluesolarflare
Thanks,

I moved to using a single point and a radius. At first my radius was too large but I got it working now.

Re: Issue with registerRegion

Posted: Tue Nov 22, 2016 1:57 pm
by sekigah
Interested in getting this up and running. Let me know if you want to collab.

Re: Issue with registerRegion

Posted: Mon Dec 12, 2016 7:25 pm
by bluesolarflare
sekigah wrote:Interested in getting this up and running. Let me know if you want to collab.
I can PM you all of the region's and event IDs for floor warps when I finally get around to finishing the project.