Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2014, 09:23 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
F5 Edit Gmap or Precise Level

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.
Attached Thumbnails
Click image for larger version

Name:	gmap_snap.png
Views:	258
Size:	40.3 KB
ID:	55731  
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #2  
Old 10-06-2014, 09:54 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
That's awesome, for whatever reason my default f5 doesn't seem to function anymore. So this will be very useful for me.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:41 PM.


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