Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   What the Scripters Need (https://forums.graalonline.com/forums/showthread.php?t=26355)

screen_name 03-26-2002 11:28 PM

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;

Saga2001 03-27-2002 02:42 AM

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;

screen_name 03-27-2002 02:50 AM

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

Saga2001 03-27-2002 03:15 AM

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?

nyghtGT 03-27-2002 04:25 AM

Re: What the Scripters Need
 
I dont understand what he wants ?

Goboom 03-27-2002 06:57 AM

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...)

screen_name 03-27-2002 09:44 AM

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

Saga2001 03-27-2002 03:47 PM

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...

Cybnext_Design 03-27-2002 03:58 PM

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.

Saga2001 03-27-2002 04:06 PM

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.

Admins 03-27-2002 08:44 PM

Normally the standard font size of showimg text is the same,
24 pixels height, font size 14

Faheria_GP4 03-29-2002 02:04 PM

1 Attachment(s)
I've seen people change the font sizes before...
The Sanstrata System has small fonts...
is that wut ur sayin? Im confused lol.

neomaximus2k 03-29-2002 07:22 PM

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

Jinx 03-29-2002 11:19 PM

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

royce 04-02-2002 01:16 AM

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.

Spanko 04-02-2002 01:50 AM

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,;


ZeroFXSM 04-02-2002 11:19 AM

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,;



Python523 04-02-2002 11:37 AM

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?

nyghtGT 04-02-2002 11:51 AM

i think what the scripter needs is a pocket sized version of kaimetsu to carry around with them ...

dragoonvenganc 04-02-2002 12:01 PM

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

Python523 04-02-2002 12:06 PM

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

Saga2001 04-02-2002 12:28 PM

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.

royce 04-02-2002 01:34 PM

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.

Python523 04-02-2002 02:33 PM

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

royce 04-02-2002 02:45 PM

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.

royce 04-02-2002 02:52 PM

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.

nyghtGT 04-02-2002 04:28 PM

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 ...

Spanko 04-02-2002 07:06 PM

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.

screen_name 04-02-2002 08:59 PM

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

neomaximus2k 04-02-2002 11:34 PM

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

nyghtGT 04-03-2002 06:05 AM

1 Attachment(s)
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 ...

Spanko 04-03-2002 07:47 PM

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.


All times are GMT +2. The time now is 10:19 AM.

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