Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   General Graal Discussion (https://www.graalians.com/forums/forumdisplay.php?f=2)
-   -   Easy Map Script Fix (https://www.graalians.com/forums/showthread.php?t=714)

Winter 09-15-2011 11:08 PM

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?

Gunderak 04-27-2012 09:54 AM

*Bump*
Agreed, would be simple as anything to add..
PHP Code:

function onKeyPressed(codekey){
  if(
key == "m"){
    
//Close the map
  
}



Cigam 04-27-2012 12:28 PM

Quote:

Posted by Gunderak (Post 103187)
*Bump*
Agreed, would be simple as anything to add..
PHP Code:

function onKeyPressed(codekey){
  if(
key == "m"){
    
//Close the map
  
}



Yes I agree.

callimuc 04-27-2012 05:26 PM

Quote:

Posted by Gunderak (Post 103187)
*Bump*
Agreed, would be simple as anything to add..
PHP Code:

function onKeyPressed(codekey){
  if(
key == "m"){
    
//Close the map
  
}



Oh great close it everytime you want to open it. No checks no map! ezpz

Pauli 04-27-2012 08:33 PM

I'm not a pro and idk if this will work :P
PHP Code:

function onKeyPressed(codekey){
  if (
key == "m")
{
    
//Open the map
  
} else
{
   
//Close the map
  
}



callimuc 04-27-2012 11:01 PM

Quote:

Posted by P.i (Post 103346)
I'm not a pro and idk if this will work :P
PHP Code:

function onKeyPressed(codekey){
  if (
key == "m")
{
    
//Open the map
  
} else
{
   
//Close the map
  
}



Would close the map whenever you press any other key.


Maybe this could work. Itīs kinda late now and had a tough day but I gues this would work.
PHP Code:

function onKeyPressed(codekey) {
  if (
key != "m") return; //recently fell in love to use this way idk why
  
this.mapclosed = !this.mapclosed//change the boolean (true/false)
  
if (this.mapclosedstartARandomFunctionToOpenTheMapOrTheActualScript();
  else if (!
this.mapclosedcloseTheMap();



Gunderak 04-28-2012 01:46 PM

Pointless ^

callimuc 04-28-2012 02:11 PM

Quote:

Posted by Gunderak (Post 103695)
Pointless ^

Better than just closing the map without having it actually opened.

Gunderak 04-28-2012 02:15 PM

It was just an example because I was bored, it's not like they would of copied it on to their scripts.

callimuc 04-28-2012 02:17 PM

Mine was just an example aswell.

Ph8 04-28-2012 02:29 PM

function onKeyPressed(code, key) {
if (key == "m"){
player.chat = "Parrrtayyyyyyyyyy";
}
}

This is all.

Gunderak 04-28-2012 02:29 PM

[PHP ][/PHP ]
;)

iStorm 05-01-2012 03:44 PM

Nice..

MysticalDragon 05-01-2012 04:22 PM

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.

callimuc 05-01-2012 04:57 PM

Quote:

Posted by MysticalDragon (Post 107528)
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.

I gues shannon did mean it more for iClassic to close it with the M key again


All times are GMT. The time now is 12:42 PM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.