Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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 a jewel in the roughMysticalDragon is a jewel in the rough
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:	294
Size:	40.3 KB
ID:	55731  
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
 


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 04:38 PM.


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