Anonymous | Login | Signup for a new account | 01-07-25 19:59 CEST | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
ID | Project | Category | View Status | Date Submitted | Last Update | |
0002243 | SphereServer | new feature request | public | 19-11-13 15:37 | 04-12-13 16:06 | |
Reporter | Coruja | |||||
Assigned To | khaos | |||||
Priority | normal | Severity | minor | Reproducibility | N/A | |
Status | resolved | Resolution | no change required | |||
Platform | OS | OS Version | ||||
Product Version | ||||||
Target Version | Fixed in Version | |||||
Summary | 0002243: New trigger to run on map teleports | |||||
Description | My suggestion is create a new trigger @MapTeleport / @WorldTeleport / @whatever to run when a player step on a world teleport defined on sphere_map_pointsX.scp ARGN1: the destination P (writeable) return 1: prevent teleport | |||||
Additional Information | it will be usefull to allow more customization and to take control of these teleports. Example: block someone to exit an area, or make a fix to prevent field traps on world teleports [EVENTS e_char] ON=@MapTeleport IF !(<TAG0.QuestComplete>) SYSMESSAGE You cant exit this area without complete the quest first. return 1 ENDIF //Clear field spells traps on destination before send the player to this P SERV.NEWITEM i_gold NEW.P=<ARGN1> NEW.TeleportClearTrap NEW.REMOVE [FUNCTION TeleportClearTrap] FORITEMS 2 IF (<TYPE>==t_spell) REMOVE ENDIF ENDFOR | |||||
Tags | No tags attached. | |||||
Nightly Version | Not Available | |||||
Experimental Flags | None | |||||
Option Flags | None | |||||
Internal Build Number | ||||||
Attached Files | ||||||
![]() |
|
(0001792) khaos (developer) 01-12-13 09:33 |
Could this not be done with REGION triggers or simply invisible tiles in that area (if an entrance) to check for a tag on the char if doing a quest and not allow them to leave? |
(0001795) Coruja (developer) 01-12-13 21:53 |
yea, on a single region it can be done using @Enter or @Exit But it's not a good idea copy/paste this same code writing thousand of lines to make it works on every single region of all maps (more than 400 areadef/roomdef) or replace all 1000+ map teleports with an t_telepad invisible item if it could be done with a single trigger on a single player event :P |
(0001805) khaos (developer) 04-12-13 16:06 |
We tested with character trigger @RegionEnter and @RegionLeave. We were able to emulate what you asked for with no issue. You don't need a telepad. Testing resulted in a parse of the P you dont want them to leave on the character trigger via a removable event. We tested recalling, walking, mappoints, teleporting, telepads, customitems, etc. It all blocked leaving or entry. This we have decided is the best course of action. Adding another trigger at the time is not in the best interest at the moment. Again, we simulated everything you asked for. If you need an example please post for help in the forums. Sincerely, Khaos, XuN, and Ben. |
![]() |
|||
Date Modified | Username | Field | Change |
19-11-13 15:37 | Coruja | New Issue | |
01-12-13 09:33 | khaos | Note Added: 0001792 | |
01-12-13 09:33 | khaos | Assigned To | => khaos |
01-12-13 09:33 | khaos | Status | new => feedback |
01-12-13 21:53 | Coruja | Note Added: 0001795 | |
01-12-13 21:53 | Coruja | Status | feedback => assigned |
04-12-13 16:06 | khaos | Note Added: 0001805 | |
04-12-13 16:06 | khaos | Status | assigned => resolved |
04-12-13 16:06 | khaos | Resolution | open => no change required |
Copyright © 2000 - 2010 MantisBT Group |