Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2002, 11:28 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
What the Scripters Need

Okay, I have compiled a list of features/commands should be added to GScript. If you have any that aren't on the list, just reply with them.


sparringzone;
notsparringzone;
disablepause;
enablepause;
disablesword;
enablesword;
showimg index,@font@bicus@size@text,x,y;
keydowns(11...) For all the alphanumeric keys
disablerating;
enablerating;
callweapon weaponname,event;
disablemap;
enablemap;
__________________
[signature]insert here[/signature]
Reply With Quote
  #2  
Old 03-27-2002, 02:42 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: What the Scripters Need

revised

// sparringzone; <-- do you mean in a script like:
NPC Code:

if(playerenters) sparringzone;
/*
Because it works fine like this in a blank npc:
*/
sparringzone;


// notsparringzone; << don't put a sparringzone npc?

disablepause;
enablepause;

// disablesword; <-- i believe you can use hidesword or something like that.
// enablesword;
showimg index,@font@bicus@size@text,x,y; <-- might be kinda nice, but why not just zoom?
keydowns(11...) For all the alphanumeric keys
// disablerating; <-- why?
// enablerating; <-- again why?
// callweapon weaponname,event; <-- triggeraction playerx+1.5,playery+2,actionname,weaponname,params ;
// disablemap; <-- showstats 1+2+4+8+16+32+64+128+1024;
// enablemap; <-- showstats 1+2+4+8+16+32+64+128+256+1024;
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #3  
Old 03-27-2002, 02:50 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: Re: What the Scripters Need

sparringzone; < - Cooler sparring rooms, you can make it sparringzone and then make it not, could be cool
notsparringzone; < - Cooler sparring rooms, you can make it sparringzone and then make it not, could be cool
disablepause; < - found a way around this
enablepause; < - found a way around this
disablesword; < - hidesword doesnt disable the sword, just hides
enablesword; < - hidesword doesnt disable the sword, just hides
showimg index,@font@bicus@size@text,x,y; < - Easier, smaller script if you have to change zoom a lot
keydowns(11...) For all the alphanumeric keys
disablerating; < - So i can use R for something instead of ratings
enablerating; < - So i can use R for something instead of ratings
callweapon weaponname,event; < - not for calling other people's weapons (so no triggeraction) NOTE: I have tried triggeraction playerx,playery,actionname; Doesnt work
disablemap; < - showstats doesnt hide big map
enablemap; < - showstats doesnt hide big map
__________________
[signature]insert here[/signature]
Reply With Quote
  #4  
Old 03-27-2002, 03:15 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Re: Re: Re: What the Scripters Need

Quote:
Originally posted by screen_name
sparringzone; < - Cooler sparring rooms, you can make it sparringzone and then make it not, could be cool
notsparringzone; < - Cooler sparring rooms, you can make it sparringzone and then make it not, could be cool
disablepause; < - found a way around this
enablepause; < - found a way around this
disablesword; < - hidesword doesnt disable the sword, just hides
enablesword; < - hidesword doesnt disable the sword, just hides
showimg index,@font@bicus@size@text,x,y; < - Easier, smaller script if you have to change zoom a lot
keydowns(11...) For all the alphanumeric keys
disablerating; < - So i can use R for something instead of ratings
enablerating; < - So i can use R for something instead of ratings
callweapon weaponname,event; < - not for calling other people's weapons (so no triggeraction) NOTE: I have tried triggeraction playerx,playery,actionname; Doesnt work
disablemap; < - showstats doesnt hide big map
enablemap; < - showstats doesnt hide big map
hmmmmm...that showimg thing is just a waste, purely because there is a command that does that already and i can understand disablemap, maybe instead have like disablefunc(key) and that could be used to disable the action that comes with that key? Whats your way around disablepause?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #5  
Old 03-27-2002, 04:25 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: What the Scripters Need

I dont understand what he wants ?
Reply With Quote
  #6  
Old 03-27-2002, 06:57 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
It would be helpful if you had an offline npc server so you could test your p2p scripts. (could be used for those who have no acess to npc server and that are TRYING to make a server...)
__________________
Reply With Quote
  #7  
Old 03-27-2002, 09:44 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
the changeimgzoom doesn't keep it a definite size, just in ratio to your computer settings, it would be cool if you could use the size option to make it a certain size for every computer
__________________
[signature]insert here[/signature]
Reply With Quote
  #8  
Old 03-27-2002, 03:47 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by screen_name
the changeimgzoom doesn't keep it a definite size, just in ratio to your computer settings, it would be cool if you could use the size option to make it a certain size for every computer
Thats not REALLY possible...see.
with different resolutions, etc you could not make it the SAME size on EVERY computer...just not possible...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 03-27-2002, 03:58 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Quote:
Originally posted by Saga2001


Thats not REALLY possible...see.
with different resolutions, etc you could not make it the SAME size on EVERY computer...just not possible...
I believe he is refering to the actual text size, of course it will show up differently on different resolutions.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #10  
Old 03-27-2002, 04:06 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Cybnext_Design


I believe he is refering to the actual text size, of course it will show up differently on different resolutions.
oh, i understand now. ok.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 03-27-2002, 08:44 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Normally the standard font size of showimg text is the same,
24 pixels height, font size 14
Reply With Quote
  #12  
Old 03-29-2002, 02:04 PM
Faheria_GP4 Faheria_GP4 is offline
Registered User
Join Date: Feb 2002
Location: USA -North Carolina-
Posts: 431
Faheria_GP4 is on a distinguished road
Send a message via AIM to Faheria_GP4
I've seen people change the font sizes before...
The Sanstrata System has small fonts...
is that wut ur sayin? Im confused lol.
Attached Thumbnails
Click image for larger version

Name:	wheel222.png
Views:	212
Size:	10.1 KB
ID:	14112  
__________________

Graal Occupation
AIM:DarkVillin2k1
Reply With Quote
  #13  
Old 03-29-2002, 07:22 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Goboom
It would be helpful if you had an offline npc server so you could test your p2p scripts. (could be used for those who have no acess to npc server and that are TRYING to make a server...)
Perhaps stefan should release a P2P test server, where the levels are there for 4 days then get deleted, that way any scripters that have P2P can upload to it, test out their scripts and then that it
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #14  
Old 03-29-2002, 11:19 PM
Jinx Jinx is offline
Radioactive Cow
Jinx's Avatar
Join Date: Sep 2001
Location: I duno...
Posts: 1,217
Jinx is on a distinguished road
Send a message via AIM to Jinx
Re: What the Scripters Need

Quote:
Originally posted by screen_name

disablerating;
enablerating;
This could be useful for Hide & Seek games, where the idiot noobs always press R to see where people I hiding

-Jinx
__________________
Confucious2002: Cynical passed it's 2nd review! <3
InsaneFishP0sse: Yea =) Now if only Nemesis weren't dead
Confucious2002: *pokes nem*
InsaneFishP0sse: He got a severe paper cut last week and died of blood loss, very sad
Confucious2002: so unix took over his body?
InsaneFishP0sse: No, actually it was the NPC Server,
InsaneFishP0sse: Now if you PM Nemesis, he will go "I am Nemesis, the PW Admin, I handle almost all Playerworlds currently online"
Reply With Quote
  #15  
Old 04-02-2002, 01:16 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
What about disablechat and enablechat. Surely if you were holding an event you would not want people spamming when your trying to talk to one specific person.
Reply With Quote
  #16  
Old 04-02-2002, 01:50 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
What the scripters really need is an assistant to do such tedious jobs as getting drinks.

--
Quote:
Originally posted by royce
What about disablechat and enablechat. Surely if you were holding an event you would not want people spamming when your trying to talk to one specific person.
NPC Code:
if (playerchats&&client.NoChatForYou) 
setplayerprop #c,;

__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #17  
Old 04-02-2002, 11:19 AM
ZeroFXSM ZeroFXSM is offline
Cutie
ZeroFXSM's Avatar
Join Date: Aug 2001
Posts: 941
ZeroFXSM is on a distinguished road
Send a message via AIM to ZeroFXSM
Quote:
Originally posted by Spanko
What the scripters really need is an assistant to do such tedious jobs as getting drinks.

--
NPC Code:
if (playerchats&&client.NoChatForYou) 
setplayerprop #c,;

__________________
ZeroFX :: part of the swordsmen clan since 1999
Find me on Aim: jimmydistrict
haha my character still has the blue dragon ammy
Reply With Quote
  #18  
Old 04-02-2002, 11:37 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by neomaximus2k


Perhaps stefan should release a P2P test server, where the levels are there for 4 days then get deleted, that way any scripters that have P2P can upload to it, test out their scripts and then that it
You would need NC access to work some commands since some require the NPCs to be database npcs

And an offline NPC Server just wouldn't work, how would it access a database offline?
Reply With Quote
  #19  
Old 04-02-2002, 11:51 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
i think what the scripter needs is a pocket sized version of kaimetsu to carry around with them ...
Reply With Quote
  #20  
Old 04-02-2002, 12:01 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
having a online p2p test server would be of great use even if it deleted the files in 1 day

just have it as the user names and passwords are the account name and password .. for people with p2p accounts

or at least a g__server were mabye upto 5 people can access it with npc server etc... a person limit so u cant run a server with out stefan and it would serve enough use .. please stefan please

If u want to get some really good p2p servers faster this would help us out greatly
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #21  
Old 04-02-2002, 12:06 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 dragoonvenganc
having a online p2p test server would be of great use even if it deleted the files in 1 day

just have it as the user names and passwords are the account name and password .. for people with p2p accounts

or at least a g__server were mabye upto 5 people can access it with npc server etc... a person limit so u cant run a server with out stefan and it would serve enough use .. please stefan please

If u want to get some really good p2p servers faster this would help us out greatly
If they release a g-server, eventually someone will release a crack that will let you exceed the 5 player limit
Reply With Quote
  #22  
Old 04-02-2002, 12:28 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Python523

If they release a g-server, eventually someone will release a crack that will let you exceed the 5 player limit
Not if someone *ehem* wrote the code right.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #23  
Old 04-02-2002, 01:34 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Graal just needs 1 server that scripters access certain folders with rc. Each test group has a folder. The only problem I would think about facing is the npc server. You can't share 10 different groups on one npc server.
Reply With Quote
  #24  
Old 04-02-2002, 02:33 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 royce
Graal just needs 1 server that scripters access certain folders with rc. Each test group has a folder. The only problem I would think about facing is the npc server. You can't share 10 different groups on one npc server.
Currently, you can only put levels in the levels folder, I couldn't get levels to load from a different folder even by editing the folder configuration
Reply With Quote
  #25  
Old 04-02-2002, 02:45 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Quote:
Originally posted by Python523

Currently, you can only put levels in the levels folder, I couldn't get levels to load from a different folder even by editing the folder configuration
Then we need a stand alone server that is simply for testing that allows us to do this. Maybe have a main interface that lets you select which group to join, max of 5 characters. In order to get a group you can email the server admin or something.
Reply With Quote
  #26  
Old 04-02-2002, 02:52 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
I figured it out. In the editor, for example you have 2 levels. new1.nw and new2.nw. You make a folder in ftp called test. When using the links in new1.new you would do this /test/new2.nw . Graal should be fixed so that this is possible. The main directory is not always primary though for instance if your directory changes to test then you dont have to have a test/ in the directory name if you want to access a level from that folder. This would help a bunch in tons of things including guild houses and such. Say you have a guild called Gangster. Log into ftp, make new folder, upload their levels. Best Organization on graal ever.
Reply With Quote
  #27  
Old 04-02-2002, 04:28 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by royce
I figured it out. In the editor, for example you have 2 levels. new1.nw and new2.nw. You make a folder in ftp called test. When using the links in new1.new you would do this /test/new2.nw . Graal should be fixed so that this is possible. The main directory is not always primary though for instance if your directory changes to test then you dont have to have a test/ in the directory name if you want to access a level from that folder. This would help a bunch in tons of things including guild houses and such. Say you have a guild called Gangster. Log into ftp, make new folder, upload their levels. Best Organization on graal ever.
i dun think thats a good idea cause i can just see it now:
'/levels/nyghtsocean/island1/house1/rooms/'
just using that as an example of what some people who do.

its not really needed, nor do i think that many people want it ...
Reply With Quote
  #28  
Old 04-02-2002, 07:06 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by nyghtGT

i dun think thats a good idea cause i can just see it now:
'/levels/nyghtsocean/island1/house1/rooms/'
just using that as an example of what some people who do.

its not really needed, nor do i think that many people want it ...
Actually if I ever made a playerworld I'd make multiple divisions for clarity (E.G. one folder for each city, and a folder for any loose quests etc.), then it's also the case that if people want to edit certain parts of the playerworld they don;'t need full FTP acces.
Plus multiple folders are handy since you can give everyone their own personal testing folder, without risking that they have too much acces.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #29  
Old 04-02-2002, 08:59 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Spanko
Actually if I ever made a playerworld I'd make multiple divisions for clarity (E.G. one folder for each city, and a folder for any loose quests etc.), then it's also the case that if people want to edit certain parts of the playerworld they don;'t need full FTP acces.
Plus multiple folders are handy since you can give everyone their own personal testing folder, without risking that they have too much acces.
that would be a lot better

and certain people could be assigned to only run part of the server

that would be pretty nice
__________________
[signature]insert here[/signature]
Reply With Quote
  #30  
Old 04-02-2002, 11:34 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by nyghtGT

i dun think thats a good idea cause i can just see it now:
'/levels/nyghtsocean/island1/house1/rooms/'
just using that as an example of what some people who do.

its not really needed, nor do i think that many people want it ...
sorry but graal uses mysql and stuff so it wouldn't be as simple as that it would be the entire root on the server
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #31  
Old 04-03-2002, 06:05 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by Spanko
then it's also the case that if people want to edit certain parts of the playerworld they don;'t need full FTP acces.
you can allready do this ...
Attached Thumbnails
Click image for larger version

Name:	rcexample.png
Views:	145
Size:	9.3 KB
ID:	14356  
Reply With Quote
  #32  
Old 04-03-2002, 07:47 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by nyghtGT

you can allready do this ...
It can be done pretty darn quickly with folders, and I knew it was possible.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:35 PM.


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