Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   F5 Edit Gmap or Precise Level (https://forums.graalonline.com/forums/showthread.php?t=134269607)

MysticalDragon 10-06-2014 09:23 PM

F5 Edit Gmap or Precise Level
 
1 Attachment(s)
Here is a small system that can help your LATs get the coordinates on the gmap or the coordinates to the exact level(with the help of Pix). When you press f5, there is a option that allows you to switch the view. Figured this can be used so I'm sharing it.

PHP Code:

findplayer("MysticalDragon").addWeapon(this);
//#CLIENTSIDE

function LoadLevelWindow.onShow() {
  
this.old_x LoadLevelXField.text;
  
this.old_y LoadLevelYField.text;
  
temp.guiCheckBox = new GuiCheckBoxCtrl("LoadLevelShowGmap");
  
temp.guiCheckBox.profile "GuiDelteriaCheckboxProfile";
  
temp.guiCheckBox.10;
  
temp.guiCheckBox.80;
  
temp.guiCheckBox.width 200;
  
temp.guiCheckBox.height 20;
  
temp.guiCheckBox.text "Show GMAP instead of level"
  
temp.guiCheckBox.checked true;
  
temp.guiCheckBox.visible true;
  (
"LoadLevelWindow").addcontrol(temp.guiCheckBox);
  
updateLoadLevelData();
}

function 
LoadLevelShowGmap.onAction() {
  
updateLoadLevelData();
}

function 
updateLoadLevelData() {
  if ( 
LoadLevelShowGmap.checked ) {
    
LoadLevelFilenameField.text = ( player.gmap.name != "" player.gmap.name player.level.name );
    
LoadLevelXField.text player.x;
    
LoadLevelYField.text player.y;
  } else {
    
LoadLevelFilenameField.text player.level.name;
    
LoadLevelXField.text this.old_x;
    
LoadLevelYField.text this.old_y;
  }


In the title I meant view not edit, sorry for that.

Tim_Rocks 10-06-2014 09:54 PM

That's awesome, for whatever reason my default f5 doesn't seem to function anymore. So this will be very useful for me.


All times are GMT +2. The time now is 04:09 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.