Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2011, 12:22 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Zooming

So I was wondering, since I have seen it done on Era iPhone, is there any way to accomplish this (attached) using GS2? Or is it just another special iPhone code.
Attached Thumbnails
Click image for larger version

Name:	zoomin.png
Views:	202
Size:	194.5 KB
ID:	53932  
__________________
Reply With Quote
  #2  
Old 11-14-2011, 01:19 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
PHP Code:
/*
Script for Emera by Astram
Note: Same formula can apply for stealth using player.alpha
Saying /big will toggle the zoom for everyone, and when someone logs on the server
they will be updated to see big people
*/

function onActionServerSide() {
  
this.canuse = {"Manager""Owner""Co-Owner"};
  if (
params[0] == "ZoomCheck") {
    for (
temp.allplayers) {
      if (
p.zoom == 2) {
        
triggerclient"gui"this.name"Zoom"2p);
      }
    }
  }
  if (
params[0] == "Zoom" && player.guild in this.canuse) {
    if (
params[1] == "Big") {
      for (
temp.allplayers) {
        
p.triggerclient"gui"this.name"Zoom"2player);
      }
    }
    if (
params[1] == "Normal") {
      for (
temp.allplayers) {
        
p.triggerclient"gui"this.name"Zoom"1player);
      }
    }
  }
}

//#CLIENTSIDE
function onCreated() {
  
triggerserver"gui"this.name"ZoomCheck");
}

function 
onPlayerChats() {
  if (
player.chat == "/big") {
    if (
player.zoom != 2) {
      
triggerserver"gui"this.name"Zoom""Big");
    } else {
      
triggerserver"gui"this.name"Zoom""Normal");
    }
  }
}

function 
onActionClientSide() {
  if (
params[0] == "Zoom") {
    
findplayer(params[2]).zoom params[1];
  }

__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!



Last edited by Astram; 11-14-2011 at 01:29 AM.. Reason: Fixed for Chris
Reply With Quote
  #3  
Old 11-14-2011, 01:20 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Use a gani that changes this.zoom in a ganiscript
__________________
Reply With Quote
  #4  
Old 11-14-2011, 01:23 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Quote:
Originally Posted by 0PiX0 View Post
Use a gani that changes this.zoom in a ganiscript
Or this...
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #5  
Old 11-14-2011, 01:26 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Astram, do your guild check on serverside, not clientside.
__________________
Reply With Quote
  #6  
Old 11-14-2011, 01:26 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Im not too familar with how ganiscript works but, this may work. This is my first time using gani script. Heres it's code:
PHP Code:
SCRIPT
function onCreated() {
  
player.zoom 2;
}
SCRIPTEND 
Too simple??
Attached Files
File Type: gani lexia_zoom.gani (64 Bytes, 140 views)
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #7  
Old 11-14-2011, 01:35 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
He wants to zoom everything, not just the the player, though.
Reply With Quote
  #8  
Old 11-14-2011, 01:53 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
If he wants to zoom everything: player.zoomfactor
__________________
Reply With Quote
  #9  
Old 11-14-2011, 01:58 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by 0PiX0 View Post
If he wants to zoom everything: player.zoomfactor
Does this go under 1?
Reply With Quote
  #10  
Old 11-14-2011, 02:01 AM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Under 1 it has no effect.
__________________
Reply With Quote
  #11  
Old 11-14-2011, 02:29 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by 0PiX0 View Post
Under 1 it has no effect.
Reply With Quote
  #12  
Old 11-14-2011, 03:03 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
Don't worry, I heard that flying technology is going to be released by Christmas.
__________________
Reply With Quote
  #13  
Old 11-14-2011, 03:12 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by cbk1994 View Post
Don't worry, I heard that flying technology is going to be released by Christmas.
I don't even want flying technology lol, but for the iPhone with such limited resolution it'd be nice to be able to zoom out if needed(since you're not seeing a good 1/10th of what's capable of being rendered(3x3 levels).
Reply With Quote
  #14  
Old 11-14-2011, 03:52 AM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is just really niceTricxta is just really nice
Quote:
Originally Posted by cbk1994 View Post
Don't worry, I heard that flying technology is going to be released by Christmas.
Finally!
Reply With Quote
  #15  
Old 11-14-2011, 06:21 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Tricxta View Post
Finally!
He didn't say which Christmas.
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 07:27 PM.


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