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 08-26-2005, 02:05 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
New Command Requests

I would like to have a couple new commands for the new engine.

A time(timezone) function. This would return the current time at the given timezone. If no timezone is supplied, it could just return the current server time.

Also, I would like to have a way to get the entire serverlist, not just the ones on Gold, 3D, Classic and Hosted tabs.
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #2  
Old 08-26-2005, 04:09 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
With a good use of timevar, a person can make a script like that o-o I've seen one made.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #3  
Old 08-26-2005, 04:34 AM
Maniaman Maniaman is offline
Registered User
Join Date: Aug 2005
Posts: 326
Maniaman is on a distinguished road
Only problem is, with timevar2 you would need to factor in months have 31 days opposed to 30, and you have to factor in leap years.
__________________

Current Maloria Event: (click to go to it)
Reply With Quote
  #4  
Old 08-26-2005, 05:00 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Yen: There's a timestamp function. We're both not sure how to use it, try %t or something? Not sure.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #5  
Old 08-27-2005, 05:39 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
You could always use the julian calendar.


Anyways, new staticvars/commands that would be very handy:
* currentserver = string (read only) // returns the current server name
* string=type_check(var) // returns "string" "int" "float" "array" etc
* playergold = bool (read only) // set if the player has gold or not
* playervip = bool (read only) // set if the player is vip or not
* ability to trigger an event on a separate server (triggeraction from babylon to npulse, for example. could be useful for coordinating events and suchlike, or a cross-server sparring tournament)
* ability to retreive data from a separate server (babylon getting a var or player position from npulse)
* for images: ability to set if they are global or client (allow more than 200 global indexes per npc)
* ability to make emitters global as well
* more than one timer (ability to create separate timers and per-timer timeout events instead of only having one built-in event)
* ability to check to see if an image was clicked on (not just in the bounds of the image.. actually per-pixel checking. think: round buttons)
* ability for DBs to trigger the clientside of a weapon, etc
* ability to rotate text (both showimg@@@ and showtext)


new gui controls that would be very handy:
* a pop-up window that does not take focus (in-line command listing like in MSVB)
* a transparent container
* push buttons (similar to radio buttons, but more button-like)

useful additions to gui controls:
* word left / word right (ctrl+left/right) in text boxes. same with selecting text (ctrl+shift+left/right)
* large undo stack (256 or so undos)
* ability to add hotkeys (if this isn't already implemented)


more to come when I think of them.
__________________

Last edited by calani; 08-27-2005 at 09:10 AM..
Reply With Quote
  #6  
Old 08-27-2005, 06:24 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by calani
* currentserver = string (read only) // returns the current server name
Quote:
Originally Posted by scriptfunctions_client.txt
PHP Code:
servername string (read only
Quote:
Originally Posted by calani
* string=type_check(var) // returns "string" "int" "float" "array" etc
Quote:
Originally Posted by docu_graalscript.doc
PHP Code:
obj.type()  - gets the type of the var (float 0string 1object 2, array 3
Quote:
Originally Posted by calani
* more than one timer (ability to create separate timers and per-timer timeout events instead of only having one built-in event)
Vars work too with a .05 timeout o_O Have a var with an MOD or something. I use it to have an event happen every one second inside a .05 timeout.
Quote:
Originally Posted by calani
* ability for DBs to trigger the clientside of a weapon, etc
PHP Code:
findplayer(account).triggeraction(0,0,"clientside",weaponname,params...); 

<3!
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #7  
Old 08-27-2005, 06:50 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by ForgottenLegacy
PHP Code:
findplayer(account).triggeraction(0,0,"clientside",weaponname,params...); 
PHP Code:
findPlayer(account).triggerclient("gui""weaponname""params"); 
=)
__________________
Liek omigosh.

Reply With Quote
  #8  
Old 08-27-2005, 06:27 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Shows how much time I've had to play with gs2
__________________
Reply With Quote
  #9  
Old 08-27-2005, 08:33 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Quote:
Originally Posted by Ajira
Poont.



Another thing to add:
* the ability to rotate text (showimg@@@ and showtext)

(also added to my original post)
__________________

Last edited by calani; 08-27-2005 at 09:09 AM..
Reply With Quote
  #10  
Old 08-27-2005, 03:24 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by calani



Another thing to add:
* the ability to rotate text (showimg@@@ and showtext)

(also added to my original post)
findimg(index).rotation = angle;
I forgot if this was in radians or degrees, though I'm leaning toward radians. Use the degtorad() function to convert.
__________________
Liek omigosh.

Reply With Quote
  #11  
Old 08-27-2005, 09:00 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Quote:
Originally Posted by Ajira
findimg(index).rotation = angle;
I forgot if this was in radians or degrees, though I'm leaning toward radians. Use the degtorad() function to convert.
doesn't work for text.
__________________
Reply With Quote
  #12  
Old 08-27-2005, 09:07 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by calani
doesn't work for text.
you sure...? it should
Reply With Quote
  #13  
Old 08-27-2005, 09:20 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Doesn't work for me. o.o

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
showtext(1,300,200,0,0,"Hello World");
  
showimg(2,"@Arial@@Hello World",300,300);
  
changeimgvis(1,4);
  
changeimgvis(2,4);
  
findimg(1).rotation=pi/2;
  
findimg(2).rotation=pi/2;


( now watch this post get deleted -.- )
__________________
Reply With Quote
  #14  
Old 08-28-2005, 02:18 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by calani
( now watch this post get deleted -.- )
Lancelot won't delete it as long as it's not a whole script to help someone o-o. You're asking for help, so you post teh buggy script. Perfectly allowed.

And yeah, rotateimg does not work for text, either showimg@@@ or showtext. z-z Someone correct this problem...?
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #15  
Old 08-27-2005, 10:07 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
I wouldn't mind the gold/vip either.
__________________
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 02:17 PM.


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