[Help]Opening/Closing a map on Boss Spawn/Death

04/28/2017 22:20 saler23#1
Hello developers, i've lost like 2 hours trying to figure out how to open a portal once a boss respawns, and how to close it once it dies. I've tried both Lua and Obelisk ways.

With lua i tried this comand:

- Mob:LuaUpdateInsZonePortal ( 1001, 0 )

The one used by the CS's guards to open the portal in map 65, but how you probably know by default it's not working, at least, not on ep 5.4 servers, so i tried to edit a bit the comand, trying to understand what those numbers (1001, 0) means, so the 1001 stands for the Portal ID, the one it should open, still didn't get an explain for the 0, but following the comand syntax, i was thinking the script update the portal ID from 1001 to in this case 0. so i tried it with different combinations like (1001, 1) or even (2, 1) but nothing, nothing happens, if my theory is right, it doesn't update the value, or probably i just misunderstood the vules concept!

The second way i tried is with the Obelisk comands, following Freezing Mirage example, that open the portal for CT once it dies.

- [bothmob_002, (20, 2, 43200, (20,1002))] = (454.09, 1.5, 191.76),(1975, 1978)

This one is kinda weird too... 20 stays for the Map ID where the mob has to respawn, then we go to this 2, i have no idea what it means, but i noticed that editing it to for example 1, Mirage doesn't spawn after we will the Old, 43200 is the respawn time and then (20,1002) 20 should be again the Map ID, but this time where the portal is, and 1002 should be the portal ID. i've tried to open a portal situated on different map than the one where the mob is by editing it like [bothmob_002, (20, 2, 43200, (0,1002))] but then the mob doesn't respawn anymore aswell, so probably another misunderstood there too. Something should be written somewhere, we're just telling him the MapID and the Portal ID in this case, why does he open the portal? is editing the ps_game the only way to solve it? Or is there any way to Open a portal once a boss spawns and close it once it dies? basically, keep a map opened only if the boss is UP!
04/29/2017 05:19 sominus#2
Check this:
[Only registered and activated users can see links. Click Here To Register...]
04/29/2017 06:34 momocruz#3
Quote:
Originally Posted by sominus View Post
Check this:
[Only registered and activated users can see links. Click Here To Register...]
Don't Forget to go on SVMAP to not only on obelisk.ini


if on Obelisk portail are 1001 or 1002 on SVMAP you have to name same not only 1 or 2 or 0

To link portal with Obelisk you have to rename on Svmap to
04/29/2017 08:21 saler23#4
Quote:
Originally Posted by momocruz View Post
Don't Forget to go on SVMAP to not only on obelisk.ini


if on Obelisk portail are 1001 or 1002 on SVMAP you have to name same not only 1 or 2 or 0

To link portal with Obelisk you have to rename on Svmap to
Yes of course i edited the portal in svmap, but still nothing... checked also the Link sominus sent, does it works with the mobs too? Or only with the relics?
04/29/2017 08:32 momocruz#5
Quote:
Originally Posted by saler23 View Post
Yes of course i edited the portal in svmap, but still nothing... checked also the Link sominus sent, does it works with the mobs too? Or only with the relics?
did you have make instance with the map you wanna use
05/02/2017 07:15 saler23#6
Quote:
Originally Posted by momocruz View Post
did you have make instance with the map you wanna use

Yes i've done that, the only thing i still didnt figure out is how to close a portal when a boss dies... tried both obelisk and lua, but still nothing, any suggestion?