![]() |
Easy Map Script Fix
On both iClassic and iEra, the map opens by pressing the map icon. To close the map, press close. On FaceBook on iClassic (and soon FaceBook iEra), you have shortcuts on the keyboard in addition to hitting the icon; you can open the map by pressing M. However, to get out of it you must manually click close.
When I look at the map on Unholy Nation, you press M to open the map, and M to close it again. This would make things much easier for many people, and I'm sure its a quick script that just needs to be added for convenience. Please? |
*Bump*
Agreed, would be simple as anything to add.. PHP Code:
|
Quote:
|
Quote:
|
I'm not a pro and idk if this will work :P
PHP Code:
|
Quote:
Maybe this could work. Itīs kinda late now and had a tough day but I gues this would work. PHP Code:
|
Pointless ^
|
Quote:
|
It was just an example because I was bored, it's not like they would of copied it on to their scripts.
|
Mine was just an example aswell.
|
function onKeyPressed(code, key) {
if (key == "m"){ player.chat = "Parrrtayyyyyyyyyy"; } } This is all. |
[PHP ][/PHP ]
;) |
Nice..
|
You would actually have to use invoke_adventure keys.But anyways how is it easier to click on the chat icon, press m then select enter, the sound of it just sounds annoying. Its so much more simpler to just click on the map icon, But for Staff that m key IS ENABLED.
|
Quote:
|
Quote:
So in a sense, your last statement is right. For staff, the M hotkey to open the map is enabled on both servers. However, once the Era Graalians are able to use their accounts on the computer, they will also come across this problem if it is not addressed now. While it is not a huge problem, it does become bothersome and I would like to see it improved. It would benefit both servers in the long run, and every little thing adds up! |
we'll probably add it to era if it ever is accessible from a computer
|
Quote:
|
Quote:
|
How is this genius?
What happens if you wan't multiple key events? It would simply return unless you invoke the first event. |
Quote:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
[noparse][php]derp[/php][/noparse] |
PHP Code:
And the animation is fairly simple. PHP Code:
|
Quote:
I think the iServers have pretty much every thing under control and do know how to reduce the lag as much as possible. |
How about a script that causes the back button to be pressed when the M key is pressed with map open, so it closes the map without having to script the entire map closure again? I have no experience with scripts, but this seems like the most simple idea to me.
|
Quote:
|
Quote:
I'm sure that tiny lil delay isn't going to cost your script tooooooo much time. Its not like you have any other choice so why even bring that up? |
Ugh you obviously don't see what I'm saying.
What happens if on the U key you want it to do one thing and M to do another? The event would be invoked when you press any of the keys. |
Quote:
That line I wrote will simply finish that particular event block from continuing if the key pressed wasn't part of the three specified. You could further test after that if necessary. If you want to run a script with different statements based on the key, you could just do it by a switch, if-else if or even in a seperate script catching the same event (the return line won't affect other functions catching that event after all). I don't understand why you had to raise the point of multiple events at all when the suggested script clearly only cares about the 'm' key? I find ending the block if the key is not 'm' a very clean and effective method. |
Quote:
|
| All times are GMT. The time now is 01:14 PM. |
Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.